-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathflake.nix
42 lines (40 loc) · 997 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
nixConfig = {
extra-substituters = [
"https://pants-nix.cachix.org"
];
extra-trusted-public-keys = [
"pants-nix.cachix.org-1:qbtCBNLKjk4XIuZPquG8oQuEILiIFsd/pI9nkJ4W2OQ="
];
};
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-23.11";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = {
self,
nixpkgs,
rust-overlay,
}: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [rust-overlay.overlays.default];
};
pants-bin = pkgs.callPackage ./. {};
in {
packages.${system} = pants-bin;
devShells.${system}.default = pkgs.mkShell {
packages = [
pkgs.nix-prefetch-git
pkgs.python3
pkgs.python3Packages.aiofiles
pkgs.python3Packages.mypy
pkgs.python3Packages.pytest
pkgs.python3Packages.requests
pkgs.python3Packages.types-requests
];
};
};
}