nixpkgs/pkgs/applications/misc/rlaunch/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
863 B
Nix
Raw Normal View History

2022-07-26 12:10:28 +00:00
{ lib
, fetchFromGitHub
, rustPlatform
, xorg
2022-07-26 12:10:28 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "rlaunch";
2023-09-17 01:06:58 +00:00
version = "1.3.14";
2022-07-26 12:10:28 +00:00
src = fetchFromGitHub {
owner = "PonasKovas";
repo = pname;
rev = version;
2023-09-17 01:06:58 +00:00
hash = "sha256-PyCR/ob947W+6T56y1se74aNy1avJDb2ELyv2aGf1og=";
2022-07-26 12:10:28 +00:00
};
2023-09-17 01:06:58 +00:00
cargoHash = "sha256-/a1SjGDcauOy1vmXvmWBZmag8G+T2au+Z7b0y1Vj3C8=";
2022-07-26 12:10:28 +00:00
# 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
2022-07-26 12:10:28 +00:00
'';
meta = with lib; {
description = "Lightweight application launcher for X11";
2022-07-26 12:10:28 +00:00
homepage = "https://github.com/PonasKovas/rlaunch";
license = licenses.mit;
platforms = platforms.linux;
2022-07-26 12:10:28 +00:00
maintainers = with maintainers; [ danc86 ];
2024-02-11 02:19:15 +00:00
mainProgram = "rlaunch";
2022-07-26 12:10:28 +00:00
};
}