Update download.nix

This commit is contained in:
Anaïs Saraiva
2026-08-25 13:11:32 +02:00
parent d212f87e00
commit 6549ae0eed
+4 -13
View File
@@ -23,10 +23,10 @@ let
src = sourcePath; src = sourcePath;
cargoRoot = "backend"; cargoRoot = "backend";
# SHA-256 of all crates.io dependencies (from backend/Cargo.lock). # Derive the dependency hash automatically from the checked-in
# Set this to `lib.fakeHash` on the first build, then copy the real hash # backend/Cargo.lock (version 4; all deps are crates.io registry entries, so
# from the error message (nixpkgs prints it). # no extra outputHashes are needed). No manual cargoHash to maintain.
cargoHash = cfg.cargoHash; cargoLock.lockFile = sourcePath + "/backend/Cargo.lock";
buildInputs = [ ]; buildInputs = [ ];
nativeBuildInputs = with pkgs; [ ]; nativeBuildInputs = with pkgs; [ ];
@@ -87,15 +87,6 @@ in
description = "Path to the download source tree (backend/ + frontend/). Defaults to workingDir."; description = "Path to the download source tree (backend/ + frontend/). Defaults to workingDir.";
}; };
# SHA-256 of the Cargo dependency vendor (crates.io). See `cargoHash` in
# `rustPlatform.buildRustPackage`. Required; default to fakeHash to force a
# first build that reports the correct value.
cargoHash = lib.mkOption {
type = lib.types.str;
default = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
description = "cargo vendor hash (sha256) of the Rust crate dependencies.";
};
user = lib.mkOption { user = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = "filehost"; default = "filehost";