diff options
author | Niklas Hambüchen <mail@nh2.me> | 2024-04-10 21:10:05 +0000 |
---|---|---|
committer | Niklas Hambüchen <mail@nh2.me> | 2024-04-10 21:14:05 +0000 |
commit | 4adc607b77d623ecd6b545b75435e455ae9382ac (patch) | |
tree | 5a43e789ad28d551045af22eef4094bfb6ab43d2 | |
parent | ddcd5f27629170e0f2d408a52ed6e90727f74de1 (diff) |
potreeconverter: Don't unnecessarily override patchPhase/fixupPhase.
Overriding `patchPhase` makes declaring or overriding `patches = [...]` have no effect.
-rw-r--r-- | pkgs/applications/graphics/potreeconverter/default.nix | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/pkgs/applications/graphics/potreeconverter/default.nix b/pkgs/applications/graphics/potreeconverter/default.nix index cc63cbe289b60..ae7acec3522f4 100644 --- a/pkgs/applications/graphics/potreeconverter/default.nix +++ b/pkgs/applications/graphics/potreeconverter/default.nix @@ -28,7 +28,7 @@ stdenv.mkDerivation rec { cmake ]; - patchPhase = '' + postPatch = '' runHook prePatch substituteInPlace ./CMakeLists.txt \ @@ -37,12 +37,12 @@ stdenv.mkDerivation rec { # prevent inheriting permissions from /nix/store when copying substituteInPlace Converter/src/main.cpp --replace \ 'fs::copy(templateDir, pagedir, fs::copy_options::overwrite_existing | fs::copy_options::recursive)' 'string cmd = "cp --no-preserve=mode -r " + templateDir + " " + pagedir; system(cmd.c_str());' - - runHook postPatch ''; + # The upstream build system does not provide an install target. installPhase = '' runHook preInstall + mkdir -p $out/{bin,lib} mv liblaszip.so $out/lib mv PotreeConverter $out/bin @@ -56,10 +56,8 @@ stdenv.mkDerivation rec { runHook postInstall ''; - fixupPhase = '' - runHook preFixup + postFixup = '' ln -s $src/resources $out/bin/resources - runHook postFixup ''; meta = with lib; { |