-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
42 lines (40 loc) · 1.08 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
{
description = "Sensor Watch development and build flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
let
mkDevShells = buildPlatform:
let
overlays = [ rust-overlay.overlays.default ];
pkgs = import nixpkgs {
inherit overlays; system = buildPlatform;
};
rust = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
inputs = [
pkgs.bitcoind
pkgs.clang
pkgs.glibc_multi
pkgs.just
pkgs.openssl
pkgs.pkg-config
pkgs.rust-analyzer
rust
];
in
{
default = pkgs.mkShell {
nativeBuildInputs = inputs;
};
};
in
flake-utils.lib.eachDefaultSystem (system: {
devShells = mkDevShells system;
});
}