Skip to content

Commit

Permalink
Merge branch 'master' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Sep 20, 2017
2 parents d6191bd + 19e3c58 commit e9c1f64
Show file tree
Hide file tree
Showing 17 changed files with 118 additions and 96 deletions.
4 changes: 2 additions & 2 deletions pkgs/applications/editors/vim/default.nix
Expand Up @@ -18,9 +18,9 @@ stdenv.mkDerivation rec {

inherit (common) version src postPatch hardeningDisable enableParallelBuilding meta;

buildInputs = [ ncurses pkgconfig ]
nativeBuildInputs = [ gettext pkgconfig ];
buildInputs = [ ncurses ]
++ stdenv.lib.optionals hostPlatform.isDarwin [ Carbon Cocoa ];
nativeBuildInputs = [ gettext ];

configureFlags = [
"--enable-multibyte"
Expand Down
9 changes: 8 additions & 1 deletion pkgs/applications/misc/alacritty/default.nix
Expand Up @@ -46,17 +46,24 @@ buildRustPackage rec {
pkgconfig
] ++ rpathLibs;

patchPhase = ''
postPatch = ''
substituteInPlace copypasta/src/x11.rs \
--replace Command::new\(\"xclip\"\) Command::new\(\"${xclip}/bin/xclip\"\)
'';

installPhase = ''
runHook preInstall
mkdir -p $out/bin
for f in $(find target/release -maxdepth 1 -type f); do
cp $f $out/bin
done;
patchelf --set-rpath "${stdenv.lib.makeLibraryPath rpathLibs}" $out/bin/alacritty
mkdir -p $out/share/applications
cp Alacritty.desktop $out/share/applications/alacritty.desktop
runHook postInstall
'';

dontPatchELF = true;
Expand Down
4 changes: 0 additions & 4 deletions pkgs/applications/misc/lenmus/default.nix
Expand Up @@ -16,10 +16,6 @@ stdenv.mkDerivation rec {
sha256 = "1n639xr1qxx6rhqs0c6sjxp3bv8cwkmw1vfk1cji7514gj2a9v3p";
};

cmakeFlags = [
"-DCMAKE_INSALL_PREFIX=$out"
];

enableParallelBuilding = true;

patches = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/syncthing/default.nix
@@ -1,14 +1,14 @@
{ stdenv, lib, fetchFromGitHub, go, procps, removeReferencesTo }:

stdenv.mkDerivation rec {
version = "0.14.37";
version = "0.14.38";
name = "syncthing-${version}";

src = fetchFromGitHub {
owner = "syncthing";
repo = "syncthing";
rev = "v${version}";
sha256 = "0mk09m5wc6g7w65cf86rrvzb2gfzbg4jrkwpsabn732iyhkkaj4z";
sha256 = "0afid083azvrihv1v2cas09dprr2fflmj9gi7iy18gvwy2pg0jj8";
};

buildInputs = [ go removeReferencesTo ];
Expand Down
7 changes: 2 additions & 5 deletions pkgs/build-support/cc-wrapper/default.nix
Expand Up @@ -86,7 +86,8 @@ stdenv.mkDerivation {

preferLocalBuild = true;

inherit cc shell libc_bin libc_dev libc_lib binutils_bin coreutils_bin;
inherit cc libc_bin libc_dev libc_lib binutils_bin coreutils_bin;
shell = getBin shell + shell.shellPath or "";
gnugrep_bin = if nativeTools then "" else gnugrep;

binPrefix = prefix;
Expand Down Expand Up @@ -384,10 +385,6 @@ stdenv.mkDerivation {
# for substitution in utils.sh
expandResponseParams = "${expand-response-params}/bin/expand-response-params";

crossAttrs = {
shell = shell.crossDrv + shell.crossDrv.shellPath;
};

meta =
let cc_ = if cc != null then cc else {}; in
(if cc_ ? meta then removeAttrs cc.meta ["priority"] else {}) //
Expand Down
10 changes: 2 additions & 8 deletions pkgs/build-support/gcc-wrapper-old/default.nix
Expand Up @@ -6,7 +6,7 @@
# variables so that the compiler and the linker just "work".

{ name ? "", stdenv, lib, nativeTools, nativeLibc, nativePrefix ? ""
, gcc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? ""
, gcc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? stdenv.shell
, zlib ? null
, hostPlatform, targetPlatform
}:
Expand Down Expand Up @@ -56,15 +56,9 @@ stdenv.mkDerivation {
langAda = if nativeTools then false else gcc ? langAda && gcc.langAda;
langVhdl = if nativeTools then false else gcc ? langVhdl && gcc.langVhdl;
zlib = if gcc != null && gcc ? langVhdl then zlib else null;
shell = if shell == "" then stdenv.shell else
if builtins.isAttrs shell then (shell + shell.shellPath)
else shell;
shell = shell + shell.shellPath or "";

crossAttrs = {
shell = shell.crossDrv + shell.crossDrv.shellPath;
coreutils = coreutils.crossDrv;
binutils = binutils.crossDrv;
gcc = gcc.crossDrv;
#
# This is not the best way to do this. I think the reference should be
# the style in the gcc-cross-wrapper, but to keep a stable stdenv now I
Expand Down
12 changes: 8 additions & 4 deletions pkgs/development/compilers/emscripten-fastcomp/default.nix
Expand Up @@ -4,10 +4,14 @@ let

self = {
emscriptenfastcomp-unwrapped = callPackage ./emscripten-fastcomp.nix {};
emscriptenfastcomp-wrapped = wrapCCWith stdenv.cc.libc ''
# hardening flags break WASM support
cat > $out/nix-support/add-hardening.sh
'' self.emscriptenfastcomp-unwrapped;
emscriptenfastcomp-wrapped = wrapCCWith {
cc = self.emscriptenfastcomp-unwrapped;
libc = stdenv.cc.libc;
extraBuildCommands = ''
# hardening flags break WASM support
cat > $out/nix-support/add-hardening.sh
'';
};
emscriptenfastcomp = symlinkJoin {
name = "emscriptenfastcomp";
paths = [ self.emscriptenfastcomp-wrapped self.emscriptenfastcomp-unwrapped ];
Expand Down
20 changes: 11 additions & 9 deletions pkgs/development/libraries/libwebsockets/default.nix
@@ -1,15 +1,18 @@
{ fetchgit, stdenv, cmake, openssl, zlib }:
{ fetchFromGitHub, stdenv, cmake, openssl, zlib, libuv }:

stdenv.mkDerivation rec {
name = "libwebsockets-1.4";
name = "libwebsockets-${version}";
version = "2.3.0";

src = fetchgit {
url = "git://git.libwebsockets.org/libwebsockets";
rev = "16fb0132cec0fcced29bce6d86eaf94a9beb9785";
sha256 = "0gk4dgx125nz7wl59bx0kgxxg261r9kyxvdff5ld98slr9f08d0l";
src = fetchFromGitHub {
owner = "warmcat";
repo = "libwebsockets";
rev = "v${version}";
sha256 = "1hv2b5r6sg42xnqhm4ysjvyiz3cqpfmwaqm33vpbx0k7arj4ixvy";
};

buildInputs = [ cmake openssl zlib ];
buildInputs = [ cmake openssl zlib libuv ];
cmakeFlags = [ "-DLWS_WITH_PLUGINS=ON" ];

meta = {
description = "Light, portable C library for websockets";
Expand All @@ -19,8 +22,7 @@ stdenv.mkDerivation rec {
throughput in both directions.
'';
homepage = https://libwebsockets.org/trac/libwebsockets;
# See http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tree/LICENSE
license = stdenv.lib.licenses.gpl2Plus;
license = stdenv.lib.licenses.lgpl21;
maintainers = [ ];
platforms = stdenv.lib.platforms.all;
};
Expand Down
4 changes: 1 addition & 3 deletions pkgs/development/libraries/libxmlxx/default.nix
Expand Up @@ -12,9 +12,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkgconfig perl ];

buildInputs = [ glibmm ];

propagatedBuildInputs = [ libxml2 ];
propagatedBuildInputs = [ libxml2 glibmm ];

meta = with stdenv.lib; {
homepage = http://libxmlplusplus.sourceforge.net/;
Expand Down
24 changes: 24 additions & 0 deletions pkgs/development/python-modules/radicale_infcloud/default.nix
@@ -0,0 +1,24 @@
{ stdenv, fetchFromGitHub, buildPythonPackage }:

buildPythonPackage rec {
pname = "radicale_infcloud";
name = "${pname}-${version}";
version = "2017-07-27";

src = fetchFromGitHub {
owner = "Unrud";
repo = "RadicaleInfCloud";
rev = "972757bf4c6be8b966ee063e3741ced29ba8169f";
sha256 = "1c9ql9nv8kwi791akwzd19dcqzd916i7yxzbnrismzw4f5bhgzsk";
};

doCheck = false; # Tries to import radicale, circular dependency

meta = with stdenv.lib; {
homepage = https://github.com/Unrud/RadicaleInfCloud/;
description = "Integrate InfCloud into Radicale's web interface";
license = with licenses; [ agpl3 gpl3 ];
platforms = platforms.all;
maintainers = with maintainers; [ aneeshusa ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/tools/analysis/flow/default.nix
Expand Up @@ -3,14 +3,14 @@
with lib;

stdenv.mkDerivation rec {
version = "0.54.0";
version = "0.55.0";
name = "flow-${version}";

src = fetchFromGitHub {
owner = "facebook";
repo = "flow";
rev = "v${version}";
sha256 = "02z3jrfrr6gn056wplwkhymd1nyncjs67yl3vhv6n27jr3572npn";
sha256 = "042q2197m9l7r6j053dd4hqaqv7dsc5wh8h6aifkcmqa4ypp4w5r";
};

installPhase = ''
Expand Down
11 changes: 9 additions & 2 deletions pkgs/os-specific/gnu/default.nix
Expand Up @@ -3,15 +3,22 @@
args@{ fetchgit, stdenv, autoconf, automake, automake111x, libtool
, texinfo, glibcCross, hurdPartedCross, libuuid, samba
, gccCrossStageStatic, gccCrossStageFinal
, forcedNativePackages, forceSystem, newScope, platform, config
, forceSystem, newScope, platform, config
, targetPlatform, buildPlatform
, overrides ? {} }:
, overrides ? {}
, buildPackages, pkgs
}:

with args;

let
callPackage = newScope gnu;

forcedNativePackages =
if stdenv.hostPlatform == stdenv.buildPlatform
then pkgs
else buildPackages;

gnu = {
hurdCross = forcedNativePackages.callPackage ./hurd {
inherit fetchgit stdenv autoconf libtool texinfo
Expand Down
2 changes: 2 additions & 0 deletions pkgs/os-specific/linux/tp_smapi/default.nix
Expand Up @@ -18,11 +18,13 @@ stdenv.mkDerivation rec {
makeFlags = [
"KBASE=${kernel.dev}/lib/modules/${kernel.modDirVersion}"
"SHELL=/bin/sh"
"HDAPS=1"
];

installPhase = ''
install -v -D -m 644 thinkpad_ec.ko "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/firmware/thinkpad_ec.ko"
install -v -D -m 644 tp_smapi.ko "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/firmware/tp_smapi.ko"
install -v -D -m 644 hdaps.ko "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/firmware/hdapsd.ko"
'';

dontStrip = true;
Expand Down
11 changes: 5 additions & 6 deletions pkgs/servers/mqtt/mosquitto/default.nix
@@ -1,17 +1,17 @@
{ stdenv, fetchurl, openssl, libuuid, cmake, libwebsockets }:
{ stdenv, fetchurl, openssl, libuuid, cmake, libwebsockets, c-ares, libuv }:

stdenv.mkDerivation rec {
pname = "mosquitto";
version = "1.4";
version = "1.4.14";

name = "${pname}-${version}";

src = fetchurl {
url = http://mosquitto.org/files/source/mosquitto-1.4.tar.gz;
sha256 = "1imw5ps0cqda41b574k8hgz9gdr8yy58f76fg8gw14pdnvf3l7sr";
url = "http://mosquitto.org/files/source/mosquitto-${version}.tar.gz";
sha256 = "1la2577h7hcyj7lq26vizj0sh2zmi9m7nbxjp3aalayi66kiysqm";
};

buildInputs = [ openssl libuuid libwebsockets ]
buildInputs = [ openssl libuuid libwebsockets c-ares libuv ]
++ stdenv.lib.optional stdenv.isDarwin cmake;

makeFlags = [
Expand All @@ -24,7 +24,6 @@ stdenv.mkDerivation rec {
--replace "/usr/local" ""
substituteInPlace config.mk \
--replace "WITH_WEBSOCKETS:=no" "WITH_WEBSOCKETS:=yes"
'';

meta = {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/system/journalbeat/default.nix
Expand Up @@ -7,7 +7,7 @@ let
in buildGoPackage rec {

name = "journalbeat-${version}";
version = "5.5.0";
version = "5.6.0";

goPackagePath = "github.com/mheese/journalbeat";

Expand All @@ -22,7 +22,7 @@ in buildGoPackage rec {
owner = "mheese";
repo = "journalbeat";
rev = "v${version}";
sha256 = "134n1kg6nx5yycn2cyldiayaqm8zps94hz4zfz9klp2jzq68m35y";
sha256 = "0b5yqzw1h945mwwyy7cza6bc7kzv3x1p9w2xkzmvr7rw3pd32r06";
};

meta = with lib; {
Expand Down

0 comments on commit e9c1f64

Please sign in to comment.