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-10 19:12:11 +00:00
|
|
|
version = "3.0.2";
|
2022-01-07 04:07:37 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-03-10 19:12:11 +00:00
|
|
|
sha256 = "sha256-N+8DdokiYW5mHIQJisdTja8xMVGip37X6c/xBYnQaRU=";
|
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-10 19:12:11 +00:00
|
|
|
cargoSha256 = "sha256-vO9ocTDcGt/T/sLCP+tCHXihV1H2liFDjI7OhhmPd3I=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|