aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2021-01-23 05:18:00 -0500
committerNathan Perry <np@nathanperry.dev>2021-01-23 05:18:00 -0500
commita2e583a90062c2d83882ad128ebd3d909db5a32d (patch)
treefe7866de87926b23a53d27c1390055f69266d5a8 /flake.nix
parent709a6dcb0dd29dd85e6bf267555c684ee5b8980f (diff)
builds ok
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix20
1 files changed, 18 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 708daa8..754f59f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,6 +1,6 @@
{
inputs = {
- nixpkgs.url = "github:nixos/nixpkgs/master";
+ nixpkgs.url = "github:nixos/nixpkgs/release-20.09";
flake-utils.url = "github:numtide/flake-utils";
nixpkgs-mozilla = {
@@ -8,7 +8,10 @@
flake = false;
};
- naersk.url = "github:nmattia/naersk";
+ naersk = {
+ url = "github:nmattia/naersk";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
};
description = "thulani discord bot";
@@ -20,6 +23,10 @@
...
} @ inputs: (flake-utils.lib.eachDefaultSystem (system:
let
+ barepkgs = import nixpkgs {
+ inherit system;
+ };
+
pkgs = import nixpkgs {
inherit system;
@@ -37,6 +44,8 @@
in {
cargo = rust;
rustc = rust;
+
+ naerskRust = rust;
})
];
};
@@ -67,7 +76,14 @@
buildInputs = (with pkgs; [
cargo
rustc
+
+ barepkgs.rustracer
+ # (rustracer.overrideAttrs (old: {
+ # dontCheck = true;
+ # }))
]) ++ deps;
+
+ RUST_SRC_PATH = "${pkgs.naerskRust}/lib/rustlib/src/rust";
};
defaultPackage = pkg;