Most icons themes just copy a bunch of files from the source to the installation directory and therefore work perfectly fine with stdenvNoCC. All themes in pkgs/data/icons that still use stdenv after this change are failing to build with stdenvNoCC.
34 lines
800 B
Nix
34 lines
800 B
Nix
{ lib, stdenvNoCC, fetchFromGitHub, inkscape, xcursorgen }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "numix-cursor-theme";
|
|
version = "1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "numixproject";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1q3w5i0h3ly6i7s9pqjdrb14kp89i78s0havri7lhiqyxizjvcvh";
|
|
};
|
|
|
|
nativeBuildInputs = [ inkscape xcursorgen ];
|
|
|
|
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 lib; {
|
|
description = "Numix cursor theme";
|
|
homepage = "https://numixproject.github.io";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ offline ];
|
|
};
|
|
}
|