nixpkgs/pkgs/data/icons/iconpack-obsidian/default.nix

42 lines
948 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, gtk3, hicolor-icon-theme }:
2018-05-03 18:45:57 +00:00
stdenv.mkDerivation rec {
pname = "iconpack-obsidian";
2019-11-02 12:52:01 +00:00
version = "4.9";
2018-05-03 18:45:57 +00:00
src = fetchFromGitHub {
owner = "madmaxms";
2019-11-02 12:52:01 +00:00
repo = pname;
2018-05-03 18:45:57 +00:00
rev = "v${version}";
2019-11-02 12:52:01 +00:00
sha256 = "1w0lnr08gd0cnzv3n5094jqb7dpbpwwizfhvifdir0xsls1sf129";
2018-05-03 18:45:57 +00:00
};
nativeBuildInputs = [ gtk3 ];
propagatedBuildInputs = [
hicolor-icon-theme
];
dontDropIconThemeCache = true;
2018-05-03 18:45:57 +00:00
installPhase = ''
mkdir -p $out/share/icons
mv Obsidian* $out/share/icons
'';
postFixup = ''
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
'';
meta = with stdenv.lib; {
description = "Gnome Icon Pack based upon Faenza";
homepage = https://github.com/madmaxms/iconpack-obsidian;
license = licenses.lgpl3;
# darwin cannot deal with file names differing only in case
platforms = platforms.linux;
2018-05-03 18:45:57 +00:00
maintainers = [ maintainers.romildo ];
};
}