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

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

31 lines
811 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchCrate, installShellFiles, testers, sigi }:
2022-01-01 08:38:29 +01:00
rustPlatform.buildRustPackage rec {
pname = "sigi";
2022-03-30 11:19:32 +02:00
version = "3.2.1";
2022-01-01 08:38:29 +01:00
2022-01-12 11:57:15 +01:00
src = fetchCrate {
inherit pname version;
2022-03-30 11:19:32 +02:00
sha256 = "sha256-1eZ6i0CvjNyYlWb7c0OPlGtvVSFpi8hiOl/7qeeE9wA=";
2022-01-01 08:38:29 +01:00
};
2022-03-30 11:19:32 +02:00
cargoSha256 = "sha256-Tyrcu/BYt9k4igiEIiZ2I7VIGiBZ3D2i6XfT/XGlU+U=";
2022-01-12 11:57:15 +01:00
nativeBuildInputs = [ installShellFiles ];
2022-03-30 11:19:32 +02:00
# In case anything goes wrong.
checkFlags = [ "RUST_BACKTRACE=1" ];
2022-03-10 08:11:56 +01:00
2022-01-12 11:57:15 +01:00
postInstall = ''
installManPage sigi.1
'';
passthru.tests.version = testers.testVersion { package = sigi; };
2022-01-01 08:38:29 +01:00
meta = with lib; {
2022-03-10 08:11:56 +01:00
description = "Organizing CLI for people who don't love organizing.";
2022-01-01 08:38:29 +01:00
homepage = "https://github.com/hiljusti/sigi";
2022-01-12 11:57:15 +01:00
license = licenses.gpl2;
2022-01-01 08:38:29 +01:00
maintainers = with maintainers; [ hiljusti ];
};
}