nix-prefetch: apply 'Fix input_type regex for macOS systems' patch

This commit is contained in:
zowoq 2021-06-19 15:50:07 +10:00
parent 9332bcad18
commit 1c7b7616d2

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, installShellFiles, makeWrapper, asciidoc
, docbook_xml_dtd_45, git, docbook_xsl, libxml2, libxslt, coreutils, gawk
, gnugrep, gnused, jq, nix }:
, gnugrep, gnused, jq, nix, fetchpatch }:
let
binPath = lib.makeBinPath [ coreutils gawk git gnugrep gnused jq nix ];
@ -20,6 +20,14 @@ in stdenv.mkDerivation rec {
'';
};
patches = [
# Fix input_type regex for macOS systems: https://github.com/msteen/nix-prefetch/pull/24
(fetchpatch {
url = "https://github.com/msteen/nix-prefetch/commit/08282891bdb108e886eaf39be2030ba1feda1cb1.patch";
sha256 = "1v6ask54ind6f3784pbncv0dfg6draaaicg0q46jfvp0lafms70x";
})
];
postPatch = ''
lib=$out/lib/${pname}