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

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

34 lines
1006 B
Nix
Raw Normal View History

2022-01-12 10:57:15 +00:00
{ lib, rustPlatform, fetchCrate, installShellFiles, testVersion, sigi }:
2022-01-01 07:38:29 +00:00
rustPlatform.buildRustPackage rec {
pname = "sigi";
2022-03-16 18:31:21 +00:00
version = "3.0.3";
2022-01-01 07:38:29 +00:00
2022-01-12 10:57:15 +00:00
src = fetchCrate {
inherit pname version;
2022-03-16 18:31:21 +00:00
sha256 = "sha256-tjhNE20GE1L8kvhdI5Mc90I75q8szOIV40vq2CBt98U=";
2022-01-01 07:38:29 +00:00
};
2022-01-12 10:57:15 +00:00
nativeBuildInputs = [ installShellFiles ];
2022-03-10 07:11:56 +00:00
# As part of its tests, sigi hard-codes a location to BATS based on git
# submodules. The tests are recommeded to skip for Linux packaging. They'll
# move to Rust after this issue: https://github.com/hiljusti/sigi/issues/19
checkFlags = [ "SKIP_BATS_TESTS=1" ];
2022-01-12 10:57:15 +00:00
postInstall = ''
installManPage sigi.1
'';
2022-03-16 18:31:21 +00:00
cargoSha256 = "sha256-0e0r6hfXGJmrc6tgCqq2dQXu2MhkThViZwdG3r3g028=";
2022-01-01 07:38:29 +00:00
passthru.tests.version = testVersion { package = sigi; };
meta = with lib; {
2022-03-10 07:11:56 +00:00
description = "Organizing CLI for people who don't love organizing.";
2022-01-01 07:38:29 +00:00
homepage = "https://github.com/hiljusti/sigi";
2022-01-12 10:57:15 +00:00
license = licenses.gpl2;
2022-01-01 07:38:29 +00:00
maintainers = with maintainers; [ hiljusti ];
};
}