mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
libtorrentRasterbar: multi outputs, install python2/3 bindings
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
937e402b35
commit
d8e62d202d
@ -1,11 +1,14 @@
|
||||
{ stdenv, lib, fetchFromGitHub, fetchpatch, pkgconfig, automake, autoconf, zlib
|
||||
, boost, openssl, libtool, python, libiconv, geoip }:
|
||||
{ stdenv, lib, fetchFromGitHub, fetchpatch, pkgconfig, automake, autoconf
|
||||
, zlib, boost, openssl, libtool, python, libiconv, geoip, ncurses
|
||||
}:
|
||||
|
||||
let
|
||||
version = "1.1.9";
|
||||
formattedVersion = lib.replaceChars ["."] ["_"] version;
|
||||
|
||||
boostPython = boost.override { enablePython = true; };
|
||||
# Make sure we override python, so the correct version is chosen
|
||||
# for the bindings, if overridden
|
||||
boostPython = boost.override { enablePython = true; inherit python; };
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
name = "libtorrent-rasterbar-${version}";
|
||||
@ -19,9 +22,16 @@ in stdenv.mkDerivation {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
|
||||
buildInputs = [ boostPython openssl zlib python libiconv geoip ];
|
||||
buildInputs = [ boostPython openssl zlib python libiconv geoip ncurses ];
|
||||
preConfigure = "./autotool.sh";
|
||||
|
||||
postInstall = ''
|
||||
moveToOutput "include" "$dev"
|
||||
moveToOutput "lib/${python.libPrefix}" "$python"
|
||||
'';
|
||||
|
||||
outputs = [ "out" "dev" "python" ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-python-binding"
|
||||
"--with-libgeoip=system"
|
||||
|
@ -17568,6 +17568,10 @@ EOF
|
||||
foundationdb60 = (toPythonModule (pkgs.fdbPackages.override {
|
||||
inherit python;
|
||||
}).foundationdb60).python;
|
||||
|
||||
libtorrentRasterbar = (toPythonModule (pkgs.libtorrentRasterbar.override {
|
||||
inherit python;
|
||||
})).python;
|
||||
});
|
||||
|
||||
in fix' (extends overrides packages)
|
||||
|
Loading…
Reference in New Issue
Block a user