-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
49 lines (49 loc) · 1.21 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-24.11";
flakelight = {
url = "github:nix-community/flakelight";
inputs.nixpkgs.follows = "nixpkgs";
};
mill-scale = {
url = "github:icewind1991/mill-scale";
inputs.flakelight.follows = "flakelight";
};
npmlock2nix = {
url = "github:nix-community/npmlock2nix";
flake = false;
};
};
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
];
};
}