From 8db5491040489d8badda1692df4e8a60733a088b Mon Sep 17 00:00:00 2001 From: Marco Maggesi Date: Wed, 17 Aug 2011 16:52:38 +0000 Subject: [PATCH] Ooops, over-simplified svn path=/nixpkgs/trunk/; revision=28647 --- pkgs/os-specific/linux/blcr/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/blcr/default.nix b/pkgs/os-specific/linux/blcr/default.nix index def667df173f..ce7437100d75 100644 --- a/pkgs/os-specific/linux/blcr/default.nix +++ b/pkgs/os-specific/linux/blcr/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, kernel, perl }: +{ stdenv, fetchurl, kernel, perl, makeWrapper }: assert stdenv.isLinux; @@ -10,7 +10,7 @@ stdenv.mkDerivation { sha256 = "c8243c9a7a215d4fc4e8f2199045711cf711a6f2e0b39a94413478ffae110eac"; }; - buildInputs = [ perl ]; + buildInputs = [ perl makeWrapper ]; preConfigure = '' configureFlagsArray=( @@ -19,6 +19,13 @@ stdenv.mkDerivation { --with-system-map=${kernel}/System.map ) ''; + + postInstall = '' + for prog in "$out/bin/"* + do + wrapProgram "$prog" --prefix LD_LIBRARY_PATH ":" "$out/lib" + done + ''; meta = { description = "Berkeley Lab Checkpoint/Restart for Linux (BLCR)";