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; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
cargoToml = with builtins; (fromTOML (readFile ./Cargo.toml));
|
cargoToml = with builtins; (fromTOML (readFile ./Cargo.toml));
|
||||||
in
|
in
|
||||||
{
|
rec {
|
||||||
packages.default = pkgs.rustPlatform.buildRustPackage {
|
packages.default = pkgs.rustPlatform.buildRustPackage {
|
||||||
inherit (cargoToml.package) name version;
|
inherit (cargoToml.package) name version;
|
||||||
src = nixpkgs.lib.cleanSource ./.;
|
src = nixpkgs.lib.cleanSource ./.;
|
||||||
|
|
Loading…
Reference in New Issue