From b075d0071b9680300cf4e08d59a152285b74ef1f Mon Sep 17 00:00:00 2001 From: Snorre Ettrup Altschul Date: Thu, 6 Feb 2025 15:35:45 +0100 Subject: [PATCH] fixed package (cargo cant download deps in build user) --- flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 1e4e5d7..c7728a5 100644 --- a/flake.nix +++ b/flake.nix @@ -34,13 +34,17 @@ # ''; }; formatter.${system} = pkgs.alejandra; - packages.${system}.default = pkgs.stdenv.mkDerivation rec { + packages.${system}.default = pkgs.rustPlatform.buildRustPackage rec { pname = "webbisitey-${version}"; version = "0.1.0"; src = ./src/..; runtime = ./public; + cargoDeps = pkgs.rustPlatform.importCargoLock { + lockFile = "${src}/Cargo.lock"; + }; + nativeBuildInputs = [ pkgs.makeWrapper pkgs.rust-bin.nightly.latest.default