summary refs log tree commit diff
path: root/pkgs/data/icons/capitaine-cursors/default.nix
blob: 94a5449332b9e81e6d8cecf4735f843da35a77aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ stdenv, fetchFromGitHub
, inkscape, xcursorgen }:

stdenv.mkDerivation rec {
  name = "capitaine-cursors-${version}";
  version = "2.1";

  src = fetchFromGitHub {
    owner = "keeferrourke";
    repo = "capitaine-cursors";
    rev = "r${version}";
    sha256 = "0ljvq1dqscp5gyf23qszn2ax80bxkqw2vx5zh3qln9vnzfascirb";
  };

  postPatch = ''
    patchShebangs .
  '';

  buildInputs  =[
    inkscape
    xcursorgen
  ];

  buildPhase = ''
    # https://github.com/NixOS/nixpkgs/blob/master/pkgs/data/fonts/emojione/default.nix#L16
    HOME="$NIX_BUILD_ROOT" ./build.sh
  '';

  installPhase = ''
    install -dm 0755 $out/share/icons
    cp -pr dist $out/share/icons/capitaine-cursors
  '';

  meta = with stdenv.lib; {
    description = ''
      An x-cursor theme inspired by macOS and based on KDE Breeze
    '';
    homepage = https://github.com/keeferrourke/capitaine-cursors;
    license = licenses.lgpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [
      eadwu
    ];
  };
}