rust: add rec to use packages.default
This commit is contained in:
parent
d4efe8024d
commit
348335b454
|
@ -10,7 +10,7 @@
|
|||
pkgs = import nixpkgs { inherit system; };
|
||||
cargoToml = with builtins; (fromTOML (readFile ./Cargo.toml));
|
||||
in
|
||||
{
|
||||
rec {
|
||||
packages.default = pkgs.rustPlatform.buildRustPackage {
|
||||
inherit (cargoToml.package) name version;
|
||||
src = nixpkgs.lib.cleanSource ./.;
|
||||
|
|
Loading…
Reference in New Issue