From fcd5670a07bd3d8cac2fe63063edc21381640eff Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Fri, 7 May 2021 20:26:15 +0200 Subject: [PATCH] emulsion: fix build ZHF #122042 Failing Hydra build: https://hydra.nixos.org/build/142625836 --- pkgs/applications/graphics/emulsion/default.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/graphics/emulsion/default.nix b/pkgs/applications/graphics/emulsion/default.nix index 9792ce4d6d2..465e78e434c 100644 --- a/pkgs/applications/graphics/emulsion/default.nix +++ b/pkgs/applications/graphics/emulsion/default.nix @@ -63,17 +63,10 @@ rustPlatform.buildRustPackage rec { OpenGL ]; - installPhase = '' - runHook preInstall - install -D $releaseDir/emulsion $out/bin/emulsion - '' + lib.optionalString stdenv.isLinux '' - patchelf --set-rpath "${lib.makeLibraryPath rpathLibs}" $out/bin/emulsion - '' + '' - runHook postInstall + postFixup = lib.optionalString stdenv.isLinux '' + patchelf --set-rpath "${lib.makeLibraryPath rpathLibs}" $out/bin/emulsion ''; - dontPatchELF = true; - meta = with lib; { description = "A fast and minimalistic image viewer"; homepage = "https://arturkovacs.github.io/emulsion-website/";