about summary refs log tree commit diff
path: root/pkgs/data/icons/gruppled-cursors/default.nix
blob: f78becfd615f43b8d4bd7b861d80d97a8fd21450 (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
{
  stdenvNoCC,
  fetchFromGitHub,
  theme,
  lib,
}:

stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "gruppled-cursors";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "nim65s";
    repo = finalAttrs.pname;
    rev = "v${finalAttrs.version}";
    hash = "sha256-ejlgdogjIYevZvB23si6bEeU6qY7rWXflaUyVk5MzqU=";
  };

  installPhase = ''
    mkdir -p $out/share/icons/${theme}
    cp -r ${theme}/{cursors,index.theme} $out/share/icons/${theme}
  '';

  meta = with lib; {
    description = "Gruppled Cursors theme";
    homepage = "https://github.com/nim65s/gruppled-cursors";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ nim65s ];
  };
})