-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
25 lines (24 loc) · 953 Bytes
/
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
{
inputs = {
naersk.url = "github:nix-community/naersk/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
worker-build.url = "github:lemmih/nix-flakes?dir=worker-build";
wrangler.url = "github:ryand56/wrangler";
};
outputs = { self, nixpkgs, utils, naersk, worker-build, wrangler }:
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
naersk-lib = pkgs.callPackage naersk { };
worker-build-bin = worker-build.packages.${system}.default;
wrangler-bin = wrangler.packages.${system}.default;
in {
# defaultPackage = naersk-lib.buildPackage ./.;
devShell = with pkgs; mkShell {
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy lld wasm-pack worker-build-bin wrangler-bin ];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
}
);
}