Merge branch 'staging'

This commit is contained in:
Nikolay Amiantov
2017-10-19 12:46:38 +03:00
15 changed files with 88 additions and 39 deletions

View File

@@ -0,0 +1,12 @@
{ stdenv, callPackage, fetchurl, ... } @ args:
callPackage ./generic.nix (args // rec {
version = "1.65.1";
src = fetchurl {
url = "mirror://sourceforge/boost/boost_1_65_1.tar.bz2";
# SHA256 from http://www.boost.org/users/history/version_1_65_1.html
sha256 = "9807a5d16566c57fd74fb522764e0b134a8bbe6b6e8967b83afefd30dcd3be81";
};
})

View File

@@ -9,6 +9,8 @@
, enableStatic ? !enableShared
, enablePIC ? false
, enableExceptions ? false
, enablePython ? hostPlatform == buildPlatform
, enableNumpy ? false, numpy ? null
, taggedLayout ? ((enableRelease && enableDebug) || (enableSingleThreaded && enableMultiThreaded) || (enableShared && enableStatic))
, patches ? null
, mpi ? null
@@ -21,6 +23,9 @@
# We must build at least one type of libraries
assert !enableShared -> enableStatic;
assert enablePython -> hostPlatform == buildPlatform;
assert enableNumpy -> enablePython;
with stdenv.lib;
let
@@ -62,7 +67,8 @@ let
] ++ optional (link != "static") "runtime-link=${runtime-link}" ++ [
"link=${link}"
"${cflags}"
] ++ optional (variant == "release") "debug-symbols=off";
] ++ optional (variant == "release") "debug-symbols=off"
++ optional (!enablePython) "--without-python";
nativeB2Flags = [
"-sEXPAT_INCLUDE=${expat.dev}/include"
@@ -76,7 +82,6 @@ let
"-sEXPAT_LIBPATH=${expat.crossDrv}/lib"
"--user-config=user-config.jam"
"toolset=gcc-cross"
"--without-python"
] ++ optionals (hostPlatform.libc == "msvcrt") [
"target-os=windows"
"threadapi=win32"
@@ -148,8 +153,10 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
buildInputs = [ expat zlib bzip2 libiconv ]
++ stdenv.lib.optionals (hostPlatform == buildPlatform) [ python icu ]
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
++ optional (hostPlatform == buildPlatform) icu
++ optional stdenv.isDarwin fixDarwinDylibNames
++ optional enablePython python
++ optional enableNumpy numpy;
configureScript = "./bootstrap.sh";
configureFlags = commonConfigureFlags

View File

@@ -1,11 +1,11 @@
{ stdenv, fetchurl, pkgconfig, libpthreadstubs, libpciaccess, valgrind-light }:
stdenv.mkDerivation rec {
name = "libdrm-2.4.83";
name = "libdrm-2.4.84";
src = fetchurl {
url = "http://dri.freedesktop.org/libdrm/${name}.tar.bz2";
sha256 = "1minzvsyz5hgm6ixpj8ysa6jsv7vm8qc8nx390jxdsk0v9ljd983";
sha256 = "7ae9c24d91139ac9a2cdee06fe46dbe1c401a1eda1c0bd2a6d1ecf72f479e0aa";
};
outputs = [ "out" "dev" "bin" ];

View File

@@ -1,6 +1,13 @@
{ callPackage, ... } @ args:
args@{ callPackage, fetchpatch, ... }:
callPackage ./generic.nix (args // {
callPackage (import ./generic.nix {
version = "1.0.11";
sha256 = "17p34d3n29q04pvz975gfl1fyj3sg9cl5l6j673xqfq3fpyis58i";
})
patches = [
# Compatibility with new Boost
(fetchpatch {
url = "https://github.com/arvidn/libtorrent/commit/7eb3cf6bc6dbada3fa7bb7ff4d5981182813a0e2.patch";
sha256 = "07agbrii6i8q4wmgpqbln7ldhhadaf5npcinvi6hnyipsr48jbj5";
})
];
}) args

View File

@@ -1,6 +1,6 @@
{ callPackage, ... } @ args:
args@{ callPackage, ... }:
callPackage ./generic.nix (args // {
version = "1.1.4";
sha256 = "1rrp4b7zfz0fnjvax2r9r5rrh6z1s4xqb9dx20gzr4gs8x5v5jws";
})
callPackage (import ./generic.nix {
version = "1.1.5";
sha256 = "1ifpcqw5mj2dwk23lhc2vpb47mg3j573v5z4zp8dkczpz7wg5jxq";
}) args

View File

@@ -1,7 +1,7 @@
{ stdenv, fetchurl, automake, autoconf, boost, openssl, lib, libtool, pkgconfig, zlib, python, libiconv, geoip
# Version specific options
, version, sha256
, ... }:
{ version, sha256, patches ? [] }:
{ stdenv, fetchurl, automake, autoconf, boost, openssl, lib, libtool, pkgconfig, zlib, python, libiconv, geoip, ... }:
let formattedVersion = lib.replaceChars ["."] ["_"] version;
@@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
inherit sha256;
};
inherit patches;
nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
buildInputs = [ boost openssl zlib python libiconv geoip ];