mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
41 lines
903 B
Nix
41 lines
903 B
Nix
{
|
|
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 ];
|
|
};
|
|
})
|