From 348335b4549664d259cc79587ab9fa522595f40d Mon Sep 17 00:00:00 2001 From: janabhumi Date: Tue, 6 Sep 2022 00:08:03 +0300 Subject: [PATCH] rust: add rec to use packages.default --- rust-flake/flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-flake/flake.nix b/rust-flake/flake.nix index 8c33c66..d477620 100644 --- a/rust-flake/flake.nix +++ b/rust-flake/flake.nix @@ -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 ./.;