nixpkgs/pkgs/by-name/co/cosmic-icons/package.nix
Kajus Naujokaitis 8bed1ba09d
cosmic: sort package attributes into consistent order
Refactored cosmic packages to follow a consistent attribute sorting order

Signed-off-by: Kajus Naujokaitis <kajusn@gmail.com>
2026-07-06 10:28:51 +03:00

55 lines
1 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
just,
pop-icon-theme,
hicolor-icon-theme,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "cosmic-icons";
version = "1.1.0";
# nixpkgs-update: no auto update
src = fetchFromGitHub {
owner = "pop-os";
repo = "cosmic-icons";
tag = "epoch-${finalAttrs.version}";
hash = "sha256-QUTAYIQ6qAhjZK/9BZjJzTViECLUwO/MyaOqiRb1Ans=";
};
__structuredAttrs = true;
strictDeps = true;
nativeBuildInputs = [ just ];
propagatedBuildInputs = [
pop-icon-theme
hicolor-icon-theme
];
justFlags = [
"--set"
"prefix"
(placeholder "out")
];
dontDropIconThemeCache = true;
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"epoch-(.*)"
];
};
meta = {
description = "System76 Cosmic icon theme for Linux";
homepage = "https://github.com/pop-os/cosmic-icons";
license = with lib.licenses; [
cc-by-sa-40
];
teams = [ lib.teams.cosmic ];
};
})