sysmenu: init at unstable-2024-06-13

This commit is contained in:
Matteo Pacini 2024-06-17 00:17:34 +01:00
parent ca3274ea13
commit 5a2f8d17cf
3 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/config.hpp b/src/config.hpp
index 6e7439b..ae01462 100644
--- a/src/config.hpp
+++ b/src/config.hpp
@@ -4,8 +4,6 @@
Runtime configuration can be disabled by deleting #define RUNTIME_CONFIG
*/
-#define RUNTIME_CONFIG
-
// Current Default
inline bool starthidden = false; // false
inline bool searchbar = true; // true

View File

@ -0,0 +1,13 @@
diff --git a/Makefile b/Makefile
index f0b6baf..71033a5 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ SRCS += $(wildcard src/*.cpp)
OBJS = $(SRCS:.cpp=.o)
DESTDIR = $(HOME)/.local
-CXXFLAGS = -march=native -mtune=native -Os -s -Wall -flto=auto -fno-exceptions
+CXXFLAGS = -Os -s -Wall -flto=auto -fno-exceptions
CXXFLAGS += $(shell pkg-config --cflags $(PKGS))
LDFLAGS += $(shell pkg-config --libs $(PKGS)) -Wl,--gc-sections

View File

@ -0,0 +1,56 @@
{
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;
};
}