avro-c: nitpicks
This commit is contained in:
parent
f65414ea07
commit
cd0d2444c6
@ -1,35 +1,30 @@
|
|||||||
{ stdenv, bash, cmake, fetchurl, pkgconfig, jansson, zlib }:
|
{ stdenv, bash, cmake, fetchurl, pkgconfig, jansson, zlib }:
|
||||||
|
|
||||||
let version = "1.8.2"; in
|
let
|
||||||
|
version = "1.8.2";
|
||||||
stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "avro-c-${version}";
|
name = "avro-c-${version}";
|
||||||
|
|
||||||
#
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://apache/avro/avro-${version}/c/avro-c-${version}.tar.gz";
|
url = "mirror://apache/avro/avro-${version}/c/avro-c-${version}.tar.gz";
|
||||||
sha256 = "03pixl345kkpn1jds03rpdcwjabi41rgdzi8f7y93gcg5cmrhfa6";
|
sha256 = "03pixl345kkpn1jds03rpdcwjabi41rgdzi8f7y93gcg5cmrhfa6";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
substituteInPlace version.sh \
|
patchShebangs .
|
||||||
--replace /bin/bash "$bash/bin/bash"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [
|
nativeBuildInputs = [ pkgconfig cmake ];
|
||||||
pkgconfig
|
|
||||||
cmake
|
buildInputs = [ jansson zlib ];
|
||||||
jansson
|
|
||||||
zlib
|
|
||||||
];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "A C library which implements parts of the Avro Specification";
|
description = "A C library which implements parts of the Avro Specification";
|
||||||
homepage = https://avro.apache.org/;
|
homepage = https://avro.apache.org/;
|
||||||
license = stdenv.lib.licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with stdenv.lib.maintainers; [ lblasc ];
|
maintainers = with maintainers; [ lblasc ];
|
||||||
platforms = stdenv.lib.platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user