Unverified Commit 55b103d4 authored by Heitor Augusto's avatar Heitor Augusto
Browse files

cosmic-randr: add updateScript

parent 72c398b4
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
  just,
  pkg-config,
  wayland,
  nix-update-script,
}:

rustPlatform.buildRustPackage rec {
@@ -26,6 +27,7 @@ rustPlatform.buildRustPackage rec {
    just
    pkg-config
  ];

  buildInputs = [ wayland ];

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

  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--version"
      "unstable"
      "--version-regex"
      "epoch-(.*)"
    ];
  };

  meta = with lib; {
    homepage = "https://github.com/pop-os/cosmic-randr";
    description = "Library and utility for displaying and configuring Wayland outputs";