mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 10:14:13 +02:00
43 lines
1 KiB
Nix
43 lines
1 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-25.11";
|
|
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 = {mill-scale, ...}:
|
|
mill-scale ./. {
|
|
packageOpts = {demostf-frontend-node-modules, ...}: {
|
|
preBuild = ''
|
|
ln -s ${demostf-frontend-node-modules}/node_modules .
|
|
'';
|
|
};
|
|
extraPaths = [
|
|
./.sqlx
|
|
./images
|
|
./script
|
|
./style
|
|
];
|
|
withOverlays = [
|
|
(final: prev: {
|
|
nodejs-16_x = final.nodejs;
|
|
})
|
|
(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
|
|
];
|
|
};
|
|
}
|