Unverified Commit af46925f authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

cosmic-icons: use nix-update-script instead of unstableGitUpdater (#349303)

parents 0bb8125f 15fe493d
Loading
Loading
Loading
Loading
+16 −10
Original line number Diff line number Diff line
{ lib
, stdenvNoCC
, fetchFromGitHub
, just
, pop-icon-theme
, hicolor-icon-theme
, unstableGitUpdater
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  just,
  pop-icon-theme,
  hicolor-icon-theme,
  nix-update-script,
}:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation {
  pname = "cosmic-icons";
  version = "1.0.0-alpha.2";

  src = fetchFromGitHub {
    owner = "pop-os";
    repo = pname;
    repo = "cosmic-icons";
    rev = "341c84467fd863f0319cadf49b3d4bac1bf3029a";
    hash = "sha256-VA2QKuzTQBgubfjPXdpejFtZxqOZUXds/fZrfN6/8Nk=";
  };
@@ -32,7 +33,12 @@ stdenvNoCC.mkDerivation rec {

  dontDropIconThemeCache = true;

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

  meta = with lib; {
    description = "System76 Cosmic icon theme for Linux";