Added the flake to fetch the official macos release

This commit is contained in:
2026-05-14 15:28:01 +03:00
commit 0b61c6812b
2 changed files with 50 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
{
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/
'';
};
};
}