mirror of
https://codeberg.org/spire/nix.git
synced 2026-08-02 12:25:00 +02:00
add sourcemod-include-json
This commit is contained in:
parent
d723744bcf
commit
39dd269d01
5 changed files with 38 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ jobs:
|
|||
name: link
|
||||
instance: https://cache.icewind.link
|
||||
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
||||
- run: nix flake check --keep-going
|
||||
- run: nix flake check --keep-going --option system i686-linux
|
||||
|
||||
sourcemod:
|
||||
runs-on: nix
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@
|
|||
"sourcemod-include-curl"
|
||||
"sourcemod-include-library"
|
||||
"sourcemod-include-steamworks"
|
||||
"sourcemod-include-json"
|
||||
"srcds-tf2"
|
||||
"srctvplus"
|
||||
"sourcemod-addon-curl"
|
||||
|
|
|
|||
33
nix/sourcemod/includes/json.nix
Normal file
33
nix/sourcemod/includes/json.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "sourcemod-include-json";
|
||||
version = "5.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "clugg";
|
||||
repo = "sm-json";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-XkqLDBd0o/DMKDs3Z8JPUVBfEmuM45jxa58flGy6+08=";
|
||||
};
|
||||
|
||||
doConfigure = false;
|
||||
doBuild = false;
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r addons/sourcemod/scripting/include $out
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--flake"
|
||||
"--version=branch"
|
||||
];
|
||||
};
|
||||
};
|
||||
})
|
||||
|
|
@ -3,4 +3,5 @@ final: prev: {
|
|||
sourcemod-include-library = final.callPackage ./sourcemod-include-library.nix {};
|
||||
sourcemod-include-curl = final.callPackage ./curl.nix {};
|
||||
sourcemod-include-steamworks = final.callPackage ./steamworks.nix {};
|
||||
sourcemod-include-json = final.callPackage ./json.nix {};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
sourcemod-include-curl,
|
||||
sourcemod-include-library,
|
||||
sourcemod-include-steamworks,
|
||||
sourcemod-include-json,
|
||||
runCommand,
|
||||
}: let
|
||||
inherit (builtins) concatStringsSep substring stringLength;
|
||||
|
|
@ -66,6 +67,7 @@
|
|||
sourcemod = sourcemod-includes;
|
||||
curl = sourcemod-include-curl;
|
||||
steamworks = sourcemod-include-steamworks;
|
||||
json = sourcemod-include-json;
|
||||
};
|
||||
buildEnv = imports: let
|
||||
unwrapped = symlinkJoin {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue