btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / je / jen / package.nix
blobdecc88434dd82f47093ca83067e6389ca0e8452a
2   lib,
3   rustPlatform,
4   fetchCrate,
5   fetchpatch,
6   stdenv,
7   darwin,
8 }:
10 rustPlatform.buildRustPackage rec {
11   pname = "jen";
12   version = "1.7.0";
14   src = fetchCrate {
15     inherit pname version;
16     hash = "sha256-nouAHEo5JJtZ0pV8ig/iJ3eB8uPz3yMVIYP6RrNVlSA=";
17   };
19   cargoPatches = [
20     (fetchpatch {
21       name = "fix-rust-1.80-build.patch";
22       url = "https://github.com/whitfin/jen/commit/a6b5239593cecfd803a111ff317afa88c94c3640.patch";
23       hash = "sha256-ikfmEj6Xm0nT9dxpx6xdm/mQbw0b3gh2PT6Zo69Zg0E=";
24     })
25   ];
27   cargoHash = "sha256-Y81YqrzJSar0BxhQb7Vm/cZ9E6krlyZesXPY+j37IHA=";
29   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
30     darwin.apple_sdk.frameworks.Security
31   ];
33   meta = with lib; {
34     description = "Simple CLI generation tool for creating large datasets";
35     mainProgram = "jen";
36     homepage = "https://github.com/whitfin/jen";
37     license = licenses.mit;
38     maintainers = with maintainers; [ figsoda ];
39   };