diff options
author | Winter <winter@winter.cafe> | 2022-09-10 21:20:42 -0400 |
---|---|---|
committer | Winter <winter@winter.cafe> | 2022-09-10 21:20:42 -0400 |
commit | f864ccfdaac5e5b45d30d40593629ce58e7e5b0d (patch) | |
tree | 55df836f1d896836ac8ba86ba55618131458e16b /pkgs/tools/package-management/nix-prefetch/default.nix | |
parent | 705476eae4560fed491b8b3c1f6a87adf9c7c035 (diff) | |
download | nixpkgs-f864ccfdaac5e5b45d30d40593629ce58e7e5b0d.tar nixpkgs-f864ccfdaac5e5b45d30d40593629ce58e7e5b0d.tar.gz nixpkgs-f864ccfdaac5e5b45d30d40593629ce58e7e5b0d.tar.bz2 nixpkgs-f864ccfdaac5e5b45d30d40593629ce58e7e5b0d.tar.lz nixpkgs-f864ccfdaac5e5b45d30d40593629ce58e7e5b0d.tar.xz nixpkgs-f864ccfdaac5e5b45d30d40593629ce58e7e5b0d.tar.zst nixpkgs-f864ccfdaac5e5b45d30d40593629ce58e7e5b0d.zip |
nix-prefetch: fix prefetching when using the hash key
Diffstat (limited to 'pkgs/tools/package-management/nix-prefetch/default.nix')
-rw-r--r-- | pkgs/tools/package-management/nix-prefetch/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/tools/package-management/nix-prefetch/default.nix b/pkgs/tools/package-management/nix-prefetch/default.nix index 03d51213b3e..d216d35f22f 100644 --- a/pkgs/tools/package-management/nix-prefetch/default.nix +++ b/pkgs/tools/package-management/nix-prefetch/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, installShellFiles, makeWrapper, asciidoc +{ lib, stdenv, fetchFromGitHub, fetchpatch, installShellFiles, makeWrapper, asciidoc , docbook_xml_dtd_45, git, docbook_xsl, libxml2, libxslt, coreutils, gawk , gnugrep, gnused, jq, nix }: @@ -17,6 +17,14 @@ stdenv.mkDerivation rec { ''; }; + patches = [ + (fetchpatch { + name = "fix-prefetching-hash-key.patch"; + url = "https://github.com/msteen/nix-prefetch/commit/877f80ac7e91d684857e2c940cdb3c423efa1833.patch"; + hash = "sha256-nkVQ2c+zezPQBOCDeMg+GHW3uz9EBnHIT+ZafdC8nQQ="; + }) + ]; + postPatch = '' lib=$out/lib/${pname} |