From b2b90850adb37a56f97142af416530716ace034b Mon Sep 17 00:00:00 2001 From: Matteo Pacini Date: Thu, 20 Jun 2024 10:39:40 +0100 Subject: [PATCH] loopwm: init at 1.0.0 (cherry picked from commit dbc9dcd31183e3c42d21c024f437c41bce0d2c9a) --- pkgs/by-name/lo/loopwm/package.nix | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/lo/loopwm/package.nix diff --git a/pkgs/by-name/lo/loopwm/package.nix b/pkgs/by-name/lo/loopwm/package.nix new file mode 100644 index 000000000000..5b1829a8ee04 --- /dev/null +++ b/pkgs/by-name/lo/loopwm/package.nix @@ -0,0 +1,40 @@ +{ + stdenvNoCC, + lib, + fetchurl, + unzip, +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "loopwm"; + version = "1.0.0"; + + src = fetchurl { + url = "https://github.com/MrKai77/Loop/releases/download/${finalAttrs.version}/Loop.zip"; + hash = "sha256-1DQ6O6QkD04/meS0XaS0+vpr+vd5cfwGSehV8QVgYtI="; + }; + + sourceRoot = "."; + + nativeBuildInputs = [ unzip ]; + + dontPatch = true; + dontConfigure = true; + dontBuild = true; + + installPhase = '' + runHook preInstall + mkdir -p $out/Applications + cp -r Loop.app $out/Applications + runHook postInstall + ''; + + meta = { + description = "macOS Window management made elegant"; + homepage = "https://github.com/MrKai77/Loop"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ matteopacini ]; + platforms = lib.platforms.darwin; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; +})