depot/third_party/nixpkgs/pkgs/by-name/sy/sysmenu/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

56 lines
1.1 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
pkg-config,
git,
gtkmm4,
gtk4-layer-shell,
wrapGAppsHook4,
unstableGitUpdater,
}:
stdenv.mkDerivation {
pname = "sysmenu";
version = "unstable-2024-06-13";
src = fetchFromGitHub {
owner = "System64fumo";
repo = "sysmenu";
rev = "0b891e5d27f286b867d4a0984ee284a3456de851";
hash = "sha256-zI6dmS+ZqcGrG/joWouqrMNQfTRflP677kYJLJEWTBc=";
};
patches = [
./001-no-runtime-config.patch
./002-cflags-fix.patch
];
nativeBuildInputs = [
pkg-config
git
wrapGAppsHook4
];
buildInputs = [
gtkmm4
gtk4-layer-shell
];
installPhase = ''
runHook preInstall
install -Dm755 sysmenu $out/bin/sysmenu
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater { };
meta = {
description = "Simple program launcher using GTK4";
homepage = "https://github.com/System64fumo/sysmenu";
license = lib.licenses.wtfpl;
mainProgram = "sysmenu";
maintainers = with lib.maintainers; [ matteopacini ];
platforms = lib.platforms.linux;
};
}