about summary refs log tree commit diff
path: root/pkgs/by-name/po/pokemon-cursor/package.nix
blob: ef9d35b49c836ea8496f90149bb7f693322f6839 (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
46
47
48
49
50
{ fetchFromGitHub
, lib
, stdenvNoCC

, # build deps
  clickgen
, python3Packages
}:

stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "pokemon-cursor";
  version = "2.0.0";

  src = fetchFromGitHub {
    owner = "ful1e5";
    repo = "pokemon-cursor";
    rev = "v${finalAttrs.version}";
    sha256 = "sha256-EL6Ztbzjm1YuQP+8ZbrhbuBXn+GFiJGG0iGNWzU/rBY=";
  };

  nativeBuildInputs = [
    clickgen
    python3Packages.attrs
  ];

  buildPhase = ''
    runHook preBuild

    ctgen build.toml -p x11 -o $out

    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/icons
    mv $out/Pokemon $out/share/icons

    runHook postInstall
  '';

  meta = with lib; {
    description = "An unofficial open-source Pokemon cursor theme";
    homepage = "https://github.com/ful1e5/pokemon-cursor";
    license = licenses.gpl3Plus;
    maintainers = [ maintainers.getpsyched ];
    platforms = platforms.linux;
  };
})