nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 1.1 kB view raw
1{ 2 stdenvNoCC, 3 lib, 4 fetchurl, 5 unzip, 6 makeWrapper, 7}: 8 9stdenvNoCC.mkDerivation (finalAttrs: { 10 pname = "loopwm"; 11 version = "1.3.0"; 12 13 src = fetchurl { 14 url = "https://github.com/MrKai77/Loop/releases/download/${finalAttrs.version}/Loop.zip"; 15 hash = "sha256-UiEUdRKQLJdOj+fI4fmTi71TreP1gM+jr+53dhtESRE="; 16 }; 17 18 sourceRoot = "."; 19 20 nativeBuildInputs = [ 21 unzip 22 makeWrapper 23 ]; 24 25 dontPatch = true; 26 dontConfigure = true; 27 dontBuild = true; 28 29 installPhase = '' 30 runHook preInstall 31 mkdir -p $out/{Applications,bin} 32 cp -r Loop.app $out/Applications 33 makeWrapper $out/Applications/Loop.app/Contents/MacOS/Loop $out/bin/loopwm \ 34 --set LOOP_SKIP_UPDATE_CHECK 1 35 runHook postInstall 36 ''; 37 38 passthru = { 39 updateScript = ./update.sh; 40 }; 41 42 meta = { 43 description = "macOS Window management made elegant"; 44 homepage = "https://github.com/MrKai77/Loop"; 45 license = lib.licenses.gpl3Only; 46 maintainers = with lib.maintainers; [ matteopacini ]; 47 mainProgram = "loopwm"; 48 platforms = lib.platforms.darwin; 49 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 50 }; 51})