diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 3cc80bf3b640..802370d286ed 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2824,6 +2824,15 @@ githubId = 743057; name = "Danylo Hlynskyi"; }; + danc86 = { + name = "Dan Callaghan"; + email = "djc@djc.id.au"; + github = "danc86"; + githubId = 398575; + keys = [{ + fingerprint = "1C56 01F1 D70A B56F EABB 6BC0 26B5 AA2F DAF2 F30A"; + }]; + }; dancek = { email = "hannu.hartikainen@gmail.com"; github = "dancek"; diff --git a/pkgs/applications/misc/rlaunch/default.nix b/pkgs/applications/misc/rlaunch/default.nix new file mode 100644 index 000000000000..206c32987cca --- /dev/null +++ b/pkgs/applications/misc/rlaunch/default.nix @@ -0,0 +1,33 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, libX11 +, libXft +, libXinerama +}: + +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 [ 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e449c34634bd..014ba7e81648 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27861,6 +27861,10 @@ with pkgs; tiramisu = callPackage ../applications/misc/tiramisu { }; + rlaunch = callPackage ../applications/misc/rlaunch { + inherit (xorg) libX11 libXft libXinerama; + }; + rootbar = callPackage ../applications/misc/rootbar {}; waybar = callPackage ../applications/misc/waybar {};