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) ];
|
overlays = [ (import rust-overlay) ];
|
||||||
pkgs = import nixpkgs { inherit system overlays; };
|
pkgs = import nixpkgs { inherit system overlays; };
|
||||||
naersk-lib = pkgs.callPackage naersk { };
|
naersk-lib = pkgs.callPackage naersk { };
|
||||||
|
rustToolchain =
|
||||||
|
(pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml);
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
(pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml)
|
rustToolchain
|
||||||
pkgs.openssl
|
pkgs.openssl
|
||||||
];
|
];
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -30,7 +32,10 @@
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
packages.ha-now-playing = naersk-lib.buildPackage
|
packages.ha-now-playing = (naersk-lib.override {
|
||||||
|
cargo = rustToolchain;
|
||||||
|
rustc = rustToolchain;
|
||||||
|
}).buildPackage
|
||||||
{
|
{
|
||||||
inherit buildInputs nativeBuildInputs;
|
inherit buildInputs nativeBuildInputs;
|
||||||
pname = "ha-now-playing";
|
pname = "ha-now-playing";
|
||||||
|
|
Loading…
Reference in a new issue