summaryrefslogtreecommitdiff
path: root/pkgs/athena-bccr/unwrapped.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/athena-bccr/unwrapped.nix')
-rw-r--r--pkgs/athena-bccr/unwrapped.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/athena-bccr/unwrapped.nix b/pkgs/athena-bccr/unwrapped.nix
index 200e998..55ef107 100644
--- a/pkgs/athena-bccr/unwrapped.nix
+++ b/pkgs/athena-bccr/unwrapped.nix
@@ -67,19 +67,21 @@ in
autoPatchelfHook
];
+ outputs = [ "out" "lib" ];
+
installPhase = ''
runHook preInstall
- install -m755 -d $out/{bin,etc,lib/x64-athena}
+ install -m755 -d $out/bin $lib/{etc,lib/x64-athena}
install -m755 usr/bin/IDProtect{_Manager,PINTool} $out/bin/
- install -m755 usr/lib/x64-athena/* $out/lib/x64-athena
- cp -r etc/Athena $out/etc/Athena
+ install -m755 usr/lib/x64-athena/* $lib/lib/x64-athena
+ cp -r etc/Athena $lib/etc/Athena
runHook postInstall
'';
preFixup = ''
- patchelf --set-rpath $out/lib/x64-athena $out/bin/*
+ patchelf --set-rpath $lib/lib/x64-athena $out/bin/*
'';
};