Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 43 lines 947 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 xorg, 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "rlaunch"; 10 version = "1.3.14"; 11 12 src = fetchFromGitHub { 13 owner = "PonasKovas"; 14 repo = "rlaunch"; 15 rev = version; 16 hash = "sha256-PyCR/ob947W+6T56y1se74aNy1avJDb2ELyv2aGf1og="; 17 }; 18 19 cargoHash = "sha256-5mj20MN0FUNa2xawocNhh2C1jX0yN2QNnKYvJi88b0M="; 20 21 # The x11_dl crate dlopen()s these libraries, so we have to inject them into rpath. 22 postFixup = '' 23 patchelf --set-rpath ${ 24 lib.makeLibraryPath ( 25 with xorg; 26 [ 27 libX11 28 libXft 29 libXinerama 30 ] 31 ) 32 } $out/bin/rlaunch 33 ''; 34 35 meta = with lib; { 36 description = "Lightweight application launcher for X11"; 37 homepage = "https://github.com/PonasKovas/rlaunch"; 38 license = licenses.mit; 39 platforms = platforms.linux; 40 maintainers = with maintainers; [ danc86 ]; 41 mainProgram = "rlaunch"; 42 }; 43}