about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/sigi/default.nix
blob: 731608db7da16dc44be461fdce802a0bf8e20563 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, rustPlatform, fetchCrate, installShellFiles, testVersion, sigi }:

rustPlatform.buildRustPackage rec {
  pname = "sigi";
  version = "3.0.0";

  src = fetchCrate {
    inherit pname version;
    sha256 = "sha256-1xZMj6NjwA9pVOEL4CDv4XHC3usu3WdjsLJuW3vgxc8=";
  };

  nativeBuildInputs = [ installShellFiles ];

  postInstall = ''
    installManPage sigi.1
  '';

  cargoSha256 = "sha256-NUWm2GkK7bASo6bAOgQgHate45iDG5l3G/KhtLrjzQ8=";

  passthru.tests.version = testVersion { package = sigi; };

  meta = with lib; {
    description = "CLI tool for organization and planning";
    homepage = "https://github.com/hiljusti/sigi";
    license = licenses.gpl2;
    maintainers = with maintainers; [ hiljusti ];
  };
}