about summary refs log tree commit diff
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-22 02:38:59 +0100
committerGitHub <noreply@github.com>2023-01-22 02:38:59 +0100
commitf5b2bb846ac6499a7400b904a7fa2056aa1ead68 (patch)
tree9272497a04678adf0df61227130bccfb3f13e12b /pkgs/applications/science
parent389edcda094132f11b62ef14264a80e8a2c768b8 (diff)
parent751c42b62b7d9d01171832dc4f7fd5977bc3d649 (diff)
Merge pull request #211167 from wegank/pagsuite-fetchurl
pagsuite: fetchzip -> fetchurl
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/math/pagsuite/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/applications/science/math/pagsuite/default.nix b/pkgs/applications/science/math/pagsuite/default.nix
index e8ae3318eebad..6994712e18fd9 100644
--- a/pkgs/applications/science/math/pagsuite/default.nix
+++ b/pkgs/applications/science/math/pagsuite/default.nix
@@ -1,7 +1,8 @@
 { lib
 , stdenv
-, fetchzip
+, fetchurl
 , cmake
+, unzip
 , gmp
 , scalp
 }:
@@ -10,17 +11,16 @@ stdenv.mkDerivation rec {
   pname = "pagsuite";
   version = "1.80";
 
-  src = fetchzip {
+  src = fetchurl {
     url = "https://gitlab.com/kumm/pagsuite/-/raw/master/releases/pagsuite_${lib.replaceStrings ["."] ["_"] version}.zip";
-    sha256 = "sha256-JuRuDPhKKBGz8jUBkZcZW5s2berOewjsPNR/n7kuofY=";
-    stripRoot = false;
-    postFetch = ''
-      mv $out/pagsuite*/* $out
-    '';
+    hash = "sha256-TYd+dleVPWEWU9Cb3XExd7ixJZyiUAp9QLtorYJSIbQ=";
   };
 
+  sourceRoot = "pagsuite_${lib.replaceStrings ["."] ["_"] version}";
+
   nativeBuildInputs = [
     cmake
+    unzip
   ];
 
   buildInputs = [