8
8
libinput ,
9
9
libxkbcommon ,
10
10
libgbm ,
11
+ versionCheckHook ,
11
12
nix-update-script ,
12
13
pango ,
13
14
pipewire ,
22
23
withSystemd ? true ,
23
24
} :
24
25
25
- rustPlatform . buildRustPackage rec {
26
+ rustPlatform . buildRustPackage ( finalAttrs : {
26
27
pname = "niri" ;
27
- version = "25.01 " ;
28
+ version = "25.02 " ;
28
29
29
30
src = fetchFromGitHub {
30
31
owner = "YaLTeR" ;
31
32
repo = "niri" ;
32
- tag = "v${ version } " ;
33
- hash = "sha256-AJ1rlgNOPb3/+DbS5hkhm21t6Oz8IgqLllwmZt0lyzk =" ;
33
+ tag = "v${ finalAttrs . version } " ;
34
+ hash = "sha256-mTTHA0RAaQcdYe+9A3Jx77cmmyLFHmRoZdd8RpWa+m8 =" ;
34
35
} ;
35
36
36
37
postPatch = ''
@@ -40,7 +41,7 @@ rustPlatform.buildRustPackage rec {
40
41
'' ;
41
42
42
43
useFetchCargoVendor = true ;
43
- cargoHash = "sha256-eGI3i7FnjZGEfcGvEpNLOog8cgExBJuGoXM/oHsui0M =" ;
44
+ cargoHash = "sha256-xUjBQ65INi5qD7s5SpPw9TISgY6I3bjjUBmpubvM43I =" ;
44
45
45
46
strictDeps = true ;
46
47
@@ -104,10 +105,12 @@ rustPlatform.buildRustPackage rec {
104
105
105
106
preCheck = ''
106
107
export XDG_RUNTIME_DIR=$(mktemp -d)
107
- # See https://github.com/YaLTeR/niri/issues/953
108
- export RAYON_NUM_THREADS=1
109
108
'' ;
110
109
110
+ nativeInstallCheckInputs = [ versionCheckHook ] ;
111
+ versionCheckProgramArg = "--version" ;
112
+ doInstallCheck = true ;
113
+
111
114
passthru = {
112
115
providedSessions = [ "niri" ] ;
113
116
updateScript = nix-update-script { } ;
@@ -116,7 +119,7 @@ rustPlatform.buildRustPackage rec {
116
119
meta = {
117
120
description = "Scrollable-tiling Wayland compositor" ;
118
121
homepage = "https://github.com/YaLTeR/niri" ;
119
- changelog = "https://github.com/YaLTeR/niri/releases/tag/v${ version } " ;
122
+ changelog = "https://github.com/YaLTeR/niri/releases/tag/v${ finalAttrs . version } " ;
120
123
license = lib . licenses . gpl3Only ;
121
124
maintainers = with lib . maintainers ; [
122
125
iogamaster
@@ -127,4 +130,4 @@ rustPlatform.buildRustPackage rec {
127
130
mainProgram = "niri" ;
128
131
platforms = lib . platforms . linux ;
129
132
} ;
130
- }
133
+ } )
0 commit comments