-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
63 lines (63 loc) · 1.59 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
description = "Jrsonnet";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
jrsonnet = {
url = "github:CertainLach/jrsonnet";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};
outputs = {
nixpkgs,
flake-utils,
rust-overlay,
jrsonnet,
...
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {
inherit system;
overlays = [rust-overlay.overlays.default];
};
rust =
(pkgs.rustChannelOf {
date = "2023-05-07";
channel = "nightly";
})
.default
.override {
extensions = ["rust-src" "miri" "rust-analyzer"];
targets = ["x86_64-unknown-linux-musl"];
};
in rec {
packages = rec {
};
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
alejandra
rust
cargo-edit
gnumake
jrsonnet.packages.${system}.jrsonnet
imagemagick
tokio-console
nodePackages_latest.web-ext
nodePackages_latest.typescript
nodePackages_latest.typescript-language-server
nodePackages_latest.yarn
nodejs_latest
udev
pkg-config
];
};
}
);
}