libargon2: do not override pre/postInstall hook

This commit is contained in:
Jörg Thalheim 2017-07-10 08:51:15 +01:00
parent 5160ae5d5c
commit b6d0c1eb18

View File

@ -3,6 +3,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libargon2-${version}"; name = "libargon2-${version}";
version = "20161029"; version = "20161029";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "P-H-C"; owner = "P-H-C";
repo = "phc-winner-argon2"; repo = "phc-winner-argon2";
@ -11,14 +12,16 @@ stdenv.mkDerivation rec {
}; };
installPhase = '' installPhase = ''
mkdir -p $out runHook preInstall
make install PREFIX=$out
mkdir -p $out/lib/pkgconfig mkdir -p $out/lib/pkgconfig
substitute libargon2.pc $out/lib/pkgconfig/libargon2.pc \ substitute libargon2.pc $out/lib/pkgconfig/libargon2.pc \
--replace @UPSTREAM_VER@ "${version}" \ --replace @UPSTREAM_VER@ "${version}" \
--replace @HOST_MULTIARCH@ "" \ --replace @HOST_MULTIARCH@ "" \
--replace 'prefix=/usr' "prefix=$out" --replace 'prefix=/usr' "prefix=$out"
make install PREFIX=$out
ln -s $out/lib/libargon2.so $out/lib/libargon2.so.0 ln -s $out/lib/libargon2.so $out/lib/libargon2.so.0
runHook postInstall
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {