2018-03-04 10:45:36 +00:00
|
|
|
{ stdenv, fetchFromGitHub, gtk3, numix-icon-theme }:
|
2016-12-08 15:07:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${package-name}-${version}";
|
2017-09-20 11:10:44 +01:00
|
|
|
package-name = "numix-icon-theme-square";
|
2018-09-20 18:16:53 +01:00
|
|
|
version = "18.09.19";
|
2016-12-08 15:07:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "numixproject";
|
|
|
|
repo = package-name;
|
2017-09-20 11:10:44 +01:00
|
|
|
rev = version;
|
2018-09-20 18:16:53 +01:00
|
|
|
sha256 = "0q5p901qj3gyzgpy5kk9q5sqb13ka5cfg6wvazlfch1k3kaqksz1";
|
2016-12-08 15:07:53 +00:00
|
|
|
};
|
|
|
|
|
2018-03-04 10:45:36 +00:00
|
|
|
nativeBuildInputs = [ gtk3 numix-icon-theme ];
|
2016-12-08 15:07:53 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/icons
|
|
|
|
cp -a Numix-Square{,-Light} $out/share/icons/
|
|
|
|
'';
|
|
|
|
|
2018-03-04 10:45:36 +00:00
|
|
|
postFixup = ''
|
|
|
|
for theme in $out/share/icons/*; do
|
|
|
|
gtk-update-icon-cache $theme
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2016-12-08 15:07:53 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Numix icon theme (square version)";
|
2018-09-07 23:32:30 +01:00
|
|
|
homepage = https://numixproject.github.io;
|
2016-12-08 15:07:53 +00:00
|
|
|
license = licenses.gpl3;
|
2018-08-21 01:38:41 +01:00
|
|
|
# darwin cannot deal with file names differing only in case
|
|
|
|
platforms = platforms.linux;
|
2016-12-08 15:07:53 +00:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|