39 lines
571 B
Nix
39 lines
571 B
Nix
|
{ stdenv
|
||
|
, boost
|
||
|
, callPackage
|
||
|
, coreutils
|
||
|
, libspnav
|
||
|
, python3
|
||
|
, wrapGAppsHook3
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
base = callPackage ./base.nix { };
|
||
|
in
|
||
|
stdenv.mkDerivation rec {
|
||
|
inherit (base) pname version src meta CASROOT;
|
||
|
|
||
|
# provide base for python module
|
||
|
passthru = {
|
||
|
inherit base;
|
||
|
};
|
||
|
|
||
|
buildInputs = base.buildInputs ++ [
|
||
|
libspnav
|
||
|
];
|
||
|
|
||
|
nativeBuildInputs = base.nativeBuildInputs ++ [
|
||
|
boost.dev
|
||
|
wrapGAppsHook3
|
||
|
python3
|
||
|
];
|
||
|
|
||
|
installFlags = [
|
||
|
"INSTALL=${coreutils}/bin/install"
|
||
|
"DESTDIR=$(out)"
|
||
|
"PREFIX="
|
||
|
];
|
||
|
|
||
|
enableParallelBuilding = true;
|
||
|
}
|