Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 53 lines 1.2 kB view raw
1{ 2 stdenvNoCC, 3 fetchzip, 4 lib, 5}: 6 7let 8 colors = [ 9 { 10 name = "Black"; 11 hash = "sha256-pb2U9j1m8uJaILxUxKqp8q9FGuwzZsQvhPP3bfGZL5I="; 12 } 13 { 14 name = "Blue"; 15 hash = "sha256-PmJeGShQLIC7ceRwQvSbphqz19fKptksZeHKi9QSL5Y="; 16 } 17 { 18 name = "Red"; 19 hash = "sha256-/X81jLoWaw4UMoDRf1f6oaKKRWexQc4PAACy3doV4Kc="; 20 } 21 { 22 name = "White"; 23 hash = "sha256-eT/Zy6O6TBD6G8q/dg+9rNYDHutLLxEY1lvLDP90b+g="; 24 } 25 ]; 26in 27stdenvNoCC.mkDerivation (finalAttrs: { 28 pname = "google-cursor"; 29 version = "2.0.0"; 30 31 sourceRoot = "."; 32 srcs = map ( 33 color: 34 (fetchzip { 35 url = "https://github.com/ful1e5/Google_Cursor/releases/download/v${finalAttrs.version}/GoogleDot-${color.name}.tar.gz"; 36 name = "GoogleDot-${color.name}"; 37 hash = color.hash; 38 }) 39 ) colors; 40 41 postInstall = '' 42 mkdir -p $out/share/icons 43 cp -r GoogleDot-* $out/share/icons 44 ''; 45 46 meta = with lib; { 47 description = "Opensource cursor theme inspired by Google"; 48 homepage = "https://github.com/ful1e5/Google_Cursor"; 49 license = licenses.gpl3Plus; 50 platforms = platforms.all; 51 maintainers = with maintainers; [ quadradical ]; 52 }; 53})