git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #27737 from puffnfresh/bug/alacritty-ld-library-path

alacritty: use patchelf instead of LD_LIBRARY_PATH

commit0e210f142cdbe8cce49eaa4e049b50c71c3194a8 authorJörg Thalheim <Mic92@users.noreply.github.com> dateSun 30 Jul 2017, 00:15 (9 years ago) parenta5e8ef506bcac9
1 file changed+16−10
pkgs/applications/misc/alacritty/default.nix+16−10
pkgs/applications/misc/alacritty/default.nix+16−10
@@ -16,6 +16,18 @@
1616
1717with rustPlatform;
1818
19+let
20+ rpathLibs = [
21+ expat
22+ freetype
23+ fontconfig
24+ libX11
25+ libXcursor
26+ libXxf86vm
27+ libXi
28+ ];
29+in
30+
1931buildRustPackage rec {
2032 name = "alacritty-unstable-2017-07-25";
2133
@@ -31,31 +43,25 @@ buildRustPackage rec {
3143 buildInputs = [
3244 cmake
3345 makeWrapper
34− freetype
35− fontconfig
3646 xclip
3747 pkgconfig
38− expat
39− libX11
40− libXcursor
41− libXxf86vm
42− libXi
43− ];
48+ ] ++ rpathLibs;
4449
4550 installPhase = ''
4651 mkdir -p $out/bin
4752 for f in $(find target/release -maxdepth 1 -type f); do
4853 cp $f $out/bin
4954 done;
50− wrapProgram $out/bin/alacritty --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath buildInputs}"
55+ patchelf --set-rpath "${stdenv.lib.makeLibraryPath rpathLibs}" $out/bin/alacritty
5156 '';
5257
58+ dontPatchELF = true;
5359
5460 meta = with stdenv.lib; {
5561 description = "GPU-accelerated terminal emulator";
5662 homepage = https://github.com/jwilm/alacritty;
5763 license = with licenses; [ asl20 ];
5864 maintainers = with maintainers; [ mic92 ];
59− platforms = platforms.all;
65+ platforms = platforms.linux;
6066 };
6167}