tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
json-c: fix build on LLVM 15+
Will Cohen
2 years ago
3ce34532
8392a8ba
+14
-4
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
json-c
default.nix
+14
-4
pkgs/development/libraries/json-c/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, cmake }:
1
1
+
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
pname = "json-c";
5
5
version = "0.16";
6
6
7
7
-
src = fetchurl {
8
8
-
url = "https://s3.amazonaws.com/json-c_releases/releases/${pname}-${version}.tar.gz";
9
9
-
sha256 = "sha256-jkWsj5bsd5Hq87t+5Q6cIQC7vIe40PHQMMW6igKI2Ws=";
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "json-c";
9
9
+
repo = "json-c";
10
10
+
rev = "json-c-0.16-20220414";
11
11
+
sha256 = "sha256-KbnUWLgpg6/1wvXhUoYswyqDcgiwEcvgaWCPjNcX20o=";
10
12
};
13
13
+
14
14
+
patches = [
15
15
+
# needed for emscripten, which uses LLVM 15+
16
16
+
(fetchpatch {
17
17
+
url = "https://github.com/json-c/json-c/commit/6eca65617aacd19f4928acd5766b8dd20eda0b34.patch";
18
18
+
sha256 = "sha256-fyugX+HgYlt/4AVtfNDaKS+blyUt8JYTNqkmhURb9dk=";
19
19
+
})
20
20
+
];
11
21
12
22
outputs = [ "out" "dev" ];
13
23