2022-03-10 19:12:11 +00:00
|
|
|
{ stdenv, lib, pkgs, fzf, gawk, fetchFromGitHub, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sway-launcher-desktop";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.7.0";
|
2022-03-10 19:12:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Biont";
|
|
|
|
repo = "sway-launcher-desktop";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-lv1MLPJsJJjm6RLzZXWEz1JO/4EXTQ8wj225Di+98G4=";
|
2022-03-10 19:12:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ${pname}.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ fzf gawk ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -d $out/bin
|
|
|
|
install ${pname}.sh $out/bin/${pname}
|
|
|
|
wrapProgram $out/bin/${pname} \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ gawk fzf ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "TUI Application launcher with Desktop Entry support.";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "sway-launcher-desktop";
|
2022-03-10 19:12:11 +00:00
|
|
|
longDescription = ''
|
|
|
|
This is a TUI-based launcher menu made with bash and the amazing fzf.
|
|
|
|
Despite its name, it does not (read: no longer) depend on the Sway window manager
|
|
|
|
in any way and can be used with just about any WM.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/Biont/sway-launcher-desktop";
|
|
|
|
changelog = "https://github.com/Biont/sway-launcher-desktop/releases/tag/v${version}";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = [ maintainers.thehedgeh0g ];
|
2022-03-10 19:12:11 +00:00
|
|
|
};
|
|
|
|
}
|