2020-10-29 08:05:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, inkscape, xcursorgen }:
|
2017-04-26 00:58:43 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-09-21 18:30:12 +02:00
|
|
|
version = "1.1";
|
2017-04-26 00:58:43 +02:00
|
|
|
package-name = "numix-cursor-theme";
|
|
|
|
name = "${package-name}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "numixproject";
|
|
|
|
repo = package-name;
|
2018-09-21 18:30:12 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0p8h48wsy3z5dz9vdnp01fpn6q8ky0h74l5qgixlip557bsa1spi";
|
2017-04-26 00:58:43 +02:00
|
|
|
};
|
|
|
|
|
2020-09-10 20:38:25 +02:00
|
|
|
nativeBuildInputs = [ inkscape xcursorgen ];
|
2018-09-21 18:30:12 +02:00
|
|
|
|
2020-10-29 08:05:44 +01:00
|
|
|
patches = [
|
|
|
|
# Remove when https://github.com/numixproject/numix-cursor-theme/pull/7 is merged
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/stephaneyfx/numix-cursor-theme/commit/3b647bf768cebb8f127b88e3786f6a9640460197.patch";
|
|
|
|
sha256 = "174kmhlvv76wwvndkys78aqc32051sqg3wzc0xg6b7by4agrbg76";
|
|
|
|
name = "support-inkscape-1-in-numix-cursor-theme.patch";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-09-21 18:30:12 +02:00
|
|
|
buildPhase = ''
|
|
|
|
patchShebangs .
|
|
|
|
HOME=$TMP ./build.sh
|
|
|
|
'';
|
2017-04-26 00:58:43 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -dm 755 $out/share/icons
|
2018-09-21 18:30:12 +02:00
|
|
|
cp -dr --no-preserve='ownership' Numix-Cursor{,-Light} $out/share/icons/
|
2017-04-26 00:58:43 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Numix cursor theme";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://numixproject.github.io";
|
2017-04-26 00:58:43 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ offline ];
|
|
|
|
};
|
|
|
|
}
|