Skip to content

Commit

Permalink
Comment out things and move installed files to $out
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Nov 4, 2024
1 parent c4a763e commit c391a7c
Showing 1 changed file with 14 additions and 26 deletions.
40 changes: 14 additions & 26 deletions pkgs/isis/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -159,19 +159,11 @@ stdenv.mkDerivation {
protobuf
python3
qt5.qtbase
# qt5.qtgui
qt5.qtmultimedia
# qt5.qtnetwork
# qt5.qtopengl
# qt5.qtprintsupport
# qt5.qtqml
qt5.qtquick3d
qt5.qtscript
# qt5.qtsql
qt5.qtsvg
# qt5.qttest
qt5.qtwebchannel
# qt5.qtxml
suitesparse
superlu
tnt126
Expand All @@ -181,47 +173,43 @@ stdenv.mkDerivation {

buildInputs = [
geos
# tnt126
xercesc
];

phases = [
"unpackPhase"
"preBuild"
"buildPhase"
"installPhase"
];
# configurePhase = ":";
# phases = [
# "unpackPhase"
# "preBuild"
# "buildPhase"
# "preInstall"
# "installPhase"
# ];
dontWrapQtApps = true;
configurePhase = ":";

preBuild = ''
mkdir -p build/lib install
export ISISROOT=$(pwd)
'';

buildPhase = ''
# runHook preBuild
runHook preBuild
cd ./build
cmake -DJP2KFLAG=OFF -DBUILDTESTS=OFF -DPYBINDINGS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(pwd)/../install -GNinja ../isis
'';

preInstallPhase = ''
preInstall = ''
substituteInPlace \
../isis/src/base/objs/EmbreeTargetShape/EmbreeTargetShape.cpp \
--replace-fail "isinf" "std::isinf"
# cp IsisPreferences ..
export ISISROOT=$(pwd)
'';

installPhase = ''
runHook preInstallPhase
ninja install
runHook preInstall
mkdir $out
cp -r . $out
cp -r ../install $out
ls -la ../install
ls -la ..
ls -la .
ninja install
cp -r ../install/* $out
'';

meta = with lib; {
Expand Down

0 comments on commit c391a7c

Please sign in to comment.