diff options
author | Karel Kočí <cynerd@email.cz> | 2022-02-21 21:54:09 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-06-10 14:05:48 +0200 |
commit | 93b0545d11bf8c7f065203f7f3eaf1d0e3730dce (patch) | |
tree | da93fa5fcd14c493d8ccd86c98f40d26c9697869 /pkgs/theme/delft-icon-theme.nix | |
download | nixos-personal-93b0545d11bf8c7f065203f7f3eaf1d0e3730dce.tar.gz nixos-personal-93b0545d11bf8c7f065203f7f3eaf1d0e3730dce.tar.bz2 nixos-personal-93b0545d11bf8c7f065203f7f3eaf1d0e3730dce.zip |
Add initial version
Diffstat (limited to 'pkgs/theme/delft-icon-theme.nix')
-rw-r--r-- | pkgs/theme/delft-icon-theme.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/theme/delft-icon-theme.nix b/pkgs/theme/delft-icon-theme.nix new file mode 100644 index 0000000..08ed773 --- /dev/null +++ b/pkgs/theme/delft-icon-theme.nix @@ -0,0 +1,35 @@ +{ lib, stdenv, stdenvNoCC, fetchFromGitHub, gtk3, gnome-icon-theme, hicolor-icon-theme }: + +stdenv.mkDerivation rec { + pname = "delft-icon-theme"; + version = "1.15"; + + src = fetchFromGitHub { + owner = "madmaxms"; + repo = "iconpack-delft"; + rev = "v${version}"; + sha256 = "fluSh2TR1CdIW54wkUp1QRB0m9akFKnSn4d+0z6gkLA="; + }; + + nativeBuildInputs = [ gtk3 ]; + + propagatedBuildInputs = [ gnome-icon-theme hicolor-icon-theme ]; + + dontDropIconThemeCache = true; + + installPhase = '' + mkdir -p $out/share/icons + cp -a Delft* $out/share/icons/ + + for theme in $out/share/icons/*; do + gtk-update-icon-cache $theme + done + ''; + + meta = with lib; { + description = "Delft icon theme"; + homepage = "https://github.com/madmaxms/iconpack-delft"; + license = licenses.gpl3Only; + platforms = platforms.linux; + }; +} |