summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2022-01-14 10:27:36 +0800
committerGitHub <noreply@github.com>2022-01-14 10:27:36 +0800
commit78b047c640ff8ab96d3893c2d5705b5b2ea95c8a (patch)
tree97326a86d4827ab9d2dadab07fbe4bf07ff8b27d /pkgs
parent2e22d37c3584542bf23748d540df8d9fae1ed130 (diff)
parent022fc3ab02c636703a4e14d55fa9da62fab176ab (diff)
downloadnixpkgs-78b047c640ff8ab96d3893c2d5705b5b2ea95c8a.tar
nixpkgs-78b047c640ff8ab96d3893c2d5705b5b2ea95c8a.tar.gz
nixpkgs-78b047c640ff8ab96d3893c2d5705b5b2ea95c8a.tar.bz2
nixpkgs-78b047c640ff8ab96d3893c2d5705b5b2ea95c8a.tar.lz
nixpkgs-78b047c640ff8ab96d3893c2d5705b5b2ea95c8a.tar.xz
nixpkgs-78b047c640ff8ab96d3893c2d5705b5b2ea95c8a.tar.zst
nixpkgs-78b047c640ff8ab96d3893c2d5705b5b2ea95c8a.zip
Merge pull request #154743 from hiljusti/update/sigi
sigi: 2.1.1 -> 3.0.0
Diffstat (limited to 'pkgs')
-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 2d64883d008..731608db7da 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 ];
   };
 }