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