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,14 +29,16 @@ 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 = [
"-DNO_TESTING=ON"
"-DARPA2CM_TOOLCHAIN_DIR=$out/share/ARPA2CM/toolchain/" "-DARPA2CM_TOOLCHAIN_DIR=$out/share/ARPA2CM/toolchain/"
"-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON"
"-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON"