Unverified Commit a91e87b1 authored by Heitor Augusto's avatar Heitor Augusto
Browse files

cosmic-bg: add updateScript

parent 63a365d8
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
  libcosmicAppHook,
  just,
  nasm,
  nix-update-script,

  withMoldLinker ? stdenv.targetPlatform.isLinux,
}:
@@ -48,6 +49,15 @@ rustPlatform.buildRustPackage.override
    env."CARGO_TARGET_${stdenv.hostPlatform.rust.cargoEnvVarTarget}_RUSTFLAGS" =
      lib.optionalString withMoldLinker "-C link-arg=-fuse-ld=mold";

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

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