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

54 lines
1,010 B
Nix
Raw Normal View History

2021-04-20 12:13:36 +00:00
{ lib
, stdenv
2020-08-13 12:57:00 +00:00
, fetchFromGitHub
, gtk3
, breeze-icons
, hicolor-icon-theme
, pantheon
}:
stdenv.mkDerivation rec {
pname = "luna-icons";
2021-04-20 12:13:36 +00:00
version = "1.2";
2020-08-13 12:57:00 +00:00
src = fetchFromGitHub {
owner = "darkomarko42";
repo = pname;
2020-09-21 22:33:14 +00:00
rev = version;
2021-04-20 12:13:36 +00:00
sha256 = "0kjnmclil21m9vgybk958nzzlbwryp286rajlgxg05wgjnby4cxk";
2020-08-13 12:57:00 +00: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-21 22:33:14 +00:00
gtk-update-icon-cache "$theme"
2020-08-13 12:57:00 +00:00
done
runHook postInstall
'';
meta = with lib; {
2020-08-13 12:57:00 +00: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 ];
};
}