jshon: fix musl build

This commit is contained in:
Fabian Möller 2020-05-06 21:17:59 +02:00
parent f2b1359848
commit 3cd6970658
No known key found for this signature in database
GPG Key ID: 70B29D65DD8A7E31

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, jansson }:
{ stdenv, lib, fetchFromGitHub, fetchpatch, jansson }:
stdenv.mkDerivation rec {
pname = "jshon";
@ -13,7 +13,15 @@ stdenv.mkDerivation rec {
buildInputs = [ jansson ];
patchPhase =
patches = [
(fetchpatch {
# https://github.com/keenerd/jshon/pull/62
url = "https://github.com/keenerd/jshon/commit/96b4e9dbf578be7b31f29740b608aa7b34df3318.patch";
sha256 = "0kwbn3xb37iqb5y1n8vhzjiwlbg5jmki3f38pzakc24kzc5ksmaa";
})
];
postPatch =
''
substituteInPlace Makefile --replace "/usr/" "/"
'';