53 lines
1,010 B
Nix
53 lines
1,010 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, gtk3
|
|
, breeze-icons
|
|
, hicolor-icon-theme
|
|
, pantheon
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "luna-icons";
|
|
version = "1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "darkomarko42";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1iw9wqfs8s3l5k5ngyjmvvxbsxcsya3a6h1xwl6d603swv7h1s02";
|
|
};
|
|
|
|
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
|
|
gtk-update-icon-cache "$theme"
|
|
done
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
};
|
|
}
|