Skip to content

Commit

Permalink
gameevent fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Feb 2, 2024
1 parent b522666 commit dd836ea
Show file tree
Hide file tree
Showing 10 changed files with 9,424 additions and 3,414 deletions.
5 changes: 2 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@
nodejs_20
node2nix
wasm-bindgen-cli
json-schema-to-typescript
];
};

packages = rec {
wasm = pkgs.demo-inspector-wasm;
node_modules = pkgs.demo-inspector-node-modules;
demo-inspector = pkgs.demo-inspector;
inherit (pkgs) json-schema-to-typescript demo-inspector demo-inspector-wasm demo-inspector-node-modules;
default = demo-inspector;
};
})
Expand Down
1 change: 1 addition & 0 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ prev: final: {
demo-inspector-wasm = final.callPackage ./wasm.nix {};
demo-inspector-node-modules = final.callPackage ./modules.nix {};
demo-inspector = final.callPackage ./package.nix {};
json-schema-to-typescript = final.callPackage ./pkgs/json-schema-to-typescript {};
}
28 changes: 28 additions & 0 deletions pkgs/json-schema-to-typescript/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ lib, buildNpmPackage, fetchFromGitHub }:

buildNpmPackage rec {
pname = "json-schema-to-typescript";
version = "13.1.2";

src = fetchFromGitHub {
owner = "bcherny";
repo = "json-schema-to-typescript";
rev = "6adcad98ac28334f1e8cd932e412c64dde4205f5";
hash = "sha256-ad3syFl8NB31yl5JKN3tbGTT1zBCPIsX9CM5pLY/wb8=";
};

postPatch = ''
cp ${./package-lock.json} package-lock.json
'';

npmDepsHash = "sha256-+8d/kcv2aFJis/J9sh5A74PgYYbnOHImanWMz0/XTZY=";

npmBuildScript = "build:server";

meta = with lib; {
description = "Compile JSONSchema to TypeScript type declarations";
homepage = "https://github.com/bcherny/json-schema-to-typescript";
license = licenses.mit;
maintainers = with maintainers; [ icewind1991 ];
};
}
Loading

0 comments on commit dd836ea

Please sign in to comment.