From b92081a2895d6966c064d96f9987bc03cdcfeb5e Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Tue, 17 Jun 2025 00:41:41 +0200 Subject: [PATCH] ida-free: Install to an application-specific directory in /opt --- pkgs/by-name/id/ida-free/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/id/ida-free/package.nix b/pkgs/by-name/id/ida-free/package.nix index e08ffe448900..c741c6b5337a 100644 --- a/pkgs/by-name/id/ida-free/package.nix +++ b/pkgs/by-name/id/ida-free/package.nix @@ -22,7 +22,7 @@ zlib, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: rec { pname = "ida-free"; version = "9.1"; @@ -84,7 +84,7 @@ stdenv.mkDerivation rec { # IDA depends on quite some things extracted by the runfile, so first extract everything # into $out/opt, then remove the unnecessary files and directories. - IDADIR=$out/opt + IDADIR=$out/opt/${finalAttrs.pname}-${finalAttrs.version} # The installer doesn't honor `--prefix` in all places, # thus needing to set `HOME` here. @@ -127,4 +127,4 @@ stdenv.mkDerivation rec { platforms = [ "x86_64-linux" ]; # Right now, the installation script only supports Linux. sourceProvenance = with sourceTypes; [ binaryNativeCode ]; }; -} +})