Skip to content

Commit

Permalink
fix(nix-prefetch): apply msteen/nix-prefetch/pull/34 patch
Browse files Browse the repository at this point in the history
Hopefully fixes: #130

Even though nix-installer-action enables flakes by default,
it is overrided by nix-prefetch since it sets `--experimental-features`.

See msteen/nix-prefetch#34
  • Loading branch information
m15a committed May 10, 2024
1 parent ed2900f commit 2c776f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nix/ci.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 2c776f2

Please sign in to comment.