Skip to content

Commit 55b103d

Browse files
cosmic-randr: add updateScript
1 parent 72c398b commit 55b103d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pkgs/by-name/co/cosmic-randr/package.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
just,
77
pkg-config,
88
wayland,
9+
nix-update-script,
910
}:
1011

1112
rustPlatform.buildRustPackage rec {
@@ -26,6 +27,7 @@ rustPlatform.buildRustPackage rec {
2627
just
2728
pkg-config
2829
];
30+
2931
buildInputs = [ wayland ];
3032

3133
dontUseJustBuild = true;
@@ -39,6 +41,15 @@ rustPlatform.buildRustPackage rec {
3941
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-randr"
4042
];
4143

44+
passthru.updateScript = nix-update-script {
45+
extraArgs = [
46+
"--version"
47+
"unstable"
48+
"--version-regex"
49+
"epoch-(.*)"
50+
];
51+
};
52+
4253
meta = with lib; {
4354
homepage = "https://github.com/pop-os/cosmic-randr";
4455
description = "Library and utility for displaying and configuring Wayland outputs";

0 commit comments

Comments
 (0)