Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 pkg-config, 6 git, 7 gtkmm4, 8 gtk4-layer-shell, 9 wrapGAppsHook4, 10 unstableGitUpdater, 11}: 12 13stdenv.mkDerivation { 14 pname = "sysmenu"; 15 version = "0-unstable-2024-06-13"; 16 17 src = fetchFromGitHub { 18 owner = "System64fumo"; 19 repo = "sysmenu"; 20 rev = "0b891e5d27f286b867d4a0984ee284a3456de851"; 21 hash = "sha256-zI6dmS+ZqcGrG/joWouqrMNQfTRflP677kYJLJEWTBc="; 22 }; 23 24 patches = [ 25 ./001-no-runtime-config.patch 26 ./002-cflags-fix.patch 27 ]; 28 29 nativeBuildInputs = [ 30 pkg-config 31 git 32 wrapGAppsHook4 33 ]; 34 35 buildInputs = [ 36 gtkmm4 37 gtk4-layer-shell 38 ]; 39 40 installPhase = '' 41 runHook preInstall 42 install -Dm755 sysmenu $out/bin/sysmenu 43 runHook postInstall 44 ''; 45 46 passthru.updateScript = unstableGitUpdater { }; 47 48 meta = { 49 description = "Simple program launcher using GTK4"; 50 homepage = "https://github.com/System64fumo/sysmenu"; 51 license = lib.licenses.wtfpl; 52 mainProgram = "sysmenu"; 53 maintainers = with lib.maintainers; [ matteopacini ]; 54 platforms = lib.platforms.linux; 55 }; 56}