about summary refs log tree commit diff
path: root/pkgs/applications/misc/sigi/default.nix
diff options
context:
space:
mode:
author♪ hiljusti 🎮 <hiljusti@pm.me>2022-01-12 02:57:15 -0800
committer♪ hiljusti 🎮 <hiljusti@pm.me>2022-01-12 22:47:34 -0800
commit022fc3ab02c636703a4e14d55fa9da62fab176ab (patch)
tree7cd5e42493afdf88484a1842310262bbfa3fcd9d /pkgs/applications/misc/sigi/default.nix
parent00b756c545e1db06290773657c80ec65ae1eb0d4 (diff)
sigi: 2.1.1 -> 3.0.0
Diffstat (limited to 'pkgs/applications/misc/sigi/default.nix')
-rw-r--r--pkgs/applications/misc/sigi/default.nix22
1 files changed, 13 insertions, 9 deletions
diff --git a/pkgs/applications/misc/sigi/default.nix b/pkgs/applications/misc/sigi/default.nix
index 2d64883d00837..731608db7da16 100644
--- a/pkgs/applications/misc/sigi/default.nix
+++ b/pkgs/applications/misc/sigi/default.nix
@@ -1,24 +1,28 @@
-{ lib, rustPlatform, fetchFromGitHub, testVersion, sigi }:
+{ lib, rustPlatform, fetchCrate, installShellFiles, testVersion, sigi }:
 
 rustPlatform.buildRustPackage rec {
   pname = "sigi";
-  version = "2.1.1";
+  version = "3.0.0";
 
-  src = fetchFromGitHub {
-    owner = "hiljusti";
-    repo = pname;
-    rev = "v${version}";
-    sha256 = "sha256-y0m1AQE5qoUfPZjJfo7w5h+zZ1pbz8FkLFDM13MTWvQ=";
+  src = fetchCrate {
+    inherit pname version;
+    sha256 = "sha256-1xZMj6NjwA9pVOEL4CDv4XHC3usu3WdjsLJuW3vgxc8=";
   };
 
-  cargoSha256 = "sha256-NTjL57Y1Uzk5F34BW3lB3xUpD60Opt0fGWuXHQU5L3g=";
+  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.gpl3;
+    license = licenses.gpl2;
     maintainers = with maintainers; [ hiljusti ];
   };
 }