mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
flake update
This commit is contained in:
parent
b8256eb410
commit
780d5fcf50
6 changed files with 94 additions and 90 deletions
68
flake.nix
68
flake.nix
|
|
@ -14,36 +14,42 @@
|
|||
flake = false;
|
||||
};
|
||||
};
|
||||
outputs = { mill-scale, npmlock2nix, ... }: mill-scale ./. {
|
||||
packageOpts = { demostf-frontend-node-modules, ... }: {
|
||||
preBuild = ''
|
||||
ln -s ${demostf-frontend-node-modules}/node_modules .
|
||||
'';
|
||||
outputs = {
|
||||
mill-scale,
|
||||
npmlock2nix,
|
||||
...
|
||||
}:
|
||||
mill-scale ./. {
|
||||
packageOpts = {demostf-frontend-node-modules, ...}: {
|
||||
preBuild = ''
|
||||
ln -s ${demostf-frontend-node-modules}/node_modules .
|
||||
'';
|
||||
};
|
||||
extraPaths = [
|
||||
./.sqlx
|
||||
./images
|
||||
./script
|
||||
./style
|
||||
];
|
||||
withOverlays = [
|
||||
(final: prev: {
|
||||
npmlock2nix = final.callPackage npmlock2nix {};
|
||||
})
|
||||
(final: prev: {
|
||||
nodejs-16_x = final.nodejs;
|
||||
demostf-frontend-toolchain = final.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||
})
|
||||
(import ./nix/overlay.nix)
|
||||
];
|
||||
toolchain = pkgs: pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||
tools = pkgs:
|
||||
with pkgs; [
|
||||
bacon
|
||||
cargo-edit
|
||||
nodejs
|
||||
nodePackages.svgo
|
||||
typescript
|
||||
sqlx-cli
|
||||
];
|
||||
};
|
||||
extraPaths = [
|
||||
./.sqlx
|
||||
./images
|
||||
./script
|
||||
./style
|
||||
];
|
||||
withOverlays = [
|
||||
(final: prev: {
|
||||
npmlock2nix = final.callPackage npmlock2nix { };
|
||||
})
|
||||
(final: prev: {
|
||||
nodejs-16_x = final.nodejs;
|
||||
demostf-frontend-toolchain = final.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||
})
|
||||
(import ./nix/overlay.nix)
|
||||
];
|
||||
toolchain = pkgs: pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||
tools = pkgs: with pkgs; [
|
||||
bacon
|
||||
cargo-edit
|
||||
nodejs
|
||||
nodePackages.svgo
|
||||
typescript
|
||||
sqlx-cli
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue