Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 ninja, 7 versionCheckHook, 8 nix-update-script, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 pname = "surgescript"; 13 version = "0.6.1"; 14 15 src = fetchFromGitHub { 16 owner = "alemart"; 17 repo = "surgescript"; 18 tag = "v${finalAttrs.version}"; 19 hash = "sha256-m6H9cyoUY8Mgr0FDqPb98PRJTgF7DgSa+jC+EM0TDEw="; 20 }; 21 22 nativeBuildInputs = [ 23 cmake 24 ninja 25 ]; 26 27 nativeInstallCheckInputs = [ versionCheckHook ]; 28 doInstallCheck = true; 29 30 passthru.updateScript = nix-update-script { }; 31 32 meta = { 33 mainProgram = "surgescript"; 34 description = "Scripting language for games"; 35 homepage = "https://docs.opensurge2d.org/"; 36 downloadPage = "https://github.com/alemart/surgescript"; 37 changelog = "https://github.com/alemart/surgescript/blob/v${finalAttrs.version}/CHANGES.md"; 38 license = lib.licenses.asl20; 39 platforms = lib.platforms.all; 40 maintainers = with lib.maintainers; [ federicoschonborn ]; 41 }; 42})