1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

Merge branch 'master' into staging

* master: (26 commits)
  python.pkgs.cairocffi: update tests for Cairo 1.15.12
  python.pkgs.cairocffi: 0.8.0 -> 0.8.1
  freecell-solver: fix build
  perlPackages.CPANPLUS: restore build inputs removed in #41394
  Fix GHCJS 8.4/8.2 in sandboxed builds (#41411)
  dockerTools.pullImage: expose image* attributes (#41366)
  rust: disable tests on darwin
  python.pkgs.detox: 0.11 -> 0.12
  certbot: disable check on darwin
  freeimage: fix build with glibc 2.27
  shadowsocks-libev: supports darwin (#41421)
  pythonPackages.jira: fix build (#41419)
  SDL: propagate libiconv
  schema2ldif: Init at 1.3
  nixos/exim: Add unit restart trigger (#41418)
  Add myself as maintainer for dnsdist
  Add myself as maintainer
  synapse-bt: init at 2018-06-04 (#41402)
  skim: 0.3.2 -> 0.4.0 (#41417)
  ctags: fix source url (#41382)
  ...
This commit is contained in:
Orivej Desh 2018-06-04 03:50:03 +00:00
commit 4869ddf883
27 changed files with 229 additions and 43 deletions

View file

@ -58,6 +58,11 @@
github = "DamienCassou";
name = "Damien Cassou";
};
das_j = {
email = "janne@hess.ooo";
github = "dasJ";
name = "Janne Heß";
};
DerGuteMoritz = {
email = "moritz@twoticketsplease.de";
github = "DerGuteMoritz";

View file

@ -94,6 +94,7 @@ in
systemd.services.exim = {
description = "Exim Mail Daemon";
wantedBy = [ "multi-user.target" ];
restartTriggers = [ config.environment.etc."exim.conf".source ];
serviceConfig = {
ExecStart = "${exim}/bin/exim -bdf -q30m";
ExecReload = "${coreutils}/bin/kill -HUP $MAINPID";

View file

@ -276,12 +276,12 @@ in
idea-community = buildIdea rec {
name = "idea-community-${version}";
version = "2018.1.3"; /* updated by script */
version = "2018.1.4"; /* updated by script */
description = "Integrated Development Environment (IDE) by Jetbrains, community edition";
license = stdenv.lib.licenses.asl20;
src = fetchurl {
url = "https://download.jetbrains.com/idea/ideaIC-${version}.tar.gz";
sha256 = "0ws5s8bvjpz60pdyak3vb22x27qi00ajxx18wia1hql8831gsk3m"; /* updated by script */
sha256 = "1qb425wg4690474g348yizhkcqcgigz2synp4blcfv4p0pg79ri6"; /* updated by script */
};
wmClass = "jetbrains-idea-ce";
update-channel = "IDEA_Release";
@ -289,12 +289,12 @@ in
idea-ultimate = buildIdea rec {
name = "idea-ultimate-${version}";
version = "2018.1.3"; /* updated by script */
version = "2018.1.4"; /* updated by script */
description = "Integrated Development Environment (IDE) by Jetbrains, requires paid license";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/idea/ideaIU-${version}-no-jdk.tar.gz";
sha256 = "14h71x3jidwiwv73g48f6bd0y4p3s33jb4wdr5grdhm677pqb702"; /* updated by script */
sha256 = "0jn771z09bscnk283kwrki0zyzhh4v4n6mr2swbd0ccs9v12dx71"; /* updated by script */
};
wmClass = "jetbrains-idea";
update-channel = "IDEA_Release";

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkgconfig, libtool
, bzip2, zlib, libX11, libXext, libXt, fontconfig, freetype, ghostscript, libjpeg
, lcms2, openexr, libpng, librsvg, libtiff, libxml2, openjpeg, libwebp
, lcms2, openexr, libpng, librsvg, libtiff, libxml2, openjpeg, libwebp, fftw
, ApplicationServices
, buildPlatform, hostPlatform
}:
@ -73,7 +73,7 @@ stdenv.mkDerivation rec {
++ lib.optional stdenv.isDarwin ApplicationServices;
propagatedBuildInputs =
[ bzip2 freetype libjpeg lcms2 ]
[ bzip2 freetype libjpeg lcms2 fftw ]
++ lib.optionals (!hostPlatform.isMinGW)
[ libX11 libXext libXt libwebp ]
;
@ -101,5 +101,6 @@ stdenv.mkDerivation rec {
description = "A software suite to create, edit, compose, or convert bitmap images";
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ the-kenny wkennington ];
license = licenses.asl20;
};
}

View file

@ -1,19 +1,23 @@
{ stdenv, fetchurl, cmake, coin3d, xercesc, ode, eigen, qt4, opencascade, gts
, boost, zlib, python27Packages, swig, gfortran, soqt, libf2c, makeWrapper, makeDesktopItem }:
, hdf5, vtk, medfile, boost, zlib, python27Packages, swig, gfortran
, soqt, libf2c, makeWrapper, makeDesktopItem
, mpi ? null }:
assert mpi != null;
let
pythonPackages = python27Packages;
in stdenv.mkDerivation rec {
name = "freecad-${version}";
version = "0.16.6712";
version = "0.17";
src = fetchurl {
url = "https://github.com/FreeCAD/FreeCAD/archive/${version}.tar.gz";
sha256 = "14hs26gvv7gbg9misxq34v4nrds2sbxjhj4yyw5kq3zbvl517alp";
sha256 = "1yv6abdzlpn4wxy315943xwrnbywxqfgkjib37qwfvbb8y9p60df";
};
buildInputs = with pythonPackages; [ cmake coin3d xercesc ode eigen qt4 opencascade gts boost
zlib python swig gfortran soqt libf2c makeWrapper matplotlib
zlib python swig gfortran soqt libf2c makeWrapper matplotlib mpi vtk hdf5 medfile
pycollada pyside pysideShiboken pysideTools pivy
];

View file

@ -0,0 +1,27 @@
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl }:
rustPlatform.buildRustPackage rec {
name = "synapse-bt-unstable-${version}";
version = "2018-06-04";
src = fetchFromGitHub {
owner = "Luminarys";
repo = "synapse";
rev = "ec8f23a14af21426ab0c4f8953dd954f747850ab";
sha256 = "0d1rrwnk333zz9g8s40i75xgdkpz6a1j01ajsh32yvzvbi045zkw";
};
cargoSha256 = "1psrmgf6ddzqwx7gf301rx84asfnvxpsvkx2fan453v65819k960";
buildInputs = [ pkgconfig openssl ];
cargoBuildFlags = [ "--all" ];
meta = with stdenv.lib; {
description = "Flexible and fast BitTorrent daemon";
homepage = https://synapse-bt.org/;
license = licenses.isc;
maintainers = with maintainers; [ dywedir ];
platforms = platforms.all;
};
}

View file

@ -47,6 +47,8 @@ rec {
}:
runCommand name {
inherit imageName imageDigest;
imageTag = finalImageTag;
impureEnvVars = pkgs.stdenv.lib.fetchers.proxyImpureEnvVars;
outputHashMode = "flat";
outputHashAlgo = "sha256";

View file

@ -6,6 +6,8 @@
, cabal-install
, gmp
, runCommand
, lib
, stdenv
, ghc
, happy
@ -20,15 +22,18 @@ runCommand "configured-ghcjs-src" {
autoconf
automake
python3
gcc
ghc
happy
alex
cabal-install
] ++ lib.optionals stdenv.isDarwin [
gcc # https://github.com/ghcjs/ghcjs/issues/663
];
inherit ghcjsSrc;
} ''
export HOME=$(pwd)
mkdir $HOME/.cabal
touch $HOME/.cabal/config
cp -r "$ghcjsSrc" "$out"
chmod -R +w "$out"
cd "$out"

View file

@ -50,13 +50,10 @@ let
};
bootGhcjs = haskellLib.justStaticExecutables passthru.bootPkgs.ghcjs;
libexec =
if builtins.compareVersions bootGhcjs.version "8.3" <= 0
then "${bootGhcjs}/bin"
else "${bootGhcjs}/libexec/${builtins.replaceStrings ["darwin"] ["osx"] stdenv.system}-${passthru.bootPkgs.ghc.name}/${bootGhcjs.name}";
libexec = "${bootGhcjs}/libexec/${builtins.replaceStrings ["darwin"] ["osx"] stdenv.system}-${passthru.bootPkgs.ghc.name}/${bootGhcjs.name}";
in stdenv.mkDerivation {
name = "ghcjs";
name = bootGhcjs.name;
src = passthru.configuredSrc;
nativeBuildInputs = [
bootGhcjs
@ -73,6 +70,8 @@ in stdenv.mkDerivation {
phases = ["unpackPhase" "buildPhase"];
buildPhase = ''
export HOME=$TMP
mkdir $HOME/.cabal
touch $HOME/.cabal/config
cd lib/boot
mkdir -p $out/bin

View file

@ -10,7 +10,11 @@
, targets
, targetPatches
, targetToolchains
, doCheck ? true
# Tests frequently break on Darwin
# See the rust issue: https://github.com/rust-lang/rust/issues/51006
, doCheck ? (!stdenv.isDarwin)
, broken ? false
, buildPlatform, hostPlatform
} @ args:

View file

@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ ]
propagatedBuildInputs = [ libiconv ]
++ optionals x11Support [ libXext libICE libXrandr ]
++ optional stdenv.isLinux libcap
++ optionals openglSupport [ libGL libGLU ]
@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
++ optional pulseaudioSupport libpulseaudio
++ optional stdenv.isDarwin Cocoa;
buildInputs = [ libiconv ]
buildInputs = [ ]
++ optional (!hostPlatform.isMinGW) audiofile
++ optionals stdenv.isDarwin [ AudioUnit CoreAudio CoreServices Kernel OpenGL ];
@ -119,6 +119,8 @@ stdenv.mkDerivation rec {
passthru = { inherit openglSupport; };
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "A cross-platform multimedia library";
homepage = "http://www.libsdl.org/";

View file

@ -19,6 +19,10 @@ stdenv.mkDerivation {
url = patchURL + "/Fix-CVE-2016-5684.patch";
sha256 = "14ffgqbnwg28r6sjvm3z89zbnnm9ghbc81hdhrzxlyk3vwvd6cw3";
})
(fetchurl {
url = https://raw.githubusercontent.com/buildroot/buildroot/2018.05/package/libfreeimage/0005-Manage-powf64-with-glibc.patch;
sha256 = "1lis479ad5cfkhqm044nk4x97wfwm3hry3bvij1w5xkndnlfppc2";
})
];
buildInputs = [ unzip ] ++ stdenv.lib.optional stdenv.isDarwin darwin.cctools;
@ -57,6 +61,8 @@ stdenv.mkDerivation {
NIX_CFLAGS_COMPILE = "-Wno-narrowing";
enableParallelBuilding = true;
meta = {
description = "Open Source library for accessing popular graphics image file formats";
homepage = http://freeimage.sourceforge.net/;

View file

@ -0,0 +1,24 @@
{ stdenv, fetchurl, cmake, hdf5 }:
stdenv.mkDerivation rec {
name = "medfile-${version}";
version = "3.3.1";
src = fetchurl {
url = "http://files.salome-platform.org/Salome/other/med-${version}.tar.gz";
sha256 = "1215sal10xp6xirgggdszay2bmx0sxhn9pgh7x0wg2w32gw1wqyx";
};
buildInputs = [ cmake hdf5 ];
checkPhase = "make test";
postInstall = "rm -r $out/bin/testc";
meta = with stdenv.lib; {
description = "Library to read and write MED files";
homepage = http://salome-platform.org/;
platforms = platforms.linux;
license = licenses.lgpl3Plus;
};
}

View file

@ -0,0 +1,24 @@
diff --git a/cairocffi/test_cairo.py b/cairocffi/test_cairo.py
index 1588349..5452910 100644
--- a/cairocffi/test_cairo.py
+++ b/cairocffi/test_cairo.py
@@ -292,7 +292,8 @@ def test_pdf_surface():
pdf_bytes = file_obj.getvalue()
assert pdf_bytes.startswith(b'%PDF')
assert b'/MediaBox [ 0 0 123 432 ]' in pdf_bytes
- assert pdf_bytes.count(b'/Type /Page\n') == 1
+ assert pdf_bytes.count(b'/Type /Pages') == 1
+ assert pdf_bytes.count(b'/Type /Page') == 2
file_obj = io.BytesIO()
surface = PDFSurface(file_obj, 1, 1)
@@ -306,7 +307,8 @@ def test_pdf_surface():
assert b'/MediaBox [ 0 0 1 1 ]' not in pdf_bytes
assert b'/MediaBox [ 0 0 12 100 ]' in pdf_bytes
assert b'/MediaBox [ 0 0 42 700 ]' in pdf_bytes
- assert pdf_bytes.count(b'/Type /Page\n') == 2
+ assert pdf_bytes.count(b'/Type /Pages') == 1
+ assert pdf_bytes.count(b'/Type /Page') == 3
def test_svg_surface():

View file

@ -16,11 +16,11 @@
buildPythonPackage rec {
pname = "cairocffi";
version = "0.8.0";
version = "0.8.1";
src = fetchPypi {
inherit pname version;
sha256 = "0i9m3p39g9wrkpjvpawch2qmnmm3cnim7niz3nmmbcp2hrkixwk5";
sha256 = "0y373vafv7q35msg7gqdn7niifr3j4j4n070hflxshahs59irss7";
};
LC_ALL = "en_US.UTF-8";
@ -47,6 +47,7 @@ buildPythonPackage rec {
gdk_pixbuf = gdk_pixbuf.out;
})
./fix_test_scaled_font.patch
./cairocffi-0.8.1-cairo-1.15.12.patch
];
meta = with lib; {

View file

@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "detox";
version = "0.11";
version = "0.12";
src = fetchPypi {
inherit pname version;
sha256 = "4719ca48c4ea5ffd908b1bc3d5d1b593b41e71dee17180d58d8a3e7e8f588d45";
sha256 = "06svvkszg6xlg0fr471smn4rmpfga960d6qqsyhyiwa48k59n4gk";
};
buildInputs = [ pytest ];

View file

@ -1,29 +1,35 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k
, pytest, pytestrunner, pbr, glibcLocales , pytestcov
, requests, requests_oauthlib, requests_toolbelt, defusedxml }:
, requests, requests_oauthlib, requests_toolbelt, defusedxml
, ipython
}:
buildPythonPackage rec {
pname = "jira";
version = "1.0.15";
PBR_VERSION = version;
src = fetchPypi {
inherit pname version;
sha256 = "20108a1d5b0dd058d5d4e0047f2d09ee06aaa413b22ca4d5c249e86167417fe8";
};
buildInputs = [ glibcLocales pytest pytestcov pytestrunner pbr ];
propagatedBuildInputs = [ requests requests_oauthlib requests_toolbelt defusedxml ];
propagatedBuildInputs = [ requests requests_oauthlib requests_toolbelt defusedxml pbr ipython ];
# impure tests because of connectivity attempts to jira servers
doCheck = false;
patches = [ ./sphinx-fix.patch ];
LC_ALL = "en_US.utf8";
disabled = !isPy3k;
# no tests in release tarball
doCheck = false;
meta = with lib; {
description = "This library eases the use of the JIRA REST API from Python.";
license = licenses.bsd2;
maintainers = with maintainers; [ globin ];
maintainers = with maintainers; [ globin ma27 ];
};
}

View file

@ -0,0 +1,11 @@
diff --git a/setup.py b/setup.py
index c49a24d..31aeec2 100644
--- a/setup.py
+++ b/setup.py
@@ -11,5 +11,5 @@ except ImportError:
setuptools.setup(
- setup_requires=['pbr>=3.0.0', 'setuptools>=17.1', 'pytest-runner', 'sphinx>=1.6.5'],
+ setup_requires=['pbr>=3.0.0', 'setuptools>=17.1', 'pytest-runner'],
pbr=True)

View file

@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
revision = "816";
src = fetchsvn {
url = "https://ctags.svn.sourceforge.net/svnroot/ctags/trunk";
url = https://svn.code.sf.net/p/ctags/code/trunk;
rev = revision;
sha256 = "0jmbkrmscbl64j71qffcc39x005jrmphx8kirs1g2ws44wil39hf";
};

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl, pkgconfig, cmake
, perl, gmp, libtap, gperf
, perlPackages, python3Packages }:
, perlPackages, python3 }:
with stdenv.lib;
stdenv.mkDerivation rec{
@ -13,11 +13,20 @@ stdenv.mkDerivation rec{
sha256 = "1cmaib69pijmcpvgjvrdry8j4xys8l906l80b8z21vvyhdwrfdnn";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake perl gmp libtap gperf
perlPackages.TemplateToolkit perlPackages.StringShellQuote
perlPackages.GamesSolitaireVerify perlPackages.TaskFreecellSolverTesting
python3Packages.python python3Packages.random2 ];
nativeBuildInputs = [
cmake perl pkgconfig
] ++ (with perlPackages; TaskFreecellSolverTesting.buildInputs ++ [
GamesSolitaireVerify StringShellQuote TaskFreecellSolverTesting TemplateToolkit
]);
buildInputs = [
gmp libtap gperf
python3 python3.pkgs.random2
];
# "ninja t/CMakeFiles/delta-states-test.t.exe.dir/__/delta_states.c.o" fails
# to depend on the generated "is_king.h".
enableParallelBuilding = false;
meta = {
description = "A FreeCell automatic solver";

View file

@ -30,5 +30,6 @@
description = "DNS Loadbalancer";
homepage = "https://dnsdist.org";
license = licenses.gpl2;
maintainers = with maintainers; [ das_j ];
};
}

View file

@ -42,6 +42,8 @@ pythonPackages.buildPythonApplication rec {
done
'';
doCheck = !stdenv.isDarwin; # On Hydra Darwin tests fail with "Too many open files".
meta = with stdenv.lib; {
homepage = src.meta.homepage;
description = "ACME client that can obtain certs and extensibly update server configurations";

View file

@ -2,18 +2,18 @@
rustPlatform.buildRustPackage rec {
name = "skim-${version}";
version = "0.3.2";
version = "0.4.0";
src = fetchFromGitHub {
owner = "lotabout";
repo = "skim";
rev = "v${version}";
sha256 = "0spkkgjjrch1grb0115rn0wxzsh8pzmm96a7j69zy5pc1il2m5lp";
sha256 = "067ds1sdi9ya1yqz9saczj1vml8arwzd46w35gmvdxgmxx4wmihs";
};
outputs = [ "out" "vim" ];
cargoSha256 = "0zbjnii8r41ih2m2vqhm3wdiwgi13kipvxx75sg4vm4maf4wpmhv";
cargoSha256 = "18lgjh1b1wfm9xsd6y6slfj1i3dwrvzkzszdzk3lmqx1f8515gx7";
patchPhase = ''
sed -i -e "s|expand('<sfile>:h:h')|'$out'|" plugin/skim.vim
@ -37,7 +37,7 @@ rustPlatform.buildRustPackage rec {
description = "Fuzzy Finder in rust!";
homepage = https://github.com/lotabout/skim;
license = licenses.mit;
maintainers = [];
maintainers = with maintainers; [ dywedir ];
platforms = platforms.all;
};
}

View file

@ -24,6 +24,19 @@ stdenv.mkDerivation rec {
cp lib/* $out/lib
chmod +x $out/bin/*
mv $out/pkgconfig $out/lib
${stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -change libcork.dylib $out/lib/libcork.dylib $out/lib/libipset.dylib
install_name_tool -change libbloom.dylib $out/lib/libbloom.dylib $out/lib/libipset.dylib
for exe in $out/bin/*; do
install_name_tool -change libmbedtls.dylib ${mbedtls}/lib/libmbedtls.dylib $exe
install_name_tool -change libmbedcrypto.dylib ${mbedtls}/lib/libmbedcrypto.dylib $exe
install_name_tool -change libcork.dylib $out/lib/libcork.dylib $exe
install_name_tool -change libipset.dylib $out/lib/libipset.dylib $exe
install_name_tool -change libbloom.dylib $out/lib/libbloom.dylib $exe
done
''}
'';
meta = with stdenv.lib; {
@ -35,6 +48,6 @@ stdenv.mkDerivation rec {
homepage = https://github.com/shadowsocks/shadowsocks-libev;
license = licenses.gpl3Plus;
maintainers = [ maintainers.nfjinjing ];
platforms = platforms.linux;
platforms = platforms.all;
};
}

View file

@ -0,0 +1,31 @@
{ stdenv, fetchurl, makeWrapper, perl, perlPackages }: stdenv.mkDerivation rec {
name = "schema2ldif-${version}";
version = "1.3";
src = fetchurl {
url = "https://repos.fusiondirectory.org/sources/schema2ldif/schema2ldif-${version}.tar.gz";
sha256 = "00cd9xx9g0mnnfn5lvay3vg166z84jla0ya1x34ljdc8bflxsr9a";
};
buildInputs = [ perl ];
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin $out/share/man/man1
cp bin/{schema2ldif,ldap-schema-manager} $out/bin
gzip -c man/schema2ldif.1 > $out/share/man/man1/schema2ldif.1.gz
gzip -c man/ldap-schema-manager.1 > $out/share/man/man1/ldap-schema-manager.1.gz
wrapProgram $out/bin/schema2ldif \
--prefix PERL5PATH : "${stdenv.lib.makePerlPath [ perlPackages.GetoptLong perlPackages.PodUsage ]}"
'';
meta = with stdenv.lib; {
description = "Utilities to manage schema in .schema and .ldif format";
homepage = "https://www.fusiondirectory.org/schema2ldif-project-and-components/";
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = with maintainers; [ das_j ];
};
}

View file

@ -3370,6 +3370,10 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
medfile = callPackage ../development/libraries/medfile {
hdf5 = hdf5_1_8;
};
memtester = callPackage ../tools/system/memtester { };
minergate = callPackage ../applications/misc/minergate { };
@ -4911,6 +4915,8 @@ with pkgs;
sharutils = callPackage ../tools/archivers/sharutils { };
schema2ldif = callPackage ../tools/text/schema2ldif { };
shocco = callPackage ../tools/text/shocco { };
shotwell = callPackage ../applications/graphics/shotwell { };
@ -15972,7 +15978,7 @@ with pkgs;
fomp = callPackage ../applications/audio/fomp { };
freecad = callPackage ../applications/graphics/freecad { };
freecad = callPackage ../applications/graphics/freecad { mpi = openmpi; };
freemind = callPackage ../applications/misc/freemind { };
@ -17135,6 +17141,8 @@ with pkgs;
inherit (gnome3) libgee;
};
synapse-bt = callPackage ../applications/networking/p2p/synapse-bt { };
synfigstudio = callPackage ../applications/graphics/synfigstudio {
fontsConf = makeFontsConf { fontDirectories = [ freefont_ttf ]; };
inherit (gnome3) defaultIconTheme;

View file

@ -2920,7 +2920,7 @@ let self = _self // overrides; _self = with self; {
url = "mirror://cpan/authors/id/B/BI/BINGOS/${name}.tar.gz";
sha256 = "1ahddfs9jc2z3h7z6lkf9ppmrgw2kjnzcpbrhvwq3rlpxa9xshhq";
};
doCheck = false;
propagatedBuildInputs = [ ArchiveExtract LogMessage ModulePluggable ObjectAccessor PackageConstants ];
meta = {
homepage = https://github.com/jib/cpanplus-devel;
description = "Ameliorated interface to the CPAN";