mirror of
https://codeberg.org/spire/dispenser.git
synced 2026-06-03 10:04:07 +02:00
use newer rust for nix package
This commit is contained in:
parent
715be91a73
commit
131071dbd2
2 changed files with 7 additions and 1 deletions
|
|
@ -27,6 +27,7 @@
|
||||||
};
|
};
|
||||||
hostTarget = pkgs.hostPlatform.config;
|
hostTarget = pkgs.hostPlatform.config;
|
||||||
targets = ["x86_64-unknown-linux-musl" hostTarget];
|
targets = ["x86_64-unknown-linux-musl" hostTarget];
|
||||||
|
|
||||||
naerskForTarget = target: let
|
naerskForTarget = target: let
|
||||||
toolchain = pkgs.rust-bin.stable.latest.default.override {targets = [target];};
|
toolchain = pkgs.rust-bin.stable.latest.default.override {targets = [target];};
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,16 @@
|
||||||
{
|
{
|
||||||
stdenv,
|
stdenv,
|
||||||
rustPlatform,
|
makeRustPlatform,
|
||||||
libsodium,
|
libsodium,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
lib,
|
lib,
|
||||||
|
rust-bin,
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.sources) sourceByRegex;
|
inherit (lib.sources) sourceByRegex;
|
||||||
|
rustPlatform = makeRustPlatform {
|
||||||
|
cargo = rust-bin.stable.latest.minimal;
|
||||||
|
rustc = rust-bin.stable.latest.minimal;
|
||||||
|
};
|
||||||
src = sourceByRegex ./. ["Cargo.*" "(src)(/.*)?"];
|
src = sourceByRegex ./. ["Cargo.*" "(src)(/.*)?"];
|
||||||
in
|
in
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue