nixpkgs/pkgs/by-name/jn/jnv/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
792 B
Nix
Raw Normal View History

2024-08-15 05:10:40 -06:00
{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "jnv";
2024-08-13 08:47:43 -06:00
version = "0.4.0";
src = fetchFromGitHub {
owner = "ynqa";
repo = "jnv";
rev = "v${version}";
2024-08-13 08:47:43 -06:00
hash = "sha256-WrvCiZA/aYj0CoTq/kw3Oa3WKTjdtO6OC+IOxBoWjSU=";
};
2024-08-13 08:47:43 -06:00
cargoHash = "sha256-xF0sxoSo7z7lxrF3wFAmU7edREoWKBFBnZ6Xq22c8q0=";
2024-08-15 05:10:40 -06:00
buildInputs = lib.optional stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
CoreGraphics
AppKit
]
);
2024-08-15 05:04:35 -06:00
meta = with lib; {
description = "Interactive JSON filter using jq";
mainProgram = "jnv";
homepage = "https://github.com/ynqa/jnv";
license = with licenses; [ mit ];
2024-08-15 05:10:40 -06:00
maintainers = with maintainers; [
nealfennimore
nshalman
];
};
}