summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorPatrick Mahoney <pat@polycrystal.org>2014-11-28 13:10:37 -0600
committerPatrick Mahoney <pat@polycrystal.org>2014-11-28 13:10:37 -0600
commitcf5f282940c9ac07533ef602e2ea415e1a5ed517 (patch)
tree3195d77badf3e6557f58ad42ed506b22bf1a4494 /pkgs/development/libraries
parentc37611f3e5a35ecfa349362d432708176e1c6fb5 (diff)
downloadnixpkgs-cf5f282940c9ac07533ef602e2ea415e1a5ed517.tar
nixpkgs-cf5f282940c9ac07533ef602e2ea415e1a5ed517.tar.gz
nixpkgs-cf5f282940c9ac07533ef602e2ea415e1a5ed517.tar.bz2
nixpkgs-cf5f282940c9ac07533ef602e2ea415e1a5ed517.tar.lz
nixpkgs-cf5f282940c9ac07533ef602e2ea415e1a5ed517.tar.xz
nixpkgs-cf5f282940c9ac07533ef602e2ea415e1a5ed517.tar.zst
nixpkgs-cf5f282940c9ac07533ef602e2ea415e1a5ed517.zip
Consolidate conf-compile steps for skarnet.org pkgs.
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/skalibs/default.nix33
1 files changed, 6 insertions, 27 deletions
diff --git a/pkgs/development/libraries/skalibs/default.nix b/pkgs/development/libraries/skalibs/default.nix
index ba8dcc812e8..55c69b137e5 100644
--- a/pkgs/development/libraries/skalibs/default.nix
+++ b/pkgs/development/libraries/skalibs/default.nix
@@ -1,10 +1,14 @@
-{stdenv, fetchurl}:
+{ stdenv
+, skarnetConfCompile
+, fetchurl
+}:
 
 let
 
   version = "1.6.0.0";
 
 in stdenv.mkDerivation rec {
+
   name = "skalibs-${version}";
 
   src = fetchurl {
@@ -17,32 +21,7 @@ in stdenv.mkDerivation rec {
   # See http://skarnet.org/cgi-bin/archive.cgi?1:mss:75:201405:pkmodhckjklemogbplje
   patches = [ ./getpeereid.patch ];
 
-  configurePhase = ''
-    pushd conf-compile
-
-    printf "$out/bin"     > conf-defaultpath
-    printf "$out/etc"     > conf-etc
-    printf "$out/bin"     > conf-install-command
-    printf "$out/include" > conf-install-include
-    printf "$out/libexec" > conf-install-libexec
-    printf "$out/lib"     > conf-install-library
-    printf "$out/lib"     > conf-install-library.so
-    printf "$out/sysdeps" > conf-install-sysdeps
-
-    # let nix builder strip things, cross-platform
-    truncate --size 0 conf-stripbins
-    truncate --size 0 conf-striplibs
-
-    rm -f flag-slashpackage
-    touch flag-allstatic
-    touch flag-forcedevr
-
-    popd
-  '';
-
-  preBuild = ''
-    patchShebangs src/sys
-  '';
+  buildInputs = [ skarnetConfCompile ];
 
   preInstall = ''
     mkdir -p "$out/etc"