nixpkgs/pkgs/data/icons/luna-icons/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.1 KiB
Nix
Raw Normal View History

2021-04-20 14:13:36 +02:00
{ lib
2022-07-06 14:43:29 +02:00
, stdenvNoCC
2020-08-13 14:57:00 +02:00
, fetchFromGitHub
, gtk3
, breeze-icons
, hicolor-icon-theme
, pantheon
2022-04-27 00:40:26 +02:00
, gitUpdater
2020-08-13 14:57:00 +02:00
}:
2022-07-06 14:43:29 +02:00
stdenvNoCC.mkDerivation rec {
2020-08-13 14:57:00 +02:00
pname = "luna-icons";
2022-07-06 14:43:29 +02:00
version = "2.1";
2020-08-13 14:57:00 +02:00
src = fetchFromGitHub {
owner = "darkomarko42";
repo = pname;
2020-09-22 00:33:14 +02:00
rev = version;
2022-07-06 14:43:29 +02:00
sha256 = "sha256-zxaay4hwKgb9WWhPNG/s9JekltAvRNYmObeoTJi6Po0=";
2020-08-13 14:57:00 +02:00
};
nativeBuildInputs = [
gtk3
];
propagatedBuildInputs = [
breeze-icons
hicolor-icon-theme
pantheon.elementary-icon-theme
];
dontDropIconThemeCache = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
cp -a Luna* $out/share/icons
for theme in $out/share/icons/*; do
2020-09-22 00:33:14 +02:00
gtk-update-icon-cache "$theme"
2020-08-13 14:57:00 +02:00
done
runHook postInstall
'';
2022-04-27 00:40:26 +02:00
passthru.updateScript = gitUpdater {inherit pname version; };
meta = with lib; {
2020-08-13 14:57:00 +02:00
description = "Icon pack based on marwaita and papirus icons";
homepage = "https://github.com/darkomarko42/Luna-Icons";
license = [ licenses.gpl3Only ];
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}