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,
|
||||
}: let
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
inherit (builtins) fromTOML readFile;
|
||||
src = sourceByRegex ../. ["Cargo.*" "(src|templates)(/.*)?"];
|
||||
cargoPackage = (fromTOML (readFile ../Cargo.toml)).package;
|
||||
rustPlatform = makeRustPlatform {
|
||||
cargo = rust-bin.stable.latest.minimal;
|
||||
rustc = rust-bin.stable.latest.minimal;
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = cargoPackage.name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue