Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 845 B view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchurl, 5 unzip, 6}: 7 8stdenvNoCC.mkDerivation (finalAttrs: { 9 pname = "maccy"; 10 version = "2.3.0"; 11 12 src = fetchurl { 13 url = "https://github.com/p0deje/Maccy/releases/download/${finalAttrs.version}/Maccy.app.zip"; 14 hash = "sha256-Prr0t3OvPWUnUQ3cTE3D+jj1ASKKmDvGZInKlT1WsJ0="; 15 }; 16 17 dontUnpack = true; 18 19 nativeBuildInputs = [ unzip ]; 20 21 installPhase = '' 22 runHook preInstall 23 24 mkdir -p $out/Applications 25 unzip -d $out/Applications $src 26 27 runHook postInstall 28 ''; 29 30 meta = with lib; { 31 description = "Simple clipboard manager for macOS"; 32 homepage = "https://maccy.app"; 33 license = licenses.mit; 34 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 35 maintainers = with maintainers; [ 36 emilytrau 37 baongoc124 38 ]; 39 platforms = platforms.darwin; 40 }; 41})