blob: 2df7182faab723df0caecae6840edbfed8d8e74d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
ninja,
versionCheckHook,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "surgescript";
version = "0.6.1";
src = fetchFromGitHub {
owner = "alemart";
repo = "surgescript";
tag = "v${finalAttrs.version}";
hash = "sha256-m6H9cyoUY8Mgr0FDqPb98PRJTgF7DgSa+jC+EM0TDEw=";
};
patches = [
(fetchpatch {
url = "https://github.com/alemart/surgescript/commit/21a9c0696d592b7cc21e07db828fb93a12c95a7e.patch?full_index=1";
hash = "sha256-d0l0xSrhJPIE5dMpEHdRlAMaD3f9x1IGBUpvjcMwDMs=";
})
];
nativeBuildInputs = [
cmake
ninja
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
mainProgram = "surgescript";
description = "Scripting language for games";
homepage = "https://docs.opensurge2d.org/";
downloadPage = "https://github.com/alemart/surgescript";
changelog = "https://github.com/alemart/surgescript/blob/v${finalAttrs.version}/CHANGES.md";
license = lib.licenses.asl20;
platforms = lib.platforms.all;
maintainers = [ ];
};
})
|