1 { lib, stdenvNoCC, fetchFromGitHub, fetchpatch, makeFontsConf
2 , inkscape, xcursorgen, bc }:
4 stdenvNoCC.mkDerivation rec {
5 pname = "capitaine-cursors";
8 src = fetchFromGitHub {
9 owner = "keeferrourke";
12 sha256 = "0652ydy73x29z7wc6ccyqihmfg4bk0ksl7yryycln6c7i0iqfmc9";
16 # Fixes the build on inscape => 1.0, without this it generates empty cursor files
18 name = "inkscape-1.0-compat";
19 url = "https://github.com/keeferrourke/capitaine-cursors/commit/9da0b53e6098ed023c5c24c6ef6bfb1f68a79924.patch";
20 sha256 = "0lx5i60ahy6a2pir4zzlqn5lqsv6claqg8mv17l1a028h9aha3cv";
28 # Complains about not being able to find the fontconfig config file otherwise
29 FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
38 for variant in dark light ; do
39 # https://github.com/NixOS/nixpkgs/blob/master/pkgs/data/fonts/emojione/default.nix#L16
40 HOME="$NIX_BUILD_ROOT" ./build.sh --max-dpi xhd --type $variant
45 install -dm 0755 $out/share/icons
46 cp -pr dist/dark $out/share/icons/capitaine-cursors
47 cp -pr dist/light $out/share/icons/capitaine-cursors-white
51 description = "X-cursor theme inspired by macOS and based on KDE Breeze";
52 homepage = "https://github.com/keeferrourke/capitaine-cursors";
53 license = licenses.lgpl3;
54 platforms = platforms.linux;
55 maintainers = with maintainers; [ eadwu ];