rust: add rec to use packages.default

This commit is contained in:
Dmitriy Pleshevskiy 2022-09-06 00:08:03 +03:00
parent d4efe8024d
commit 348335b454
Signed by: pleshevskiy
GPG Key ID: 1B59187B161C0215
1 changed files with 1 additions and 1 deletions

View File

@ -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 ./.;