-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpackage.nix
More file actions
78 lines (68 loc) · 1.71 KB
/
Copy pathpackage.nix
File metadata and controls
78 lines (68 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
lib,
python3Packages,
wrapGAppsHook4,
gtk4,
libadwaita,
gdk-pixbuf,
gobject-introspection,
hicolor-icon-theme,
desktop-file-utils,
}:
python3Packages.buildPythonApplication (finalAttrs: {
pname = "nirimod";
version = "0.1.0";
pyproject = true;
src = lib.cleanSource ./.;
# For nixpkgs: replace with fetchFromGitHub pointing to a release tag:
# src = fetchFromGitHub {
# owner = "srinivasr";
# repo = "nirimod";
# tag = "v${finalAttrs.version}";
# hash = "sha256-...";
# };
nativeBuildInputs = [
wrapGAppsHook4
gobject-introspection
desktop-file-utils
];
build-system = with python3Packages; [
hatchling
];
buildInputs = [
gtk4
libadwaita
gdk-pixbuf
hicolor-icon-theme
];
dependencies = with python3Packages; [
pygobject3
];
postInstall = ''
install -Dm644 data/nirimod.svg $out/share/icons/hicolor/scalable/apps/nirimod.svg
mkdir -p $out/share/applications
cat > $out/share/applications/io.github.nirimod.desktop << EOF
[Desktop Entry]
Version=1.0
Name=NiriMod
GenericName=Compositor Settings
Comment=GUI Configuration Manager for the Niri Wayland Compositor
Exec=nirimod
Icon=nirimod
Terminal=false
Type=Application
Categories=Utility;Settings;DesktopSettings;
Keywords=compositor;windowmanager;wayland;niri;settings;config;
StartupNotify=true
StartupWMClass=nirimod
EOF
'';
meta = {
description = "A polished GTK4/libadwaita GUI configurator for the niri Wayland compositor";
homepage = "https://github.com/srinivasr/nirimod";
license = lib.licenses.mit;
maintainers = [ ];
mainProgram = "nirimod";
platforms = lib.platforms.linux;
};
})