-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathflake.nix
44 lines (38 loc) · 1.06 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
{
description = "Rust development environment";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
crane.url = "github:nmattia/naersk";
crane.inputs.nixpkgs.follows = "nixpkgs";
julia2nix.url = "github:juliaCN/julia2nix.jl";
call-flake.url = "github:divnix/call-flake";
};
outputs =
inputs@{
self,
flake-utils,
...
}:
(flake-utils.lib.eachDefaultSystem (
system:
let
nixpkgs = inputs.nixpkgs.legacyPackages.${system}.appendOverlays [
self.overlays.default
inputs.rust-overlay.overlays.default
inputs.julia2nix.overlays.default
];
in
rec {
inherit nixpkgs;
packages = { };
devShells.default =
(inputs.call-flake ./nix).devShells.${system}.default;
}
)) // {
overlays = import ./nix/overlays.nix { inherit inputs; };
}
;
}