From 5d6c16530fde36c7b7227daae2008e366758654c Mon Sep 17 00:00:00 2001 From: Ivan Petkov Date: Thu, 29 Aug 2024 15:35:39 -0700 Subject: [PATCH] downloadCargoPackageFromGit: set fetchLFS when an output hash is defined (#690) --- CHANGELOG.md | 2 ++ lib/downloadCargoPackageFromGit.nix | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c532eac..8c376e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. which rely on `PKG_CONFIG_PATH` remaining stable * `installFromCargoBuildLogHook` no longer assumes or requires that `jq` is available on `$PATH` and will instead directly reference `pkgs.jq` +* `downloadCargoPackageFromGit` will now set `fetchLFS = true` when fetching git + repos with defined output hashes ## [0.18.1] - 2024-08-22 diff --git a/lib/downloadCargoPackageFromGit.nix b/lib/downloadCargoPackageFromGit.nix index e5c276c..1b717c9 100644 --- a/lib/downloadCargoPackageFromGit.nix +++ b/lib/downloadCargoPackageFromGit.nix @@ -31,6 +31,7 @@ let inherit rev sha256; url = git; fetchSubmodules = true; + fetchLFS = true; }; in stdenv.mkDerivation {