mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
61c3058bcb
using inherits in callPackage args is discouraged and doesn't splice correctly
32 lines
809 B
Nix
32 lines
809 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, xorg
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rlaunch";
|
|
version = "1.3.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PonasKovas";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1w8qvny72l5358wnk4dmqnrv4mrpzxrzf49svav9grzxzzf8mqy2";
|
|
};
|
|
|
|
cargoSha256 = "00lnw48kn97gp45lylv5c6v6pil74flzpsq9k69xgvvjq9yqjzrx";
|
|
|
|
# The x11_dl crate dlopen()s these libraries, so we have to inject them into rpath.
|
|
postFixup = ''
|
|
patchelf --set-rpath ${lib.makeLibraryPath (with xorg; [ libX11 libXft libXinerama ])} $out/bin/rlaunch
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A lightweight application launcher for X11";
|
|
homepage = "https://github.com/PonasKovas/rlaunch";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ danc86 ];
|
|
};
|
|
}
|