···
-
{ stdenv, lib, fetchFromGitHub, cmake, boost, gmp, mpfr, libedit, python
, texinfo, gnused, usePython ? true }:
stdenv.mkDerivation rec {
···
outputs = [ "out" "dev" ];
-
(boost.override { enablePython = usePython; })
-
gmp mpfr libedit python gnused
nativeBuildInputs = [ cmake texinfo ];
···
# however, that would write to a different nixstore path, pass our own sitePackages location
prePatch = lib.optionalString usePython ''
substituteInPlace src/CMakeLists.txt \
-
--replace 'DESTINATION ''${Python_SITEARCH}' 'DESTINATION "${python.sitePackages}"'
installTargets = [ "doc" "install" ];
···
+
{ stdenv, lib, fetchFromGitHub, cmake, boost, gmp, mpfr, libedit, python3
, texinfo, gnused, usePython ? true }:
stdenv.mkDerivation rec {
···
outputs = [ "out" "dev" ];
+
(boost.override { enablePython = usePython; python = python3; })
+
gmp mpfr libedit python3 gnused
nativeBuildInputs = [ cmake texinfo ];
···
# however, that would write to a different nixstore path, pass our own sitePackages location
prePatch = lib.optionalString usePython ''
substituteInPlace src/CMakeLists.txt \
+
--replace 'DESTINATION ''${Python_SITEARCH}' 'DESTINATION "${python3.sitePackages}"'
installTargets = [ "doc" "install" ];