|
23 | 23 | inputtino-src = fetchFromGitHub { |
24 | 24 | owner = "games-on-whales"; |
25 | 25 | repo = "inputtino"; |
26 | | - rev = "f4ce2b0df536ef309e9ff318f75b460f7097d7c1"; |
27 | | - hash = "sha256-mAAXbIK7aNSLyN7OZX9YeesMvT6OZmT9uAx0md6pyRM="; |
| 26 | + rev = "d28ec79eb63324e68d73a7de22bcb5ff0a6f6bf8"; |
| 27 | + hash = "sha256-xzDsJggQVX5e1twwNvqw5hDXei6OMYA4s5zU4zfp/H0="; |
28 | 28 | }; |
29 | 29 | in |
30 | 30 | rustPlatform.buildRustPackage (finalAttrs: { |
31 | 31 | pname = "moonshine"; |
32 | | - version = "0.13.5"; |
| 32 | + version = "0.15.0"; |
33 | 33 |
|
34 | 34 | src = fetchFromGitHub { |
35 | 35 | owner = "hgaiser"; |
36 | 36 | repo = "moonshine"; |
37 | 37 | tag = "v${finalAttrs.version}"; |
38 | | - hash = "sha256-DwRUVMAm4fSqZu6jECeasiRpnwBt7thWkXzztNRIjcs="; |
| 38 | + hash = "sha256-TvL3s738wooQwZfBKyCqp0V8qcYFtJL98tsxlSX8fLM="; |
39 | 39 | }; |
40 | 40 |
|
41 | 41 | __structuredAttrs = true; |
42 | 42 | strictDeps = true; |
43 | 43 |
|
44 | | - cargoHash = "sha256-M/VNPnccqK3koa0TeMd+tml79O7BKLxHmrGcGPemGhI="; |
| 44 | + cargoHash = "sha256-PAC8PcGOXxFNN8Eeiik4JrXeH2H+YcqRaBpJVtUoZ44="; |
45 | 45 |
|
46 | 46 | # Build Moonshine binary and Vulkan layer |
47 | 47 | cargoBuildFlags = [ |
@@ -88,6 +88,10 @@ rustPlatform.buildRustPackage (finalAttrs: { |
88 | 88 |
|
89 | 89 | # udev rules for input |
90 | 90 | install -Dm644 dist/60-moonshine.rules "$out/lib/udev/rules.d/60-moonshine.rules" |
| 91 | +
|
| 92 | + # polkit rule for sleep inhibitor |
| 93 | + install -Dm644 dist/50-moonshine-inhibit-sleep.rules \ |
| 94 | + "$out/share/polkit-1/rules.d/50-moonshine-inhibit-sleep.rules" |
91 | 95 | ''; |
92 | 96 |
|
93 | 97 | postFixup = '' |
@@ -118,7 +122,10 @@ rustPlatform.buildRustPackage (finalAttrs: { |
118 | 122 | homepage = "https://github.com/hgaiser/moonshine"; |
119 | 123 | changelog = "https://github.com/hgaiser/moonshine/releases/tag/v${finalAttrs.version}"; |
120 | 124 | license = lib.licenses.bsd2; |
121 | | - maintainers = with lib.maintainers; [ neobrain ]; |
| 125 | + maintainers = with lib.maintainers; [ |
| 126 | + neobrain |
| 127 | + anish |
| 128 | + ]; |
122 | 129 | mainProgram = "moonshine"; |
123 | 130 | platforms = lib.platforms.linux; |
124 | 131 | }; |
|
0 commit comments