mjpg-streamer: use postFixup instead of dontPatchElf and NIX_LDFLAGS
This commit is contained in:
parent
54c9c0b4a7
commit
7ee3b0023f
@ -15,9 +15,9 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace Makefile "cp plugins\/input_gspcav1\/input_gspcav1.so" "# cp plugins\/input_gspcav1\/input_gspcav1.so"
|
substituteInPlace Makefile "cp plugins\/input_gspcav1\/input_gspcav1.so" "# cp plugins\/input_gspcav1\/input_gspcav1.so"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Make sure mjpeg-streamer will look in "$out/lib/plugins" for its plugins.
|
postFixup = ''
|
||||||
NIX_LDFLAGS = "-rpath $out/lib:$out/lib/plugins";
|
patchelf --set-rpath "$(patchelf --print-rpath $out/bin/mjpg_streamer):$out/lib:$out/lib/plugins" $out/bin/mjpg_streamer
|
||||||
dontPatchELF = true;
|
'';
|
||||||
|
|
||||||
makeFlags = "DESTDIR=$(out)";
|
makeFlags = "DESTDIR=$(out)";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user