Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
dtzWill committed Apr 25, 2018
2 parents 4b2f397 + 7e33e37 commit f07f0c6
Show file tree
Hide file tree
Showing 33 changed files with 1,518 additions and 83 deletions.
9 changes: 9 additions & 0 deletions pkgs/applications/audio/rhythmbox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ in stdenv.mkDerivation rec {
sha256 = "0hzcns8gf5yb0rm4ss8jd8qzarcaplp5cylk6plwilsqfvxj4xn2";
};

patches = [
# build with GStreamer 1.14 https://bugzilla.gnome.org/show_bug.cgi?id=788706
(fetchurl {
name = "fmradio-Fix-build-with-GStreamer-master.patch";
url = https://bugzilla.gnome.org/attachment.cgi?id=361178;
sha256 = "1h09mimlglj9hcmc3pfp0d6c277mqh2khwv9fryk43pkv3904d2w";
})
];

nativeBuildInputs = [
pkgconfig
intltool perl perlPackages.XMLParser
Expand Down
15 changes: 5 additions & 10 deletions pkgs/applications/editors/eclipse/plugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -530,18 +530,13 @@ rec {
};
};

spotbugs = buildEclipsePlugin rec {
spotbugs = buildEclipseUpdateSite rec {
name = "spotbugs-${version}";
version = "3.1.2.r201802250230-59118d9";
version = "3.1.3";

srcFeature = fetchurl {
url = "https://spotbugs.github.io/eclipse/features/com.github.spotbugs.plugin.eclipse_${version}.jar";
sha256 = "1p0pz7znpfi5h1wr60sl8clkpd7rzkh7krmc0nxc6w43gkgkg9h4";
};

srcPlugin = fetchurl {
url = "https://spotbugs.github.io/eclipse/plugins/com.github.spotbugs.plugin.eclipse_${version}.jar";
sha256 = "1z3jjbcjif4qip1gx2dhfcm9fyhps96ms7z3ngbdcakgw7wai9v4";
src = fetchzip {
url = "https://github.com/spotbugs/spotbugs/releases/download/${version}/eclipsePlugin.zip";
sha256 = "01zrmk497bxzqgwgbpsvi5iz5qk9b4q949h4918abm54zvkgndlg";
};

meta = with stdenv.lib; {
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/misc/alacritty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ let
];
in buildRustPackage rec {
name = "alacritty-unstable-${version}";
version = "2018-03-04";
version = "2018-04-16";

# At the moment we cannot handle git dependencies in buildRustPackage.
# This fork only replaces rust-fontconfig/libfontconfig with a git submodules.
src = fetchgit {
url = https://github.com/Mic92/alacritty.git;
rev = "rev-${version}";
sha256 = "0pxnc6r75c7rwnsqc0idi4a60arpgchl1i8yppibhv0px5w11mwa";
sha256 = "14qsfaij631pk0gxrhmp594f72v0z7kzymf4hnqv4k5w9xlxciwx";
fetchSubmodules = true;
};

cargoSha256 = "0q2yy9cldng8znkmhysgrwi43z2x7a8nb1bnxpy9z170q8ds0m0j";
cargoSha256 = "0gg28fbx0kisv7hqxgzqhv4z4ikk074djfjlj90nmmi4nddp017p";

nativeBuildInputs = [
cmake
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/latte-dock/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ mkDerivation, lib, cmake, xorg, plasma-framework, fetchFromGitHub
, extra-cmake-modules, karchive, kwindowsystem, qtx11extras, kcrash }:

let version = "0.7.4"; in
let version = "0.7.5"; in

mkDerivation {
name = "latte-dock-${version}";
Expand All @@ -10,7 +10,7 @@ mkDerivation {
owner = "psifidotos";
repo = "Latte-Dock";
rev = "v${version}";
sha256 = "0w4fphgpdvql31wrypxyfahmr4cv5ap96wjc4270yyawnrqrx0y6";
sha256 = "0fblbx6qk4miag1mhiyns7idsw03p9pj3xc3xxxnb5rpj1fy0ifv";
};

buildInputs = [ plasma-framework xorg.libpthreadstubs xorg.libXdmcp xorg.libSM ];
Expand Down
7 changes: 4 additions & 3 deletions pkgs/applications/misc/orca/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, lib, pkgconfig, fetchurl, buildPythonApplication
, autoreconfHook, wrapGAppsHook
, autoreconfHook, wrapGAppsHook, gobjectIntrospection
, intltool, yelp-tools, itstool, libxmlxx3
, python, pygobject3, gtk3, gnome3, substituteAll
, at-spi2-atk, at-spi2-core, pyatspi, dbus, dbus-python, pyxdg
Expand Down Expand Up @@ -30,11 +30,12 @@ in buildPythonApplication rec {

nativeBuildInputs = [
autoreconfHook wrapGAppsHook pkgconfig libxmlxx3
intltool yelp-tools itstool
intltool yelp-tools itstool gobjectIntrospection
];

propagatedBuildInputs = [
pygobject3 pyatspi dbus-python pyxdg brltty liblouis speechd gst-python setproctitle
# TODO: re-add liblouis when it is fixed
pygobject3 pyatspi dbus-python pyxdg brltty speechd gst-python setproctitle
];

buildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/pcmanfm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ let
inherit (stdenv.lib) optional;
in
stdenv.mkDerivation rec {
name = "pcmanfm-1.2.5";
name = "pcmanfm-1.3.0";
src = fetchurl {
url = "mirror://sourceforge/pcmanfm/${name}.tar.xz";
sha256 = "0rxdh0dfzc84l85c54blq42gczygq8adhr3l9hqzy1dp530cm1hc";
sha256 = "1ywgfyklms5hqkapsbjps4kyx20ac0d1qk16ww74yagkyfdkwsas";
};

buildInputs = [ glib gtk libfm' libX11 pango gnome3.defaultIconTheme ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
, gsm, speex, portaudio, spandsp, libuuid, ccache, libvpx
}:
stdenv.mkDerivation rec {
version = "0.5.8";
version = "0.5.9";
name = "baresip-${version}";
src=fetchurl {
url = "http://www.creytiv.com/pub/baresip-${version}.tar.gz";
sha256 = "0qk6y83mm7cz4j66d7zy72l7890k7ifqnqbqnjd3bjfn1yjivwfr";
sha256 = "02bf4fwirf3b7h3cr1jqm0xsjzza4fi9kg88424js2l0xywwzpgf";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [zlib openssl libre librem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
}:

stdenv.mkDerivation rec {
name = "dino-unstable-2018-03-10";
name = "dino-unstable-2018-04-19";

src = fetchFromGitHub {
owner = "dino";
repo = "dino";
rev = "4ccdc1d0920a93b313d81b4014b6f45efb49b1fe";
sha256 = "0d9698zi09s107zva6cgip7xxmdby0zfmqvka4n0khxrsnii5awq";
rev = "e80da806022d8aaa32f77f3c7f0333cc1c80829b";
sha256 = "04z4k1s4ck6vmbzlbpiw096ny0wpj4zi3cd0iv9vb2iwdj22gibm";
fetchSubmodules = true;
};

Expand Down
52 changes: 32 additions & 20 deletions pkgs/applications/version-management/git-and-tools/git/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{ fetchurl, stdenv, curl, openssl, zlib, expat, perl, python, gettext, cpio
{ fetchurl, stdenv, buildPackages
, curl, openssl, zlib, expat, perl, python, gettext, cpio
, gnugrep, gnused, gawk, coreutils # needed at runtime by git-filter-branch etc
, openssh, pcre2
, asciidoc, texinfo, xmlto, docbook2x, docbook_xsl, docbook_xml_dtd_45
, libxslt, tcl, tk, makeWrapper, libiconv
, svnSupport, subversionClient, perlLibs, smtpPerlLibs
, perlSupport ? true
, guiSupport
, withManual ? true
, pythonSupport ? true
Expand All @@ -12,9 +14,12 @@
, darwin
}:

assert sendEmailSupport -> perlSupport;
assert svnSupport -> perlSupport;

let
version = "2.16.3";
svn = subversionClient.override { perlBindings = true; };
svn = subversionClient.override { perlBindings = perlSupport; };
in

stdenv.mkDerivation {
Expand All @@ -25,7 +30,7 @@ stdenv.mkDerivation {
sha256 = "0j1dwvg5llnj3g0fp8hdgpms4hp90qw9f6509vqw30dhwplrjpfn";
};

outputs = [ "out" "gitweb" ];
outputs = [ "out" ] ++ stdenv.lib.optional perlSupport "gitweb";

hardeningDisable = [ "format" ];

Expand All @@ -44,9 +49,11 @@ stdenv.mkDerivation {
done
'';

buildInputs = [curl openssl zlib expat gettext cpio makeWrapper libiconv perl]
nativeBuildInputs = [ gettext perl ]
++ stdenv.lib.optionals withManual [ asciidoc texinfo xmlto docbook2x
docbook_xsl docbook_xml_dtd_45 libxslt ]
docbook_xsl docbook_xml_dtd_45 libxslt ];
buildInputs = [curl openssl zlib expat cpio makeWrapper libiconv]
++ stdenv.lib.optionals perlSupport [ perl ]
++ stdenv.lib.optionals guiSupport [tcl tk]
++ stdenv.lib.optionals withpcre2 [ pcre2 ]
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.Security ];
Expand All @@ -56,19 +63,25 @@ stdenv.mkDerivation {
NIX_LDFLAGS = stdenv.lib.optionalString (!stdenv.cc.isClang) "-lgcc_s"
+ stdenv.lib.optionalString (stdenv.isFreeBSD) "-lthr";

configureFlags = stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"ac_cv_fread_reads_directories=yes"
"ac_cv_snprintf_returns_bogus=no"
];

preBuild = ''
makeFlagsArray+=( perllibdir=$out/$(perl -MConfig -wle 'print substr $Config{installsitelib}, 1 + length $Config{siteprefixexp}') )
'';

makeFlags = stdenv.lib.concatStringsSep " " [
makeFlags = [
"prefix=\${out}"
"PERL_PATH=${perl}/bin/perl"
"SHELL_PATH=${stdenv.shell}"
(if pythonSupport then "PYTHON_PATH=${python}/bin/python" else "NO_PYTHON=1")
(if stdenv.isSunOS then "INSTALL=install NO_INET_NTOP= NO_INET_PTON=" else "")
(if stdenv.isDarwin then "NO_APPLE_COMMON_CRYPTO=1" else "sysconfdir=/etc/ ")
(if stdenv.hostPlatform.isMusl then "NO_SYS_POLL_H=1 NO_GETTEXT=YesPlease" else "")
];
]
++ (if perlSupport then ["PERL_PATH=${perl}/bin/perl"] else ["NO_PERL=1"])
++ (if pythonSupport then ["PYTHON_PATH=${python}/bin/python"] else ["NO_PYTHON=1"])
++ stdenv.lib.optionals stdenv.isSunOS ["INSTALL=install" "NO_INET_NTOP=" "NO_INET_PTON="]
++ (if stdenv.isDarwin then ["NO_APPLE_COMMON_CRYPTO=1"] else ["sysconfdir=/etc/"])
++ stdenv.lib.optionals stdenv.hostPlatform.isMusl ["NO_SYS_POLL_H=1" "NO_GETTEXT=YesPlease"]
++ stdenv.lib.optional withpcre2 "USE_LIBPCRE2=1";

# build git-credential-osxkeychain if darwin
postBuild = stdenv.lib.optionalString stdenv.isDarwin ''
Expand All @@ -81,9 +94,7 @@ stdenv.mkDerivation {
# so that `SPARSE_FLAGS' corresponds to the current architecture...
#doCheck = true;

installFlags = "NO_INSTALL_HARDLINKS=1"
+ (if withpcre2 then " USE_LIBPCRE2=1" else "");

installFlags = "NO_INSTALL_HARDLINKS=1";

preInstall = stdenv.lib.optionalString stdenv.isDarwin ''
mkdir -p $out/bin
Expand Down Expand Up @@ -123,9 +134,10 @@ stdenv.mkDerivation {
SCRIPT="$(cat <<'EOS'
BEGIN{
@a=(
'${perl}/bin/perl', '${gnugrep}/bin/grep', '${gnused}/bin/sed', '${gawk}/bin/awk',
'${gnugrep}/bin/grep', '${gnused}/bin/sed', '${gawk}/bin/awk',
'${coreutils}/bin/cut', '${coreutils}/bin/basename', '${coreutils}/bin/dirname',
'${coreutils}/bin/wc', '${coreutils}/bin/tr'
${stdenv.lib.optionalString perlSupport ", '${perl}/bin/perl'"}
);
}
foreach $c (@a) {
Expand All @@ -141,12 +153,12 @@ stdenv.mkDerivation {
substituteInPlace $out/libexec/git-core/git-sh-i18n \
--subst-var-by gettext ${gettext}
# put in separate package for simpler maintenance
mv $out/share/gitweb $gitweb/
# Also put git-http-backend into $PATH, so that we can use smart
# HTTP(s) transports for pushing
ln -s $out/libexec/git-core/git-http-backend $out/bin/git-http-backend
'' + stdenv.lib.optionalString perlSupport ''
# put in separate package for simpler maintenance
mv $out/share/gitweb $gitweb/
# wrap perl commands
gitperllib=$out/lib/perl5/site_perl
Expand Down Expand Up @@ -192,7 +204,7 @@ stdenv.mkDerivation {
'')

+ stdenv.lib.optionalString withManual ''# Install man pages and Info manual
make -j $NIX_BUILD_CORES -l $NIX_BUILD_CORES PERL_PATH="${perl}/bin/perl" cmd-list.made install install-info \
make -j $NIX_BUILD_CORES -l $NIX_BUILD_CORES PERL_PATH="${buildPackages.perl}/bin/perl" cmd-list.made install install-info \
-C Documentation ''

+ (if guiSupport then ''
Expand Down
5 changes: 5 additions & 0 deletions pkgs/build-support/fetchcvs/builder.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
source $stdenv/setup

(echo '#!/usr/bin/env sh'; \
echo 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$@"') > ssh
chmod +x ssh
export CVS_RSH=$PWD/ssh

# creating the export drictory and checking out there only to be able to
# move the content without the root directory into $out ...
# cvs -f -d "$url" export $tag -d "$out" "$module"
Expand Down
6 changes: 3 additions & 3 deletions pkgs/build-support/fetchcvs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
# tag="<tagname>" (get version by tag name)
# If you don't specify neither one date="NOW" will be used (get latest)

{stdenvNoCC, cvs}:
{stdenvNoCC, cvs, openssh}:

{cvsRoot, module, tag ? null, date ? null, sha256}:

stdenvNoCC.mkDerivation {
name = "cvs-export";
builder = ./builder.sh;
nativeBuildInputs = [cvs];
nativeBuildInputs = [cvs openssh];

outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = sha256;

inherit cvsRoot module sha256 tag date;
}
4 changes: 2 additions & 2 deletions pkgs/development/libraries/appstream-glib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
, libuuid, json-glib, meson, gperf, ninja
}:
stdenv.mkDerivation rec {
name = "appstream-glib-0.7.7";
name = "appstream-glib-0.7.8";

outputs = [ "out" "dev" "man" "installedTests" ];
outputBin = "dev";
Expand All @@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
owner = "hughsie";
repo = "appstream-glib";
rev = stdenv.lib.replaceStrings ["." "-"] ["_" "_"] name;
sha256 = "127m5ds355i1vfvmn9nd4zqqnqm16jpqcn4p2p2pvn7i4wqxra40";
sha256 = "10hcl3sl3g8ajg9mssq3g4dbzz0d4b2ybimrcq71cpycqrqhilhx";
};

nativeBuildInputs = [
Expand Down
7 changes: 1 addition & 6 deletions pkgs/development/libraries/glibc/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,7 @@ stdenv.mkDerivation ({
./allow-kernel-2.6.32.patch
]
++ lib.optional stdenv.isx86_64 ./fix-x64-abi.patch
++ lib.optional stdenv.hostPlatform.isMusl
(fetchpatch {
name = "fix-with-musl.patch";
url = "https://sourceware.org/bugzilla/attachment.cgi?id=10151&action=diff&collapsed=&headers=1&format=raw";
sha256 = "18kk534k6da5bkbsy1ivbi77iin76lsna168mfcbwv4ik5vpziq2";
});
++ lib.optional stdenv.hostPlatform.isMusl ./fix-rpc-types-musl-conflicts.patch;

postPatch =
''
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@@ -, +, @@
---
sunrpc/rpc/types.h | 22 ++++++----------------
1 file changed, 6 insertions(+), 16 deletions(-)
--- a/sunrpc/rpc/types.h
+++ a/sunrpc/rpc/types.h
@@ -69,24 +69,14 @@ typedef unsigned long rpcport_t;
#include <sys/types.h>
#endif

-#if defined __APPLE_CC__ || defined __FreeBSD__
-# define __u_char_defined
-# define __daddr_t_defined
-#endif
-
-#ifndef __u_char_defined
-typedef __u_char u_char;
-typedef __u_short u_short;
-typedef __u_int u_int;
-typedef __u_long u_long;
-typedef __quad_t quad_t;
-typedef __u_quad_t u_quad_t;
-typedef __fsid_t fsid_t;
+/* IMPORTANT NOTE: This has been modified to build against the musl C
+ * library and it probably now ONLY builds with the musl C library.
+ *
+ * See: https://sourceware.org/bugzilla/show_bug.cgi?id=21604
+ */
# define __u_char_defined
-#endif
#ifndef __daddr_t_defined
-typedef __daddr_t daddr_t;
-typedef __caddr_t caddr_t;
+typedef int daddr_t;
# define __daddr_t_defined
#endif

--
3 changes: 3 additions & 0 deletions pkgs/development/libraries/libglvnd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ in stdenv.mkDerivation rec {
"-DDEFAULT_EGL_VENDOR_CONFIG_DIRS=\"${driverLink}/share/glvnd/egl_vendor.d:/etc/glvnd/egl_vendor.d:/usr/share/glvnd/egl_vendor.d\""
];

# Indirectly: https://bugs.freedesktop.org/show_bug.cgi?id=35268
configureFlags = stdenv.lib.optional stdenv.hostPlatform.isMusl "--disable-tls";

# Upstream patch fixing use of libdl, should be in next release.
patches = [
(fetchpatch {
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/libraries/liblouis/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ in stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = "Open-source braille translator and back-translator";
homepage = http://liblouis.org/;
broken = true;
license = licenses.lgpl21;
maintainers = with maintainers; [ jtojnar ];
platforms = platforms.unix;
Expand Down
Loading

0 comments on commit f07f0c6

Please sign in to comment.