2024-07-01 15:47:52 +00:00
|
|
|
{
|
|
|
|
stdenvNoCC,
|
|
|
|
lib,
|
|
|
|
fetchurl,
|
|
|
|
unzip,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "loopwm";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.1.1";
|
2024-07-01 15:47:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/MrKai77/Loop/releases/download/${finalAttrs.version}/Loop.zip";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-eF8B4rmkyTtT0vWTcjdaNaWCHWSlPfS4uVV29L+wXiM=";
|
2024-07-01 15:47:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
|
|
|
dontPatch = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -r Loop.app $out/Applications
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = ./update.sh;
|
|
|
|
};
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
})
|