nixpkgs/pkgs/by-name/gm/gmrun/package.nix
aleksana 860eea0337 gmrun: 0.9.2 -> 1.4w
gmrun has been rewritten while maintaining compatibility with previous
version. The original author acknowledged this fork and grant permission
to modify the license, see https://github.com/wdlkmpx/gmrun/issues/2
2024-10-21 16:17:01 +08:00

49 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
wrapGAppsHook3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gmrun";
version = "1.4w";
src = fetchFromGitHub {
owner = "wdlkmpx";
repo = "gmrun";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-sp+Atod9ZKVF8sxNWIMrlewqZAGnoLo2mZUNkCtSkec=";
};
nativeBuildInputs = [
pkg-config
wrapGAppsHook3
];
doCheck = true;
enableParallelBuilding = true;
# Problem with component size on wayland
preFixup = ''
gappsWrapperArgs+=(--set-default GDK_BACKEND x11)
'';
meta = {
description = "Gnome Completion-Run Utility";
longDescription = ''
A simple program which provides a "run program" window, featuring a bash-like TAB completion.
It uses GTK interface.
Also, supports CTRL-R / CTRL-S / "!" for searching through history.
Running commands in a terminal with CTRL-Enter. URL handlers.
'';
homepage = "https://github.com/wdlkmpx/gmrun";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ aleksana ];
platforms = lib.platforms.linux;
mainProgram = "gmrun";
};
})