From 85954c907b405159f275949ff49632b5808a02d7 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 4 Dec 2024 12:33:13 +0100 Subject: [PATCH] Update get-flake to its upstream, flake-compat flake-compat now has an equally general interface, so we can switch to it, and get fixes a bit sooner. Specifically, https://github.com/edolstra/flake-compat/pull/67 solves https://github.com/hercules-ci/flake-parts/issues/252 in this update. --- extras/partitions.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/extras/partitions.nix b/extras/partitions.nix index c980b4a..664532f 100644 --- a/extras/partitions.nix +++ b/extras/partitions.nix @@ -83,13 +83,12 @@ let # Nix does not recognize that a flake like "${./dev}", which is a content # addressed store path is a pure input, so we have to fetch and wire it - # manually with get-flake. - # TODO: update this - get-flake = import (builtins.fetchTree { - type = "github"; - owner = "ursi"; - repo = "get-flake"; - rev = "a6c57417d1b857b8be53aba4095869a0f438c502"; + # manually with flake-compat. + get-flake = src: (flake-compat { inherit src; system = throw "operating flake-compat in pure mode; system not allowed to be used"; }).outputs; + # TODO: update + flake-compat = import (builtins.fetchTarball { + url = "https://github.com/edolstra/flake-compat/archive/9ed2ac151eada2306ca8c418ebd97807bb08f6ac.tar.gz"; + sha256 = "sha256:063slk1np1g1dkh21a82x655kpja7p4pc74rb3lqankyrbbpy4hx"; }); in