2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2022-12-02 08:20:57 +00:00
|
|
|
, fetchpatch
|
2022-08-12 12:06:08 +00:00
|
|
|
, rustPlatform
|
2022-10-21 18:38:19 +00:00
|
|
|
, xorg
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rlaunch";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.3.14";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PonasKovas";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-PyCR/ob947W+6T56y1se74aNy1avJDb2ELyv2aGf1og=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoHash = "sha256-/a1SjGDcauOy1vmXvmWBZmag8G+T2au+Z7b0y1Vj3C8=";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
# The x11_dl crate dlopen()s these libraries, so we have to inject them into rpath.
|
|
|
|
postFixup = ''
|
2022-10-21 18:38:19 +00:00
|
|
|
patchelf --set-rpath ${lib.makeLibraryPath (with xorg; [ libX11 libXft libXinerama ])} $out/bin/rlaunch
|
2022-08-12 12:06:08 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A lightweight application launcher for X11";
|
|
|
|
homepage = "https://github.com/PonasKovas/rlaunch";
|
|
|
|
license = licenses.mit;
|
2022-12-02 08:20:57 +00:00
|
|
|
platforms = platforms.linux;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ danc86 ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "rlaunch";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|