godot-spine: add flake
This commit is contained in:
commit
6f35ca3f2a
25
godot-spine/flake.lock
Normal file
25
godot-spine/flake.lock
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1706925685,
|
||||
"narHash": "sha256-hVInjWMmgH4yZgA4ZtbgJM1qEAel72SYhP5nOWX4UIM=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "79a13f1437e149dc7be2d1290c74d378dad60814",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
38
godot-spine/flake.nix
Normal file
38
godot-spine/flake.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
outputs = { self, nixpkgs }: let
|
||||
pkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
|
||||
binary-zip = pkgs.fetchurl {
|
||||
url = "https://spine-godot.s3.eu-central-1.amazonaws.com/4.1/4.2.1-stable/godot-editor-linux-mono.zip";
|
||||
hash = "sha256-ZIPlTbm7CIoITGwL2QwTYm3DW7s7n3dubPjf35l3CWw=";
|
||||
};
|
||||
|
||||
binary-zip-nomono = pkgs.fetchurl {
|
||||
url = "https://spine-godot.s3.eu-central-1.amazonaws.com/4.1/4.2.1-stable/godot-editor-linux.zip";
|
||||
hash = "sha256-lJBnS5dpH20Ud2u7tLDngDlxwUTR6iMbsoZ+4fYl9Hc=";
|
||||
};
|
||||
in {
|
||||
packages.x86_64-linux.godot-spine = pkgs.runCommand "godot-spine" {} ''
|
||||
binary=godot-4.1-4.2.1-stable-mono
|
||||
|
||||
mkdir -p $out/bin
|
||||
${pkgs.unzip}/bin/unzip ${binary-zip}
|
||||
|
||||
cp -r GodotSharp/ $out/bin/
|
||||
cp $binary $out/bin/godot-spine
|
||||
chmod +x $out/bin/godot-spine
|
||||
'';
|
||||
|
||||
packages.x86_64-linux.godot-spine-nomono = pkgs.runCommand "godot-spine-nomono" {} ''
|
||||
binary=godot-4.1-4.2.1-stable
|
||||
|
||||
mkdir -p $out/bin
|
||||
${pkgs.unzip}/bin/unzip ${binary-zip-nomono}
|
||||
|
||||
cp $binary $out/bin/godot-spine-nomono
|
||||
chmod +x $out/bin/godot-spine-nomono
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue