uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
60
pkgs/servers/nosql/rethinkdb/default.nix
Normal file
60
pkgs/servers/nosql/rethinkdb/default.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{ lib, stdenv, fetchurl, which, m4
|
||||
, protobuf, boost170, zlib, curl, openssl, icu, jemalloc, libtool
|
||||
, python2Packages, makeWrapper
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rethinkdb";
|
||||
version = "2.4.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.rethinkdb.com/repository/raw/dist/${pname}-${version}.tgz";
|
||||
sha256 = "5f1786c94797a0f8973597796e22545849dc214805cf1962ef76969e0b7d495b";
|
||||
};
|
||||
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' external/v8_3.30.33.16/build/gyp/pylib/gyp/xcode_emulation.py
|
||||
|
||||
# very meta
|
||||
substituteInPlace mk/support/pkg/re2.sh --replace "-i '''" "-i"
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
export ALLOW_WARNINGS=1
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
configureFlags = lib.optionals (!stdenv.isDarwin) [
|
||||
"--with-jemalloc"
|
||||
"--lib-path=${jemalloc}/lib"
|
||||
];
|
||||
|
||||
makeFlags = [ "rethinkdb" ];
|
||||
|
||||
buildInputs = [ protobuf boost170 zlib curl openssl icu ]
|
||||
++ lib.optional (!stdenv.isDarwin) jemalloc
|
||||
++ lib.optional stdenv.isDarwin libtool;
|
||||
|
||||
nativeBuildInputs = [ which m4 python2Packages.python makeWrapper ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/rethinkdb \
|
||||
--prefix PATH ":" "${python2Packages.rethinkdb}/bin"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "An open-source distributed database built with love";
|
||||
longDescription = ''
|
||||
RethinkDB is built to store JSON documents, and scale to
|
||||
multiple machines with very little effort. It has a pleasant
|
||||
query language that supports really useful queries like table
|
||||
joins and group by, and is easy to setup and learn.
|
||||
'';
|
||||
homepage = "https://rethinkdb.com";
|
||||
license = lib.licenses.asl20;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ thoughtpolice bluescreen303 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue