Unverified Commit 528437b2 authored by Heitor Augusto's avatar Heitor Augusto
Browse files

cosmic-term: add updateScript

parent ab697813
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
  fontconfig,
  freetype,
  libinput,
  nix-update-script,
}:

rustPlatform.buildRustPackage (finalAttrs: {
@@ -56,6 +57,15 @@ rustPlatform.buildRustPackage (finalAttrs: {
    "target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-term"
  ];

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

  meta = {
    homepage = "https://github.com/pop-os/cosmic-term";
    description = "Terminal for the COSMIC Desktop Environment";