fix sloccount build

This commit is contained in:
Domen Kožar 2014-12-03 22:11:56 +01:00
parent ee1542c948
commit c7028192c2

View file

@ -29,10 +29,7 @@ stdenv.mkDerivation rec {
done
'';
configurePhase = ''
sed -i "makefile" -"es|PREFIX[[:blank:]]*=.*$|PREFIX = $out|g"
sed -i "makefile" -"es|gcc|$CC|g"
'';
makeFlags = "PREFIX=$(out) CC=cc";
doCheck = true;
checkPhase = ''HOME="$TMPDIR" PATH="$PWD:$PATH" make test'';