mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
57 lines
1.1 KiB
Nix
57 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;
|
|
};
|
|
}
|