mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
arangodb/default.nix: format with nixpkgs-fmt
This commit is contained in:
parent
d58d66e466
commit
db418cf3d1
@ -1,4 +1,19 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, openssl, zlib, cmake, python2, python3, perl, snappy, lzo, which, catch2, catch }:
|
{ stdenv
|
||||||
|
, gcc8Stdenv
|
||||||
|
, lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, openssl
|
||||||
|
, zlib
|
||||||
|
, cmake
|
||||||
|
, python2
|
||||||
|
, python3
|
||||||
|
, perl
|
||||||
|
, snappy
|
||||||
|
, lzo
|
||||||
|
, which
|
||||||
|
, catch
|
||||||
|
, catch2
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
common = { stdenv, version, sha256 }: stdenv.mkDerivation {
|
common = { stdenv, version, sha256 }: stdenv.mkDerivation {
|
||||||
@ -22,9 +37,9 @@ let
|
|||||||
buildInputs = [ openssl zlib snappy lzo ];
|
buildInputs = [ openssl zlib snappy lzo ];
|
||||||
|
|
||||||
# prevent failing with "cmake-3.13.4/nix-support/setup-hook: line 10: ./3rdParty/rocksdb/RocksDBConfig.cmake.in: No such file or directory"
|
# prevent failing with "cmake-3.13.4/nix-support/setup-hook: line 10: ./3rdParty/rocksdb/RocksDBConfig.cmake.in: No such file or directory"
|
||||||
dontFixCmake = lib.versionAtLeast version "3.5";
|
dontFixCmake = lib.versionAtLeast version "3.5";
|
||||||
NIX_CFLAGS_COMPILE = lib.optionalString (lib.versionAtLeast version "3.5") "-Wno-error";
|
NIX_CFLAGS_COMPILE = lib.optionalString (lib.versionAtLeast version "3.5") "-Wno-error";
|
||||||
preConfigure = lib.optionalString (lib.versionAtLeast version "3.5") "patchShebangs utils";
|
preConfigure = lib.optionalString (lib.versionAtLeast version "3.5") "patchShebangs utils";
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
${if lib.versionAtLeast version "3.9"
|
${if lib.versionAtLeast version "3.9"
|
||||||
@ -61,7 +76,8 @@ let
|
|||||||
maintainers = [ maintainers.flosse maintainers.jsoo1 ];
|
maintainers = [ maintainers.flosse maintainers.jsoo1 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
arangodb_3_3 = common {
|
arangodb_3_3 = common {
|
||||||
stdenv = gcc8Stdenv;
|
stdenv = gcc8Stdenv;
|
||||||
version = "3.3.24";
|
version = "3.3.24";
|
||||||
|
Loading…
Reference in New Issue
Block a user