default.nix (846B)
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 src = fetchfromgh { 13 owner = "ianyh"; 14 repo = "Amethyst"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-pqUzcNUP8v3ls68BIzWXggXgUVe1wc/bN5BtXqKHXM4="; 17 name = "Amethyst.zip"; 18 }; 19 20 sourceRoot = "."; 21 22 nativeBuildInputs = [ unzip ]; 23 24 installPhase = '' 25 mkdir -p $out/Applications 26 cp -r *.app $out/Applications 27 ''; 28 29 preferLocalBuild = true; 30 31 meta = { 32 description = "Automatic tiling window manager for macOS à la xmonad"; 33 homepage = "https://ianyh.com/amethyst/"; 34 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 35 license = lib.licenses.mit; 36 maintainers = [ lib.maintainers.sikmir ]; 37 platforms = [ "x86_64-darwin" ]; 38 skip.ci = true; 39 }; 40 })