From 1858a39c9a61b177acdb11e0728903bcdea90457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 3 Oct 2015 16:41:51 +0200 Subject: [PATCH] apr: don't manually move apr-1-config Also refactor meta. --- pkgs/development/libraries/apr/default.nix | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pkgs/development/libraries/apr/default.nix b/pkgs/development/libraries/apr/default.nix index 74994223e0f4..c6e505f43d23 100644 --- a/pkgs/development/libraries/apr/default.nix +++ b/pkgs/development/libraries/apr/default.nix @@ -11,6 +11,7 @@ stdenv.mkDerivation rec { patches = stdenv.lib.optionals stdenv.isDarwin [ ./is-this-a-compiler-bug.patch ]; outputs = [ "dev" "out" ]; + outputBin = "dev"; preConfigure = '' @@ -24,17 +25,10 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - postInstall = - '' - mkdir $dev/bin $dev/lib - mv $out/bin/apr-1-config $dev/bin - mv $out/lib/pkgconfig $dev/lib - ''; - - meta = { + meta = with stdenv.lib; { homepage = http://apr.apache.org/; description = "The Apache Portable Runtime library"; - platforms = stdenv.lib.platforms.all; - maintainers = [ stdenv.lib.maintainers.eelco ]; + platforms = platforms.all; + maintainers = [ maintainers.eelco ]; }; }