2024-08-15 05:10:40 -06:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
stdenv,
|
|
|
|
darwin,
|
2024-03-20 09:50:26 -06:00
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "jnv";
|
2024-08-13 08:47:43 -06:00
|
|
|
version = "0.4.0";
|
2024-03-20 09:50:26 -06:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ynqa";
|
|
|
|
repo = "jnv";
|
|
|
|
rev = "v${version}";
|
2024-08-13 08:47:43 -06:00
|
|
|
hash = "sha256-WrvCiZA/aYj0CoTq/kw3Oa3WKTjdtO6OC+IOxBoWjSU=";
|
2024-03-20 09:50:26 -06:00
|
|
|
};
|
|
|
|
|
2024-08-13 08:47:43 -06:00
|
|
|
cargoHash = "sha256-xF0sxoSo7z7lxrF3wFAmU7edREoWKBFBnZ6Xq22c8q0=";
|
2024-03-20 09:50:26 -06:00
|
|
|
|
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
|
|
|
|
2024-03-20 09:50:26 -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
|
|
|
|
];
|
2024-03-20 09:50:26 -06:00
|
|
|
};
|
|
|
|
}
|