btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / ap / apple-cursor / package.nix
blobe2f059ecb1fb2b607a46f7f95358dd518a8cc162
1 { lib
2 , fetchzip
3 , stdenv
4 }:
6 let
7   _src = variant: suffix: hash: fetchzip ({
8     name = variant;
9     url = "https://github.com/ful1e5/apple_cursor/releases/download/v${version}/${variant}.${suffix}";
10     hash = hash;
11   } // (lib.optionalAttrs (suffix == "zip") { stripRoot = false; }) // (lib.optionalAttrs (suffix == "tar.xz") { stripRoot = false; }));
13   srcs = [
14     (_src "macOS" "tar.xz" "sha256-nS4g+VwM+4q/S1ODb3ySi2SBk7Ha8vF8d9XpP5cEkok=")
15   ];
16   version = "2.0.1";
17 in stdenv.mkDerivation rec {
18   pname = "apple_cursor";
19   inherit version;
20   inherit srcs;
22   sourceRoot = ".";
24   installPhase = ''
25     install -dm 0755 $out/share/icons
26     cp -r macOS/macOS* $out/share/icons/
27   '';
29   meta = with lib; {
30     description = "Opensource macOS Cursors";
31     homepage = "https://github.com/ful1e5/apple_cursor";
32     license = [
33       licenses.gpl3Only
34       # Potentially a derivative work of copyrighted Apple designs
35       licenses.unfree
36     ];
37     platforms = platforms.linux;
38     maintainers = with maintainers; [ colemickens dxwil ];
39   };