Merge pull request #190735 from winterqt/nix-prefetch-hash-key

This commit is contained in:
Martin Weinelt 2022-09-11 03:31:28 +02:00 committed by GitHub
commit dc53ae88c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}