-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
35 lines (34 loc) · 1.01 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
{
description = "linc";
inputs= {
# https://status.nixos.org/
nixpkgs.url = github:NixOS/nixpkgs/nixos-22.05;
rust-overlay.url = github:oxalica/rust-overlay;
};
outputs = { self, nixpkgs, rust-overlay } :
let
pkgs = import nixpkgs {
overlays = [ rust-overlay.overlays.default ];
system = "x86_64-linux";
};
in {
defaultPackage.x86_64-linux =
pkgs.stdenv.mkDerivation {
name = "build";
src = self;
buildPhase = "echo fo";
};
devShell.x86_64-linux =
pkgs.mkShell {
buildInputs = [
pkgs.cargo
pkgs.protobuf
pkgs.trunk
(pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override {
extensions = [ "rust-src" ];
targets = [ "wasm32-unknown-unknown" ];
}))
];
};
};
}