2022-04-27 09:35:20 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, installShellFiles, testers, sigi }:
|
2022-01-07 04:07:37 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "sigi";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "3.3.0";
|
2022-01-07 04:07:37 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "sha256-dcfzCac4dT2X1hgTSh30G7h2XtvVj1jMUmrUzqZ11y8=";
|
2022-01-07 04:07:37 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
cargoSha256 = "sha256-CQofC9Y0y8XASLpjk9B6mMlSQqiXnoGZ8kJh16txiPA=";
|
2022-01-19 23:45:15 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
# In case anything goes wrong.
|
|
|
|
checkFlags = [ "RUST_BACKTRACE=1" ];
|
2022-03-10 19:12:11 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage sigi.1
|
|
|
|
'';
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
passthru.tests.version = testers.testVersion { package = sigi; };
|
2022-01-07 04:07:37 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|