From cb130281bae11bdc8e95ed2108fcd6039e730411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 21 Dec 2009 01:02:47 +0000 Subject: [PATCH] perl: Fix for impure GNU/kFreeBSD builds. svn path=/nixpkgs/trunk/; revision=19059 --- pkgs/development/interpreters/perl-5.10/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/perl-5.10/default.nix b/pkgs/development/interpreters/perl-5.10/default.nix index 9e745ae18141..96451380e6d5 100644 --- a/pkgs/development/interpreters/perl-5.10/default.nix +++ b/pkgs/development/interpreters/perl-5.10/default.nix @@ -46,7 +46,9 @@ stdenv.mkDerivation { preBuild = '' # Make Cwd work on NixOS (where we don't have a /bin/pwd). - ${if stdenv.isDarwin then "" else "substituteInPlace lib/Cwd.pm --replace \"'/bin/pwd'\" \"'$(type -tP pwd)'\""} + ${if (stdenv.isDarwin || stdenv.system == "i686-gnu/kfreebsd") + then "" + else "substituteInPlace lib/Cwd.pm --replace \"'/bin/pwd'\" \"'$(type -tP pwd)'\""} ''; setupHook = ./setup-hook.sh;