toxic: 0.15.1 -> 0.16.0
[NixPkgs.git] / pkgs / by-name / vi / vimix-cursors / package.nix
blob665938ae02e47f0a51db699e41bb56a68a16159c
2   lib,
3   fetchFromGitHub,
4   stdenvNoCC,
5   inkscape,
6   python3Packages,
7   xcursorgen,
8 }:
9 stdenvNoCC.mkDerivation {
10   pname = "vimix-cursors";
11   version = "2020-02-24-unstable-2021-09-18";
13   src = fetchFromGitHub {
14     owner = "vinceliuice";
15     repo = "vimix-cursors";
16     rev = "9bc292f40904e0a33780eda5c5d92eb9a1154e9c";
17     hash = "sha256-zW7nJjmB3e+tjEwgiCrdEe5yzJuGBNdefDdyWvgYIUU=";
18   };
20   nativeBuildInputs = [
21     inkscape
22     python3Packages.cairosvg
23     xcursorgen
24   ];
26   postPatch = ''
27     patchShebangs .
28   '';
30   buildPhase = ''
31     runHook preBuild
33     HOME="$NIX_BUILD_ROOT" ./build.sh
35     runHook postBuild
36   '';
38   installPhase = ''
39     runHook preInstall
41     install -dm 755 $out/share/icons
42     for color in "" "-white"; do
43       cp -pr "dist$color/"  "$out/share/icons/Vimix$color-cursors"
44     done
46     runHook postInstall
47   '';
49   meta = with lib; {
50     description = "X cursor theme inspired by Materia design";
51     homepage = "https://github.com/vinceliuice/Vimix-cursors";
52     license = licenses.gpl3Only;
53     maintainers = with maintainers; [ ambroisie ];
54     platforms = platforms.linux;
55   };