nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 1.1 kB view raw
1{ 2 lib, 3 fetchzip, 4 stdenv, 5}: 6 7let 8 _src = 9 variant: suffix: hash: 10 fetchzip ( 11 { 12 name = variant; 13 url = "https://github.com/ful1e5/apple_cursor/releases/download/v${version}/${variant}.${suffix}"; 14 hash = hash; 15 } 16 // (lib.optionalAttrs (suffix == "zip") { stripRoot = false; }) 17 // (lib.optionalAttrs (suffix == "tar.xz") { stripRoot = false; }) 18 ); 19 20 srcs = [ 21 (_src "macOS" "tar.xz" "sha256-nS4g+VwM+4q/S1ODb3ySi2SBk7Ha8vF8d9XpP5cEkok=") 22 ]; 23 version = "2.0.1"; 24in 25stdenv.mkDerivation { 26 pname = "apple_cursor"; 27 inherit version; 28 inherit srcs; 29 30 sourceRoot = "."; 31 32 installPhase = '' 33 install -dm 0755 $out/share/icons 34 cp -r macOS/macOS* $out/share/icons/ 35 ''; 36 37 meta = { 38 description = "Opensource macOS Cursors"; 39 homepage = "https://github.com/ful1e5/apple_cursor"; 40 license = [ 41 lib.licenses.gpl3Only 42 # Potentially a derivative work of copyrighted Apple designs 43 lib.licenses.unfree 44 ]; 45 platforms = lib.platforms.linux; 46 maintainers = with lib.maintainers; [ 47 colemickens 48 dxwil 49 ]; 50 }; 51}