mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
39 lines
779 B
Nix
39 lines
779 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
stdenv,
|
|
darwin,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "jnv";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ynqa";
|
|
repo = "jnv";
|
|
rev = "v${version}";
|
|
hash = "sha256-WrvCiZA/aYj0CoTq/kw3Oa3WKTjdtO6OC+IOxBoWjSU=";
|
|
};
|
|
|
|
cargoHash = "sha256-xF0sxoSo7z7lxrF3wFAmU7edREoWKBFBnZ6Xq22c8q0=";
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin (
|
|
with darwin.apple_sdk.frameworks;
|
|
[
|
|
CoreGraphics
|
|
AppKit
|
|
]
|
|
);
|
|
|
|
meta = with lib; {
|
|
description = "Interactive JSON filter using jq";
|
|
mainProgram = "jnv";
|
|
homepage = "https://github.com/ynqa/jnv";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [
|
|
nealfennimore
|
|
nshalman
|
|
];
|
|
};
|
|
}
|