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

This commit is contained in:
Johannes Jöns 2024-10-17 17:29:37 +00:00 committed by GitHub
commit af46925fa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,18 +1,19 @@
{ 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";