Make sure naersk is using the correct toolchain
This commit is contained in:
parent
727a05c8c1
commit
7a25741c8a
1 changed files with 7 additions and 2 deletions
|
@ -20,9 +20,11 @@
|
|||
overlays = [ (import rust-overlay) ];
|
||||
pkgs = import nixpkgs { inherit system overlays; };
|
||||
naersk-lib = pkgs.callPackage naersk { };
|
||||
rustToolchain =
|
||||
(pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml);
|
||||
|
||||
buildInputs = [
|
||||
(pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml)
|
||||
rustToolchain
|
||||
pkgs.openssl
|
||||
];
|
||||
nativeBuildInputs = [
|
||||
|
@ -30,7 +32,10 @@
|
|||
];
|
||||
in
|
||||
rec {
|
||||
packages.ha-now-playing = naersk-lib.buildPackage
|
||||
packages.ha-now-playing = (naersk-lib.override {
|
||||
cargo = rustToolchain;
|
||||
rustc = rustToolchain;
|
||||
}).buildPackage
|
||||
{
|
||||
inherit buildInputs nativeBuildInputs;
|
||||
pname = "ha-now-playing";
|
||||
|
|
Loading…
Reference in a new issue