mirror of
https://codeberg.org/icewind/netnsd.git
synced 2026-06-03 09:04:07 +02:00
fix nix package
This commit is contained in:
parent
cd00701028
commit
a885a5aabd
1 changed files with 6 additions and 1 deletions
|
|
@ -1,11 +1,16 @@
|
||||||
{
|
{
|
||||||
rustPlatform,
|
makeRustPlatform,
|
||||||
|
rust-bin,
|
||||||
lib,
|
lib,
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.sources) sourceByRegex;
|
inherit (lib.sources) sourceByRegex;
|
||||||
inherit (builtins) fromTOML readFile;
|
inherit (builtins) fromTOML readFile;
|
||||||
src = sourceByRegex ../. ["Cargo.*" "(src|templates)(/.*)?"];
|
src = sourceByRegex ../. ["Cargo.*" "(src|templates)(/.*)?"];
|
||||||
cargoPackage = (fromTOML (readFile ../Cargo.toml)).package;
|
cargoPackage = (fromTOML (readFile ../Cargo.toml)).package;
|
||||||
|
rustPlatform = makeRustPlatform {
|
||||||
|
cargo = rust-bin.stable.latest.minimal;
|
||||||
|
rustc = rust-bin.stable.latest.minimal;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = cargoPackage.name;
|
pname = cargoPackage.name;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue