quickder: fix python shebangs

This commit is contained in:
Jörg Thalheim 2018-02-20 11:23:41 +00:00
parent 1afb012df6
commit 585971600f

View File

@ -29,19 +29,21 @@ stdenv.mkDerivation rec {
pkgconfig pkgconfig
]; ];
patchPhase = '' postPatch = ''
substituteInPlace ./CMakeLists.txt \ substituteInPlace ./CMakeLists.txt \
--replace "get_version_from_git" "set (Quick-DER_VERSION 1.2) #" --replace "get_version_from_git" "set (Quick-DER_VERSION 1.2) #"
substituteInPlace ./CMakeLists.txt \ substituteInPlace ./CMakeLists.txt \
--replace \$\{ARPA2CM_TOOLCHAIN_DIR} "$out/share/ARPA2CM/toolchain/" --replace \$\{ARPA2CM_TOOLCHAIN_DIR} "$out/share/ARPA2CM/toolchain/"
''; patchShebangs python/scripts/
'';
cmakeFlags = [ "-DNO_TESTING=ON" cmakeFlags = [
"-DARPA2CM_TOOLCHAIN_DIR=$out/share/ARPA2CM/toolchain/" "-DNO_TESTING=ON"
"-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DARPA2CM_TOOLCHAIN_DIR=$out/share/ARPA2CM/toolchain/"
"-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON"
"-DPACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON"
]; "-DPACKAGE_NO_PACKAGE_REGISTRY=ON"
];
preConfigure = '' preConfigure = ''
export PREFIX=$out export PREFIX=$out