nixpkgs/pkgs/applications/misc/sigi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
811 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchCrate, installShellFiles, testers, sigi }:
2022-01-01 10:38:29 +03:00
rustPlatform.buildRustPackage rec {
pname = "sigi";
2023-01-04 23:10:19 +03:00
version = "3.6.0";
2022-01-01 10:38:29 +03:00
2022-01-12 13:57:15 +03:00
src = fetchCrate {
inherit pname version;
2023-01-04 23:10:19 +03:00
sha256 = "sha256-VhBrSepJdwJRu+AqXWUzdDO4ukJPeoZr07B/X8Jr/RA=";
2022-01-01 10:38:29 +03:00
};
2023-01-04 23:10:19 +03:00
cargoSha256 = "sha256-R1U0ZYQMA1VFd5zEjFzl5QhwqqEMaCFb/5H509IBj60=";
2022-01-12 13:57:15 +03:00
nativeBuildInputs = [ installShellFiles ];
2022-03-30 12:19:32 +03:00
# In case anything goes wrong.
checkFlags = [ "RUST_BACKTRACE=1" ];
2022-03-10 10:11:56 +03:00
2022-01-12 13:57:15 +03:00
postInstall = ''
installManPage sigi.1
'';
passthru.tests.version = testers.testVersion { package = sigi; };
2022-01-01 10:38:29 +03:00
meta = with lib; {
2022-03-10 10:11:56 +03:00
description = "Organizing CLI for people who don't love organizing.";
2022-11-12 09:31:24 +03:00
homepage = "https://github.com/sigi-cli/sigi";
2022-01-12 13:57:15 +03:00
license = licenses.gpl2;
2022-01-01 10:38:29 +03:00
maintainers = with maintainers; [ hiljusti ];
};
}