bin.nix (759B)
1 { lib, stdenv, fetchfromgh, unzip }: 2 3 stdenv.mkDerivation rec { 4 pname = "Amethyst-bin"; 5 version = "0.16.0"; 6 7 src = fetchfromgh { 8 owner = "ianyh"; 9 repo = "Amethyst"; 10 version = "v${version}"; 11 name = "Amethyst.zip"; 12 hash = "sha256-pghX74T0JsAWkxAaAaQ5NIhYqj89fo0ZqRtxPThJZ/M="; 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 license = licenses.mit; 30 maintainers = [ maintainers.sikmir ]; 31 platforms = [ "x86_64-darwin" ]; 32 skip.ci = true; 33 }; 34 }