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";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "3.7.1";
|
2022-01-07 04:07:37 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-Tsrfan7aejP2oy9x9VoTIq0ba0s0tnx1RTlAB0v6eis=";
|
2022-01-07 04:07:37 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
cargoHash = "sha256-jstxl1CcSNv1bQuAY9n2kYmoTYmfeBYUCKJKWCSEuec=";
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Organizing CLI for people who don't love organizing";
|
2022-11-21 17:40:18 +00:00
|
|
|
homepage = "https://github.com/sigi-cli/sigi";
|
2022-01-19 23:45:15 +00:00
|
|
|
license = licenses.gpl2;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ booniepepper ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "sigi";
|
2022-01-07 04:07:37 +00:00
|
|
|
};
|
|
|
|
}
|