mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 05:57:28 +00:00
imhex: fix RUNPATH to find libGL and plugins
This commit is contained in:
parent
fe47a55fa3
commit
1db62e6fb7
@ -9,6 +9,7 @@
|
|||||||
, capstone
|
, capstone
|
||||||
, dbus
|
, dbus
|
||||||
, libGLU
|
, libGLU
|
||||||
|
, libGL
|
||||||
, glfw3
|
, glfw3
|
||||||
, file
|
, file
|
||||||
, perl
|
, perl
|
||||||
@ -19,6 +20,7 @@
|
|||||||
, nlohmann_json
|
, nlohmann_json
|
||||||
, yara
|
, yara
|
||||||
, rsync
|
, rsync
|
||||||
|
, autoPatchelfHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -47,7 +49,7 @@ stdenv.mkDerivation rec {
|
|||||||
hash = "sha256-8vhOOHfg4D9B9yYgnGZBpcjAjuL4M4oHHax9ad5PJtA=";
|
hash = "sha256-8vhOOHfg4D9B9yYgnGZBpcjAjuL4M4oHHax9ad5PJtA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake llvm python3 perl pkg-config rsync ];
|
nativeBuildInputs = [ autoPatchelfHook cmake llvm python3 perl pkg-config rsync ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
capstone
|
capstone
|
||||||
@ -64,6 +66,14 @@ stdenv.mkDerivation rec {
|
|||||||
yara
|
yara
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# autoPatchelfHook only searches for *.so and *.so.*, and won't find *.hexpluglib
|
||||||
|
# however, we will append to RUNPATH ourselves
|
||||||
|
autoPatchelfIgnoreMissingDeps = [ "*.hexpluglib" ];
|
||||||
|
appendRunpaths = [
|
||||||
|
(lib.makeLibraryPath [ libGL ])
|
||||||
|
"${placeholder "out"}/lib/imhex/plugins"
|
||||||
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DIMHEX_OFFLINE_BUILD=ON"
|
"-DIMHEX_OFFLINE_BUILD=ON"
|
||||||
"-DUSE_SYSTEM_CAPSTONE=ON"
|
"-DUSE_SYSTEM_CAPSTONE=ON"
|
||||||
|
Loading…
Reference in New Issue
Block a user