diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/data/icons/numix-cursor-theme/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/data/icons/numix-cursor-theme/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/data/icons/numix-cursor-theme/default.nix b/infra/libkookie/nixpkgs/pkgs/data/icons/numix-cursor-theme/default.nix new file mode 100644 index 000000000000..7ff3c4ca23c4 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/data/icons/numix-cursor-theme/default.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchFromGitHub, fetchpatch, inkscape, xcursorgen }: + +stdenv.mkDerivation rec { + version = "1.1"; + package-name = "numix-cursor-theme"; + name = "${package-name}-${version}"; + + src = fetchFromGitHub { + owner = "numixproject"; + repo = package-name; + rev = "v${version}"; + sha256 = "0p8h48wsy3z5dz9vdnp01fpn6q8ky0h74l5qgixlip557bsa1spi"; + }; + + nativeBuildInputs = [ inkscape xcursorgen ]; + + 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"; + }) + ]; + + buildPhase = '' + patchShebangs . + HOME=$TMP ./build.sh + ''; + + installPhase = '' + install -dm 755 $out/share/icons + cp -dr --no-preserve='ownership' Numix-Cursor{,-Light} $out/share/icons/ + ''; + + meta = with stdenv.lib; { + description = "Numix cursor theme"; + homepage = "https://numixproject.github.io"; + license = licenses.gpl3; + platforms = platforms.all; + maintainers = with maintainers; [ offline ]; + }; +} |