Files
moonix/pkgs/moonset.nix
T

34 lines
798 B
Nix

# ABOUTME: Nix build recipe for moonset, the Wayland session power menu.
# ABOUTME: Counterpart to moonarch-pkgbuilds/moonset/PKGBUILD.
{ lib
, rustPlatform
, pkg-config
, wrapGAppsHook4
, glib
, gtk4
, gtk4-layer-shell
, src
, version
}:
rustPlatform.buildRustPackage {
pname = "moonset";
inherit version src;
cargoLock.lockFile = "${src}/Cargo.lock";
# glib provides glib-compile-resources for the GResource bundle in build.rs.
nativeBuildInputs = [ pkg-config wrapGAppsHook4 glib ];
buildInputs = [ gtk4 gtk4-layer-shell ];
meta = {
description = "Wayland session power menu with GTK4 and Layer Shell";
homepage = "https://gitea.moonarch.de/nevaforget/moonset";
license = lib.licenses.mit;
mainProgram = "moonset";
platforms = lib.platforms.linux;
};
}