about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/icons/capitaine-cursors-themed/default.nix
blob: bd0147fecde3119582317e5e0dae56e85b220ee2 (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
{ lib, stdenvNoCC, fetchzip }:

stdenvNoCC.mkDerivation rec {
  pname = "capitaine-cursors-themed";
  version = "5";

  src = fetchzip {
    url = "https://github.com/sainnhe/capitaine-cursors/releases/download/r${version}/Linux.zip";
    stripRoot = false;
    hash = "sha256-ipPpmZKU/xLA45fdOvxVbtFDCUsCYIvzeps/DjhFkNg=";
  };

  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/icons
    cp -r ./ $out/share/icons

    runHook postInstall
  '';

  meta = with lib; {
    description = "A fork of the capitaine cursor theme, with some additional variants (Gruvbox, Nord, Palenight) and support for HiDPI";
    homepage = "https://github.com/sainnhe/capitaine-cursors";
    license = licenses.lgpl3Only;
    platforms = platforms.unix;
    maintainers = [ maintainers.math-42 ];
  };
}