From 53dde421533d96de8c8c72c9d756042de800fd6b Mon Sep 17 00:00:00 2001 From: Willi Butz Date: Sat, 25 Mar 2017 19:43:42 +0100 Subject: [PATCH] manticore: fix compiling pml sources Compiler depends on sources that weren't present in the output. --- pkgs/development/compilers/manticore/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/manticore/default.nix b/pkgs/development/compilers/manticore/default.nix index d068d744f20..795830e0e70 100644 --- a/pkgs/development/compilers/manticore/default.nix +++ b/pkgs/development/compilers/manticore/default.nix @@ -21,7 +21,19 @@ in stdenv.mkDerivation rec { autoreconfFlags = "-Iconfig -vfi"; - postPatch = "patchShebangs ."; + unpackPhase = '' + mkdir -p $out + cd $out + unpackFile $src + mv manticore_temp_mirror-${rev}-src repo_checkout + cd repo_checkout + chmod u+w . -R + ''; + + postPatch = '' + patchShebangs . + substituteInPlace configure.ac --replace 'MANTICORE_ROOT=`pwd`' 'MANTICORE_ROOT=$out/repo_checkout' + ''; preInstall = "mkdir -p $out/bin";