Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions pkgs/by-name/mo/moonshine/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ let
in
rustPlatform.buildRustPackage (finalAttrs: {
pname = "moonshine";
version = "0.13.5";
version = "0.14.5";

src = fetchFromGitHub {
owner = "hgaiser";
repo = "moonshine";
tag = "v${finalAttrs.version}";
hash = "sha256-DwRUVMAm4fSqZu6jECeasiRpnwBt7thWkXzztNRIjcs=";
hash = "sha256-efXoPpDxXBHHtnTegCSluVOr6Ma5SyCi8RUMCMcYdAQ=";
};

__structuredAttrs = true;
strictDeps = true;

cargoHash = "sha256-M/VNPnccqK3koa0TeMd+tml79O7BKLxHmrGcGPemGhI=";
cargoHash = "sha256-j+3xHuH1Stec0tX9v8PuaFHTd/VLKZ7Y07VKayjGVy8=";

# Build Moonshine binary and Vulkan layer
cargoBuildFlags = [
Expand Down Expand Up @@ -88,6 +88,10 @@ rustPlatform.buildRustPackage (finalAttrs: {

# udev rules for input
install -Dm644 dist/60-moonshine.rules "$out/lib/udev/rules.d/60-moonshine.rules"

# polkit rule for sleep inhibitor
install -Dm644 dist/50-moonshine-inhibit-sleep.rules \
"$out/share/polkit-1/rules.d/50-moonshine-inhibit-sleep.rules"
'';

postFixup = ''
Expand Down Expand Up @@ -118,7 +122,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
homepage = "https://github.com/hgaiser/moonshine";
changelog = "https://github.com/hgaiser/moonshine/releases/tag/v${finalAttrs.version}";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ neobrain ];
maintainers = with lib.maintainers; [
neobrain
anish
];
mainProgram = "moonshine";
platforms = lib.platforms.linux;
};
Expand Down
Loading