nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, rustPlatform, fetchCrate, installShellFiles, testers, sigi }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "sigi";
5 version = "3.6.0";
6
7 src = fetchCrate {
8 inherit pname version;
9 sha256 = "sha256-VhBrSepJdwJRu+AqXWUzdDO4ukJPeoZr07B/X8Jr/RA=";
10 };
11
12 cargoSha256 = "sha256-R1U0ZYQMA1VFd5zEjFzl5QhwqqEMaCFb/5H509IBj60=";
13 nativeBuildInputs = [ installShellFiles ];
14
15 # In case anything goes wrong.
16 checkFlags = [ "RUST_BACKTRACE=1" ];
17
18 postInstall = ''
19 installManPage sigi.1
20 '';
21
22 passthru.tests.version = testers.testVersion { package = sigi; };
23
24 meta = with lib; {
25 description = "Organizing CLI for people who don't love organizing.";
26 homepage = "https://github.com/sigi-cli/sigi";
27 license = licenses.gpl2;
28 maintainers = with maintainers; [ hiljusti ];
29 };
30}