-
Notifications
You must be signed in to change notification settings - Fork 4
/
flake.nix
48 lines (44 loc) · 1.45 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
43
44
45
46
47
48
{
inputs = {
nh-nix-env.url = "github:neighbour-hoods/nh-nix-env";
};
outputs = { nh-nix-env, ... }:
let
flake-utils = nh-nix-env.metavalues.flake-utils;
nh-supported-systems = nh-nix-env.metavalues.nh-supported-systems;
rustVersion = nh-nix-env.metavalues.rustVersion;
naersk = nh-nix-env.metavalues.naersk;
in
flake-utils.lib.eachSystem nh-supported-systems (system:
let
pkgs = nh-nix-env.values.${system}.pkgs;
in
{
devShell = nh-nix-env.shells.${system}.rustDevShell {};
# warning: this is broken due to
# https://github.com/nix-community/naersk/issues/133
# packages.rep_lang_runtime =
# let
# rust = pkgs.rust-bin.stable.${rustVersion}.default;
#
# naersk' = pkgs.callPackage naersk {
# cargo = rust;
# rustc = rust;
# };
# in
# naersk'.buildPackage {
# src = ./rep_lang_runtime;
# copyLibs = true;
# };
# warning: this is broken due to
# https://github.com/cargo2nix/cargo2nix/issues/211
# packages.rep_lang_runtime-cargo2nix =
# let
# rustPkgs = pkgs.rustBuilder.makePackageSet {
# rustChannel = rustVersion;
# packageFun = import ./rep_lang_runtime/Cargo.nix;
# };
# in
# rustPkgs.workspace.rep_lang_runtime {};
});
}