forked from saber-hq/vipers
-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
25 lines (23 loc) · 810 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
{
description = "Saber Vipers development environment.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
saber-overlay.url = "github:saber-hq/saber-overlay";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, saber-overlay }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; }
// saber-overlay.packages.${system};
in
{
packages.cargo-workspaces = pkgs.cargo-workspaces;
devShell = pkgs.mkShell {
buildInputs = with pkgs;
[ libiconv anchor-0_22_0 cargo-workspaces ]
++ (lib.optionals stdenv.isDarwin
(with darwin.apple_sdk.frameworks; [ AppKit IOKit Foundation ]));
};
});
}