tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
avro-c: nitpicks
Jörg Thalheim
8 years ago
cd0d2444
f65414ea
+12
-17
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
avro-c
default.nix
+12
-17
pkgs/development/libraries/avro-c/default.nix
···
1
1
{ stdenv, bash, cmake, fetchurl, pkgconfig, jansson, zlib }:
2
2
3
3
-
let version = "1.8.2"; in
4
4
-
5
5
-
stdenv.mkDerivation rec {
3
3
+
let
4
4
+
version = "1.8.2";
5
5
+
in stdenv.mkDerivation rec {
6
6
name = "avro-c-${version}";
7
7
8
8
-
#
9
8
src = fetchurl {
10
9
url = "mirror://apache/avro/avro-${version}/c/avro-c-${version}.tar.gz";
11
10
sha256 = "03pixl345kkpn1jds03rpdcwjabi41rgdzi8f7y93gcg5cmrhfa6";
12
11
};
13
12
14
14
-
patchPhase = ''
15
15
-
substituteInPlace version.sh \
16
16
-
--replace /bin/bash "$bash/bin/bash"
13
13
+
postPatch = ''
14
14
+
patchShebangs .
17
15
'';
18
16
19
19
-
buildInputs = [
20
20
-
pkgconfig
21
21
-
cmake
22
22
-
jansson
23
23
-
zlib
24
24
-
];
17
17
+
nativeBuildInputs = [ pkgconfig cmake ];
18
18
+
19
19
+
buildInputs = [ jansson zlib ];
25
20
26
21
enableParallelBuilding = true;
27
22
28
28
-
meta = {
23
23
+
meta = with stdenv.lib; {
29
24
description = "A C library which implements parts of the Avro Specification";
30
25
homepage = https://avro.apache.org/;
31
31
-
license = stdenv.lib.licenses.asl20;
32
32
-
maintainers = with stdenv.lib.maintainers; [ lblasc ];
33
33
-
platforms = stdenv.lib.platforms.all;
26
26
+
license = licenses.asl20;
27
27
+
maintainers = with maintainers; [ lblasc ];
28
28
+
platforms = platforms.all;
34
29
};
35
30
}