Skip to content

Instantly share code, notes, and snippets.

@piq9117
Last active January 24, 2020 06:30
Show Gist options
  • Save piq9117/c0a41d62e919b22415a047006452a90b to your computer and use it in GitHub Desktop.
Save piq9117/c0a41d62e919b22415a047006452a90b to your computer and use it in GitHub Desktop.
{ stdenv, fetchzip }:
stdenv.mkDerivation rec {
name = "godot-mono";
version = "3.1.2";
src = fetchzip {
url = "https://downloads.tuxfamily.org/godotengine/${version}/mono/Godot_v${version}-stable_mono_x11_64.zip";
sha256 = "0lzl9kin9pckcdl262fp4kfybjx0fbj79954xmz75jqazwgnp0dd";
extraPostFetch = ''
chmod go-w $out
'';
};
installPhase = ''
mkdir -p $out/bin
cp -a . $out
ls $out
ln -sf $out/Godot_v${version}-stable_mono_x11.64 $out/bin/godot-mono
'';
meta = {
description = ''
Godot is a 2D and 3D, cross-platform, free and open-source game engine
released under the MIT license
'';
license = stdenv.lib.licenses.free;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment