24 lines
798 B
Nix
24 lines
798 B
Nix
{
|
|
description = "Pre-compiled Godot binary for MacOS, fetched from official releases and delivered as a flake";
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
outputs = {self, nixpkgs}:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.aarch64-darwin;
|
|
in {
|
|
packages.aarch64-darwin.default = pkgs.stdenv.mkDerivation rec {
|
|
pname = "godot-mac";
|
|
version = "v4.6.2-stable";
|
|
src = pkgs.fetchurl {
|
|
url = "https://github.com/godotengine/godot/releases/download/4.6.2-stable/Godot_${version}_macos.universal.zip";
|
|
sha256 = "sha256-ZmsqZOS1xZ2w5JdGBbiI63LrfU5g6HDSvmzBlye1CAc=";
|
|
};
|
|
nativeBuildInputs = [pkgs.unzip];
|
|
sourceRoot = ".";
|
|
installPhase = ''
|
|
mkdir -p $out/Applications
|
|
cp -r Godot.app $out/Applications/
|
|
'';
|
|
};
|
|
};
|
|
}
|