mirror of
https://codeberg.org/demostf/inspector.git
synced 2026-06-03 18:14:08 +02:00
flake reorg, enable panic hook
This commit is contained in:
parent
f64ffd6cfb
commit
667569052c
18 changed files with 200 additions and 165 deletions
54
flake.nix
54
flake.nix
|
|
@ -1,46 +1,32 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/release-25.05";
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
rust-overlay = {
|
||||
url = "github:oxalica/rust-overlay";
|
||||
nixpkgs.url = "nixpkgs/nixos-25.05";
|
||||
flakelight = {
|
||||
url = "github:nix-community/flakelight";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
mill-scale = {
|
||||
url = "git+https://codeberg.org/icewind/mill-scale.git";
|
||||
inputs.flakelight.follows = "flakelight";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
utils,
|
||||
rust-overlay,
|
||||
}:
|
||||
utils.lib.eachDefaultSystem (system: let
|
||||
overlays = [
|
||||
(import rust-overlay)
|
||||
outputs = {mill-scale, ...}:
|
||||
mill-scale ./. {
|
||||
withOverlays = [
|
||||
(import ./nix/overlay.nix)
|
||||
];
|
||||
pkgs = import nixpkgs {
|
||||
inherit system overlays;
|
||||
};
|
||||
in rec {
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
cargo-edit
|
||||
bacon
|
||||
wasm-pack
|
||||
nodejs_20
|
||||
node2nix
|
||||
wasm-bindgen-cli
|
||||
json-schema-to-typescript
|
||||
];
|
||||
|
||||
toolchain = pkgs:
|
||||
pkgs.rust-bin.stable.latest.default.override {
|
||||
targets = ["wasm32-unknown-unknown"];
|
||||
};
|
||||
|
||||
packages = {
|
||||
json-schema-to-typescript = pkgs: pkgs.json-schema-to-typescript;
|
||||
demo-inspector = pkgs: pkgs.demo-inspector;
|
||||
demo-inspector-wasm = pkgs: pkgs.demo-inspector-wasm;
|
||||
};
|
||||
|
||||
packages = rec {
|
||||
inherit (pkgs) json-schema-to-typescript demo-inspector demo-inspector-wasm demo-inspector-node-modules;
|
||||
default = demo-inspector;
|
||||
};
|
||||
})
|
||||
// {
|
||||
overlays.default = import ./nix/overlay.nix;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue