mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
foundationdb: install python bindings
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
8d184e14e4
commit
aa79ae0c64
@ -295,7 +295,6 @@ only undergone fairly basic testing of all the available functionality.</para>
|
||||
individual <command>fdbserver</command> processes. Currently, all server
|
||||
processes inherit all the global <command>fdbmonitor</command> settings.
|
||||
</para></listitem>
|
||||
<listitem><para>Python bindings are not currently installed.</para></listitem>
|
||||
<listitem><para>Ruby bindings are not currently installed.</para></listitem>
|
||||
<listitem><para>Go bindings are not currently installed.</para></listitem>
|
||||
</itemizedlist>
|
||||
|
@ -88,7 +88,7 @@ let
|
||||
separateDebugInfo = true;
|
||||
enableParallelBuilding = true;
|
||||
|
||||
makeFlags = [ "all" "fdb_java" ]
|
||||
makeFlags = [ "all" "fdb_java" "fdb_python" ]
|
||||
# Don't compile FDBLibTLS if we don't need it in 6.0 or later;
|
||||
# it gets statically linked in
|
||||
++ lib.optional (!lib.versionAtLeast version "6.0") [ "fdb_c" ]
|
||||
@ -106,17 +106,28 @@ let
|
||||
|
||||
installPhase = ''
|
||||
mkdir -vp $out/{bin,libexec/plugins} $lib/{lib,share/java} $dev/include/foundationdb
|
||||
mkdir -vp $python/lib/${python.libPrefix}/site-packages
|
||||
|
||||
cp -v ./lib/libfdb_c.so $lib/lib
|
||||
'' + lib.optionalString (!lib.versionAtLeast version "6.0") ''
|
||||
# we only copy the TLS library on < 6.0, since it's compiled-in otherwise
|
||||
cp -v ./lib/libFDBLibTLS.so $out/libexec/plugins/FDBLibTLS.so
|
||||
'' + ''
|
||||
|
||||
# C API
|
||||
cp -v ./lib/libfdb_c.so $lib/lib
|
||||
cp -v ./bindings/c/foundationdb/fdb_c.h $dev/include/foundationdb
|
||||
cp -v ./bindings/c/foundationdb/fdb_c_options.g.h $dev/include/foundationdb
|
||||
|
||||
# java
|
||||
cp -v ./bindings/java/foundationdb-client.jar $lib/share/java/fdb-java.jar
|
||||
|
||||
# python
|
||||
rm -f ./bindings/python/fdb/*.pth # remove useless files
|
||||
cp -R ./bindings/python/fdb $python/lib/${python.libPrefix}/site-packages/fdb
|
||||
# symlink a copy of the shared object into place, so that impl.py can load it
|
||||
ln -sv $lib/lib/libfdb_c.so $python/lib/${python.libPrefix}/site-packages/fdb/libfdb_c.so
|
||||
|
||||
# binaries
|
||||
for x in fdbbackup fdbcli fdbserver fdbmonitor; do
|
||||
cp -v "./bin/$x" $out/bin;
|
||||
done
|
||||
@ -128,7 +139,7 @@ let
|
||||
ln -sfv $out/bin/fdbbackup $out/libexec/backup_agent
|
||||
'';
|
||||
|
||||
outputs = [ "out" "lib" "dev" ];
|
||||
outputs = [ "out" "lib" "dev" "python" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Open source, distributed, transactional key-value store";
|
||||
|
@ -17554,6 +17554,18 @@ EOF
|
||||
})).python;
|
||||
|
||||
rfc7464 = callPackage ../development/python-modules/rfc7464 { };
|
||||
|
||||
foundationdb51 = (toPythonModule (pkgs.fdbPackages.override {
|
||||
inherit python;
|
||||
}).foundationdb51).python;
|
||||
|
||||
foundationdb52 = (toPythonModule (pkgs.fdbPackages.override {
|
||||
inherit python;
|
||||
}).foundationdb52).python;
|
||||
|
||||
foundationdb60 = (toPythonModule (pkgs.fdbPackages.override {
|
||||
inherit python;
|
||||
}).foundationdb60).python;
|
||||
});
|
||||
|
||||
in fix' (extends overrides packages)
|
||||
|
Loading…
Reference in New Issue
Block a user