From c4353d057a785a8263d99885414ec494101e2d83 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sat, 12 Jul 2025 14:20:37 +0100 Subject: [PATCH] flake/dev: pin flake-compat to PR fixing shallow repo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pin flake-compat to https://github.com/edolstra/flake-compat/pull/75 which fixes https://github.com/edolstra/flake-compat/issues/74 If the flake is a shallow git repo, such as when fetched in CI, flake-compat was failing to run in nix-instantiate. Flake lock file updates: • Updated input 'flake-compat': 'https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.1.0/01948eb7-9cba-704f-bbf3-3fa956735b52/source.tar.gz?narHash=sha256-NeCCThCEP3eCl2l/%2B27kNNK7QrwZB1IJCrXfrbv5oqU%3D' (2024-12-04) → 'github:edolstra/flake-compat/b70558fcb45e248abd2a0add41cfb6464c94eb03?narHash=sha256-JtdaTv%2B1VIiZpLsULCSQte6Qg3ew5axbdpOYjo%2B8D2U%3D' (2025-07-12) --- flake/dev/flake.lock | 18 ++++++++++-------- flake/dev/flake.nix | 4 +++- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/flake/dev/flake.lock b/flake/dev/flake.lock index d1ef6913..b199d9e4 100644 --- a/flake/dev/flake.lock +++ b/flake/dev/flake.lock @@ -38,16 +38,18 @@ }, "flake-compat": { "locked": { - "lastModified": 1733328505, - "narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=", - "rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec", - "revCount": 69, - "type": "tarball", - "url": "https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.1.0/01948eb7-9cba-704f-bbf3-3fa956735b52/source.tar.gz" + "lastModified": 1752326326, + "narHash": "sha256-JtdaTv+1VIiZpLsULCSQte6Qg3ew5axbdpOYjo+8D2U=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "b70558fcb45e248abd2a0add41cfb6464c94eb03", + "type": "github" }, "original": { - "type": "tarball", - "url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz" + "owner": "edolstra", + "ref": "pull/75/merge", + "repo": "flake-compat", + "type": "github" } }, "git-hooks": { diff --git a/flake/dev/flake.nix b/flake/dev/flake.nix index ba96bbc6..dfd0951d 100644 --- a/flake/dev/flake.nix +++ b/flake/dev/flake.nix @@ -8,7 +8,9 @@ dev-nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; # flake-compat is used by the root `default.nix` to allow non-flake users to import nixvim - flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"; + # + # The pinned PR resolves an issue with shallow clones, such as those used by CI. + flake-compat.url = "github:edolstra/flake-compat?ref=pull/75/merge"; # keep-sorted start block=yes newline_separated=yes devshell = {