2022-01-19 23:45:15 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, installShellFiles, testVersion, sigi }:
|
2022-01-07 04:07:37 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "sigi";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "3.0.3";
|
2022-01-07 04:07:37 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-tjhNE20GE1L8kvhdI5Mc90I75q8szOIV40vq2CBt98U=";
|
2022-01-07 04:07:37 +00:00
|
|
|
};
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2022-03-10 19:12:11 +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-19 23:45:15 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage sigi.1
|
|
|
|
'';
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
cargoSha256 = "sha256-0e0r6hfXGJmrc6tgCqq2dQXu2MhkThViZwdG3r3g028=";
|
2022-01-07 04:07:37 +00:00
|
|
|
|
|
|
|
passthru.tests.version = testVersion { package = sigi; };
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-03-10 19:12:11 +00:00
|
|
|
description = "Organizing CLI for people who don't love organizing.";
|
2022-01-07 04:07:37 +00:00
|
|
|
homepage = "https://github.com/hiljusti/sigi";
|
2022-01-19 23:45:15 +00:00
|
|
|
license = licenses.gpl2;
|
2022-01-07 04:07:37 +00:00
|
|
|
maintainers = with maintainers; [ hiljusti ];
|
|
|
|
};
|
|
|
|
}
|