summary refs log tree commit diff
path: root/pkgs/development/libraries/libargon2
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-07-10 08:51:15 +0100
committerJörg Thalheim <joerg@thalheim.io>2017-07-10 08:51:46 +0100
commitb6d0c1eb18e2d7704989029b77ce3e6074a72b35 (patch)
treed5eb4f9e95455138db34127dd422d226eee67ad1 /pkgs/development/libraries/libargon2
parent5160ae5d5c3ff17919f21ac3be41ab5e1115a747 (diff)
downloadnixpkgs-b6d0c1eb18e2d7704989029b77ce3e6074a72b35.tar
nixpkgs-b6d0c1eb18e2d7704989029b77ce3e6074a72b35.tar.gz
nixpkgs-b6d0c1eb18e2d7704989029b77ce3e6074a72b35.tar.bz2
nixpkgs-b6d0c1eb18e2d7704989029b77ce3e6074a72b35.tar.lz
nixpkgs-b6d0c1eb18e2d7704989029b77ce3e6074a72b35.tar.xz
nixpkgs-b6d0c1eb18e2d7704989029b77ce3e6074a72b35.tar.zst
nixpkgs-b6d0c1eb18e2d7704989029b77ce3e6074a72b35.zip
libargon2: do not override pre/postInstall hook
Diffstat (limited to 'pkgs/development/libraries/libargon2')
-rw-r--r--pkgs/development/libraries/libargon2/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libargon2/default.nix b/pkgs/development/libraries/libargon2/default.nix
index 68df0a288fc..79cbf09317c 100644
--- a/pkgs/development/libraries/libargon2/default.nix
+++ b/pkgs/development/libraries/libargon2/default.nix
@@ -3,6 +3,7 @@
 stdenv.mkDerivation rec {
   name = "libargon2-${version}";
   version = "20161029";
+
   src = fetchFromGitHub {
     owner = "P-H-C";
     repo = "phc-winner-argon2";
@@ -11,14 +12,16 @@ stdenv.mkDerivation rec {
   };
 
   installPhase = ''
-    mkdir -p $out
-    make install PREFIX=$out
+    runHook preInstall
     mkdir -p $out/lib/pkgconfig
     substitute libargon2.pc $out/lib/pkgconfig/libargon2.pc \
       --replace @UPSTREAM_VER@ "${version}"                 \
       --replace @HOST_MULTIARCH@ ""                         \
       --replace 'prefix=/usr' "prefix=$out"
+
+    make install PREFIX=$out
     ln -s $out/lib/libargon2.so $out/lib/libargon2.so.0
+    runHook postInstall
   '';
 
   meta = with stdenv.lib; {