2020-04-18 00:55:03 +01:00
|
|
|
{ stdenv, fetchFromGitHub, gtk3, gnome-icon-theme, hicolor-icon-theme }:
|
2018-05-03 19:45:57 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "iconpack-obsidian";
|
2020-05-31 01:27:57 +01:00
|
|
|
version = "4.12";
|
2018-05-03 19:45:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "madmaxms";
|
2019-11-02 12:52:01 +00:00
|
|
|
repo = pname;
|
2018-05-03 19:45:57 +01:00
|
|
|
rev = "v${version}";
|
2020-05-31 01:27:57 +01:00
|
|
|
sha256 = "0139ps707mh1zkypaxsqzy58mmsm5whdxxx2nbsmqfswb7qisz2b";
|
2018-05-03 19:45:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gtk3 ];
|
|
|
|
|
2020-04-18 00:55:03 +01:00
|
|
|
propagatedBuildInputs = [ gnome-icon-theme hicolor-icon-theme ];
|
|
|
|
# still missing parent themes: Ambiant-MATE, Mint-X, Faenza-Dark, KFaenza
|
2019-09-12 15:47:48 +01:00
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2018-05-03 19:45:57 +01:00
|
|
|
installPhase = ''
|
2020-04-18 00:55:03 +01:00
|
|
|
mkdir -p $out/share/icons
|
|
|
|
mv Obsidian* $out/share/icons
|
2018-05-03 19:45:57 +01:00
|
|
|
|
|
|
|
for theme in $out/share/icons/*; do
|
|
|
|
gtk-update-icon-cache $theme
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-01-20 12:44:43 +00:00
|
|
|
description = "Gnome icon pack based upon Faenza";
|
|
|
|
homepage = "https://github.com/madmaxms/iconpack-obsidian";
|
2018-05-03 19:45:57 +01:00
|
|
|
license = licenses.lgpl3;
|
2018-05-07 14:07:54 +01:00
|
|
|
# darwin cannot deal with file names differing only in case
|
|
|
|
platforms = platforms.linux;
|
2018-05-03 19:45:57 +01:00
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|