From 2c776f2ad90a429afe26b2fad4603123627f91ed Mon Sep 17 00:00:00 2001 From: NACAMURA Mitsuhiro Date: Fri, 10 May 2024 09:34:45 +0900 Subject: [PATCH] fix(nix-prefetch): apply msteen/nix-prefetch/pull/34 patch Hopefully fixes: #130 Even though nix-installer-action enables flakes by default, it is overrided by nix-prefetch since it sets `--experimental-features`. See https://github.com/msteen/nix-prefetch/pull/34 --- nix/ci.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nix/ci.nix b/nix/ci.nix index 00e0e5fa..e7b47210 100644 --- a/nix/ci.nix +++ b/nix/ci.nix @@ -50,6 +50,13 @@ rec { ci-update = mkShell { packages = [ (prev.nix-prefetch.overrideAttrs (old: { + patches = old.patches ++ [ + (final.fetchpatch { + name = "msteen-nix-prefetch-pull-34.patch"; + url = "https://github.com/msteen/nix-prefetch/pull/34/commits/c5744efd558ba1dd3db7c2bc2152511556d4454a.patch"; + hash = "sha256-4mpMmF5jb5R2qmTjtw3mXnIYMkPmPQAtWSzGgSH+5R0="; + }) + ]; postPatch = '' lib=$out/lib/${old.pname} substituteInPlace src/main.sh \