evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / po / pokemon-cursor / package.nix
blobeeaec0a8b68bff59d31a451017e5e7da33d97478
1 { fetchFromGitHub
2 , lib
3 , stdenvNoCC
5 , # build deps
6   clickgen
7 , python3Packages
8 }:
10 stdenvNoCC.mkDerivation (finalAttrs: {
11   pname = "pokemon-cursor";
12   version = "2.0.0";
14   src = fetchFromGitHub {
15     owner = "ful1e5";
16     repo = "pokemon-cursor";
17     rev = "v${finalAttrs.version}";
18     hash = "sha256-EL6Ztbzjm1YuQP+8ZbrhbuBXn+GFiJGG0iGNWzU/rBY=";
19   };
21   nativeBuildInputs = [
22     clickgen
23     python3Packages.attrs
24   ];
26   buildPhase = ''
27     runHook preBuild
29     ctgen build.toml -p x11 -o $out
31     runHook postBuild
32   '';
34   installPhase = ''
35     runHook preInstall
37     mkdir -p $out/share/icons
38     mv $out/Pokemon $out/share/icons
40     runHook postInstall
41   '';
43   meta = with lib; {
44     description = "Unofficial open-source Pokemon cursor theme";
45     homepage = "https://github.com/ful1e5/pokemon-cursor";
46     license = licenses.gpl3Plus;
47     maintainers = [ maintainers.getpsyched ];
48     platforms = platforms.linux;
49   };