Merge branch 'master' into staging
This commit is contained in:
commit
e9c1f64048
@ -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"
|
||||
|
@ -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;
|
||||
|
@ -16,10 +16,6 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1n639xr1qxx6rhqs0c6sjxp3bv8cwkmw1vfk1cji7514gj2a9v3p";
|
||||
};
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_INSALL_PREFIX=$out"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
patches = [
|
||||
|
@ -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 ];
|
||||
|
@ -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;
|
||||
@ -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 {}) //
|
||||
|
@ -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
|
||||
}:
|
||||
@ -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
|
||||
|
@ -4,10 +4,14 @@ let
|
||||
|
||||
self = {
|
||||
emscriptenfastcomp-unwrapped = callPackage ./emscripten-fastcomp.nix {};
|
||||
emscriptenfastcomp-wrapped = wrapCCWith stdenv.cc.libc ''
|
||||
emscriptenfastcomp-wrapped = wrapCCWith {
|
||||
cc = self.emscriptenfastcomp-unwrapped;
|
||||
libc = stdenv.cc.libc;
|
||||
extraBuildCommands = ''
|
||||
# hardening flags break WASM support
|
||||
cat > $out/nix-support/add-hardening.sh
|
||||
'' self.emscriptenfastcomp-unwrapped;
|
||||
'';
|
||||
};
|
||||
emscriptenfastcomp = symlinkJoin {
|
||||
name = "emscriptenfastcomp";
|
||||
paths = [ self.emscriptenfastcomp-wrapped self.emscriptenfastcomp-unwrapped ];
|
||||
|
@ -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";
|
||||
@ -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;
|
||||
};
|
||||
|
@ -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/;
|
||||
|
@ -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 ];
|
||||
};
|
||||
}
|
@ -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 = ''
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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 = [
|
||||
@ -24,7 +24,6 @@ stdenv.mkDerivation rec {
|
||||
--replace "/usr/local" ""
|
||||
substituteInPlace config.mk \
|
||||
--replace "WITH_WEBSOCKETS:=no" "WITH_WEBSOCKETS:=yes"
|
||||
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
@ -7,7 +7,7 @@ let
|
||||
in buildGoPackage rec {
|
||||
|
||||
name = "journalbeat-${version}";
|
||||
version = "5.5.0";
|
||||
version = "5.6.0";
|
||||
|
||||
goPackagePath = "github.com/mheese/journalbeat";
|
||||
|
||||
@ -22,7 +22,7 @@ in buildGoPackage rec {
|
||||
owner = "mheese";
|
||||
repo = "journalbeat";
|
||||
rev = "v${version}";
|
||||
sha256 = "134n1kg6nx5yycn2cyldiayaqm8zps94hz4zfz9klp2jzq68m35y";
|
||||
sha256 = "0b5yqzw1h945mwwyy7cza6bc7kzv3x1p9w2xkzmvr7rw3pd32r06";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -29,8 +29,6 @@ with pkgs;
|
||||
|
||||
callPackage_i686 = pkgsi686Linux.callPackage;
|
||||
|
||||
forcedNativePackages = if hostPlatform == buildPlatform then pkgs else buildPackages;
|
||||
|
||||
# A stdenv capable of building 32-bit binaries. On x86_64-linux,
|
||||
# it uses GCC compiled with multilib support; on i686-linux, it's
|
||||
# just the plain stdenv.
|
||||
@ -5390,17 +5388,22 @@ with pkgs;
|
||||
};
|
||||
|
||||
wrapCCMulti = cc:
|
||||
if system == "x86_64-linux" then lowPrio (
|
||||
let
|
||||
if system == "x86_64-linux" then lowPrio (wrapCCWith {
|
||||
cc = cc.cc.override {
|
||||
stdenv = overrideCC stdenv (wrapCCWith {
|
||||
cc = cc.cc;
|
||||
libc = glibc_multi;
|
||||
});
|
||||
profiledCompiler = false;
|
||||
enableMultilib = true;
|
||||
};
|
||||
|
||||
libc = glibc_multi;
|
||||
|
||||
extraBuildCommands = ''
|
||||
echo "dontMoveLib64=1" >> $out/nix-support/setup-hook
|
||||
'';
|
||||
in wrapCCWith glibc_multi extraBuildCommands (cc.cc.override {
|
||||
stdenv = overrideCC stdenv (wrapCCWith glibc_multi "" cc.cc);
|
||||
profiledCompiler = false;
|
||||
enableMultilib = true;
|
||||
}))
|
||||
else throw "Multilib ${cc.name} not supported on ‘${system}’";
|
||||
}) else throw "Multilib ${cc.name} not supported on ‘${system}’";
|
||||
|
||||
gcc_multi = wrapCCMulti gcc;
|
||||
|
||||
@ -5427,35 +5430,31 @@ with pkgs;
|
||||
if targetPlatform.libc == "msvcrt" then __targetPackages.windows.mingw_w64_headers
|
||||
else if targetPlatform.libc == "libSystem" then darwin.xcode
|
||||
else null;
|
||||
in wrapCCCross {
|
||||
cc = forcedNativePackages.gcc.cc.override {
|
||||
in wrapCCWith {
|
||||
name = "gcc-cross-wrapper";
|
||||
cc = gcc.cc.override {
|
||||
crossStageStatic = true;
|
||||
langCC = false;
|
||||
libcCross = libcCross1;
|
||||
enableShared = false;
|
||||
# Why is this needed?
|
||||
inherit (forcedNativePackages) binutils;
|
||||
};
|
||||
libc = libcCross1;
|
||||
inherit (forcedNativePackages) binutils;
|
||||
};
|
||||
|
||||
# Only needed for mingw builds
|
||||
gccCrossMingw2 = assert targetPlatform != buildPlatform; wrapCCCross {
|
||||
gccCrossMingw2 = assert targetPlatform != buildPlatform; wrapCCWith {
|
||||
name = "gcc-cross-wrapper";
|
||||
cc = gccCrossStageStatic.gcc;
|
||||
libc = windows.mingw_headers2;
|
||||
inherit (forcedNativePackages) binutils;
|
||||
};
|
||||
|
||||
gccCrossStageFinal = assert targetPlatform != buildPlatform; wrapCCCross {
|
||||
cc = forcedNativePackages.gcc.cc.override {
|
||||
gccCrossStageFinal = assert targetPlatform != buildPlatform; wrapCCWith {
|
||||
name = "gcc-cross-wrapper";
|
||||
cc = gcc.cc.override {
|
||||
crossStageStatic = false;
|
||||
|
||||
# Why is this needed?
|
||||
inherit (forcedNativePackages) binutils;
|
||||
};
|
||||
libc = libcCross;
|
||||
inherit (forcedNativePackages) binutils;
|
||||
};
|
||||
|
||||
gcc45 = lowPrio (wrapCC (callPackage ../development/compilers/gcc/4.5 {
|
||||
@ -6207,19 +6206,24 @@ with pkgs;
|
||||
|
||||
wla-dx = callPackage ../development/compilers/wla-dx { };
|
||||
|
||||
wrapCCWith = libc: extraBuildCommands: baseCC: ccWrapperFun {
|
||||
nativeTools = stdenv.cc.nativeTools or false;
|
||||
nativeLibc = stdenv.cc.nativeLibc or false;
|
||||
wrapCCWith = { name ? "", cc, libc, extraBuildCommands ? "" }: ccWrapperFun {
|
||||
nativeTools = targetPlatform == hostPlatform && stdenv.cc.nativeTools or false;
|
||||
nativeLibc = targetPlatform == hostPlatform && stdenv.cc.nativeLibc or false;
|
||||
nativePrefix = stdenv.cc.nativePrefix or "";
|
||||
cc = baseCC;
|
||||
isGNU = baseCC.isGNU or false;
|
||||
isClang = baseCC.isClang or false;
|
||||
inherit libc extraBuildCommands;
|
||||
noLibc = (libc == null);
|
||||
|
||||
isGNU = cc.isGNU or false;
|
||||
isClang = cc.isClang or false;
|
||||
|
||||
inherit name cc libc extraBuildCommands;
|
||||
};
|
||||
|
||||
ccWrapperFun = callPackage ../build-support/cc-wrapper;
|
||||
|
||||
wrapCC = wrapCCWith stdenv.cc.libc "";
|
||||
wrapCC = cc: wrapCCWith {
|
||||
inherit cc;
|
||||
inherit (stdenv.cc) libc;
|
||||
};
|
||||
# legacy version, used for gnat bootstrapping
|
||||
wrapGCC-old = baseGCC: callPackage ../build-support/gcc-wrapper-old {
|
||||
nativeTools = stdenv.cc.nativeTools or false;
|
||||
@ -6229,20 +6233,6 @@ with pkgs;
|
||||
libc = glibc;
|
||||
};
|
||||
|
||||
wrapCCCross =
|
||||
{cc, libc, binutils, shell ? "", name ? "gcc-cross-wrapper"}:
|
||||
|
||||
forcedNativePackages.ccWrapperFun {
|
||||
nativeTools = false;
|
||||
nativeLibc = false;
|
||||
noLibc = (libc == null);
|
||||
|
||||
isGNU = cc.isGNU or false;
|
||||
isClang = cc.isClang or false;
|
||||
|
||||
inherit cc binutils libc shell name;
|
||||
};
|
||||
|
||||
# prolog
|
||||
yap = callPackage ../development/compilers/yap { };
|
||||
|
||||
@ -7334,7 +7324,7 @@ with pkgs;
|
||||
cross_renaming: we should make all programs use pkgconfig as
|
||||
nativeBuildInput after the renaming.
|
||||
*/
|
||||
pkgconfig = forcedNativePackages.callPackage ../development/tools/misc/pkgconfig {
|
||||
pkgconfig = callPackage ../development/tools/misc/pkgconfig {
|
||||
fetchurl = fetchurlBoot;
|
||||
};
|
||||
pkgconfigUpstream = lowPrio (pkgconfig.override { vanilla = true; });
|
||||
|
@ -18182,6 +18182,8 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
radicale_infcloud = callPackage ../development/python-modules/radicale_infcloud {};
|
||||
|
||||
recaptcha_client = buildPythonPackage rec {
|
||||
name = "recaptcha-client-1.0.6";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user