default.nix (839B)
1 { lib, stdenv, fetchfromgh, unzip }: 2 3 stdenv.mkDerivation (finalAttrs: { 4 pname = "Amethyst"; 5 version = "0.20.0"; 6 7 src = fetchfromgh { 8 owner = "ianyh"; 9 repo = "Amethyst"; 10 version = "v${finalAttrs.version}"; 11 name = "Amethyst.zip"; 12 hash = "sha256-GYorvoCDLOd/xYStIGkSBqF5QjVR3PHL30b/Hm+CnAk="; 13 }; 14 15 sourceRoot = "."; 16 17 nativeBuildInputs = [ unzip ]; 18 19 installPhase = '' 20 mkdir -p $out/Applications 21 cp -r *.app $out/Applications 22 ''; 23 24 preferLocalBuild = true; 25 26 meta = with lib; { 27 description = "Automatic tiling window manager for macOS à la xmonad"; 28 homepage = "https://ianyh.com/amethyst/"; 29 sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 30 license = licenses.mit; 31 maintainers = [ maintainers.sikmir ]; 32 platforms = [ "x86_64-darwin" ]; 33 skip.ci = true; 34 }; 35 })