-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
26 lines (24 loc) · 719 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
26
{
description = "A custom flake enabling consistent environments for Disarray";
inputs = {
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.follows = "rust-overlay/flake-utils";
nixpkgs.follows = "rust-overlay/nixpkgs";
};
outputs = inputs: with inputs;
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
code = pkgs.callPackage ./. { inherit nixpkgs system rust-overlay; };
in rec {
packages = {
workspace = code.workspace;
all = pkgs.symlinkJoin {
name = "all";
paths = with code; [ ];
};
default = packages.all;
};
}
);
}