evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ab / aba / package.nix
blob76e6203cb0ce3811f0e6c95dd96fc01509428b3b
1 { fetchFromSourcehut
2 , just
3 , lib
4 , nix-update-script
5 , rustPlatform
6 , scdoc
7 }:
8 let
9   version = "0.8.0";
11 rustPlatform.buildRustPackage {
12   pname = "aba";
13   inherit version;
15   src = fetchFromSourcehut {
16     owner = "~onemoresuza";
17     repo = "aba";
18     rev = version;
19     hash = "sha256-2zVQNchL4DFh2v2/kwupJTBSmXiKqlxzUMrP9TbfCMs=";
20   };
22   cargoHash = "sha256-YhSzbfcEIJjKWlyYq1lK70qt4f/Z71n7hgaaZ/D/U80=";
24   nativeBuildInputs = [
25     just
26     scdoc
27   ];
29   postPatch = ''
30     # Let only nix strip the binary by disabling cargo's `strip = true`, like
31     # buildRustPackage does when not using just's setup hooks.
32     sed -i '/strip[[:space:]]*=[[:space:]]*true/s/true/false/' ./Cargo.toml
33   '';
35   preBuild = ''
36     justFlagsArray+=(
37       PREFIX=${builtins.placeholder "out"}
38       MANIFEST_OPTS="--frozen --locked --profile=release"
39       INSTALL_OPTS="--no-track"
40     )
41   '';
43   # There are no tests
44   doCheck = false;
45   dontUseJustCheck = true;
47   passthru.updateScript = nix-update-script { };
49   meta = {
50     description = "Address book for aerc";
51     homepage = "https://sr.ht/~onemoresuza/aba/";
52     changelog = "https://git.sr.ht/~onemoresuza/aba/tree/main/item/CHANGELOG.md";
53     downloadPage = "https://git.sr.ht/~onemoresuza/aba/refs/${version}";
54     maintainers = with lib.maintainers; [ onemoresuza ];
55     license = lib.licenses.isc;
56     mainProgram = "aba";
57   };