Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / jaq / default.nix
blobae7c6b35bd7bdf9dd8baf50051b0edc3153dd078
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , stdenv
5 , darwin
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "jaq";
10   version = "1.2.0";
12   src = fetchFromGitHub {
13     owner = "01mf02";
14     repo = "jaq";
15     rev = "v${version}";
16     hash = "sha256-Jc/etdQtJfFmmdxWdJUVQqPjHTCY6ZUAO+ShNJboOq0=";
17   };
19   cargoHash = "sha256-TaWD9xpTsNWQt/Wz5PYY0mgFfP5d/Jn3EhcHUywUk3Q=";
21   buildInputs = lib.optionals stdenv.isDarwin [
22     darwin.apple_sdk.frameworks.Security
23   ];
25   meta = with lib; {
26     description = "A jq clone focused on correctness, speed and simplicity";
27     homepage = "https://github.com/01mf02/jaq";
28     changelog = "https://github.com/01mf02/jaq/releases/tag/${src.rev}";
29     license = licenses.mit;
30     maintainers = with maintainers; [ figsoda siraben ];
31     mainProgram = "jaq";
32   };