-
Notifications
You must be signed in to change notification settings - Fork 71
/
flake.nix
31 lines (29 loc) · 888 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
{
description = "A Nix flake for building oura";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, flake-utils, rust-overlay, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ rust-overlay.overlays.default ];
pkgs = import nixpkgs {
inherit system overlays;
};
in {
packages.oura = pkgs.rustPlatform.buildRustPackage rec {
name = "oura";
src = self;
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"pallas-0.23.0" = "7deb0f9c183c39d24499f123b17372394385a159ee6380df72fc27335cfa28e8";
};
};
};
defaultPackage = self.packages.oura;
}
);
}