Merge remote-tracking branch 'upstream/master' into HEAD

This commit is contained in:
Frederik Rietdijk
2018-01-22 16:09:11 +01:00
67 changed files with 461 additions and 246 deletions

View File

@@ -174,6 +174,7 @@ in mkDerivation (rec {
isGhcjs = true;
inherit nodejs ghcjsBoot;
socket-io = pkgs.nodePackages."socket.io";
haskellCompilerName = "ghcjs";
# let us assume ghcjs is never actually cross compiled
targetPrefix = "";

View File

@@ -1,5 +1,5 @@
{ bootPkgs }:
{ bootPkgs, cabal-install }:
bootPkgs.callPackage ./base.nix {
inherit bootPkgs;
inherit bootPkgs cabal-install;
}

View File

@@ -1,9 +1,9 @@
{ fetchgit, fetchFromGitHub, bootPkgs }:
{ fetchgit, fetchFromGitHub, bootPkgs, cabal-install }:
bootPkgs.callPackage ./base.nix {
version = "0.2.020170323";
inherit bootPkgs;
inherit bootPkgs cabal-install;
ghcjsSrc = fetchFromGitHub {
owner = "ghcjs";

View File

@@ -949,4 +949,7 @@ self: super: {
# Add support for https://github.com/haskell-hvr/multi-ghc-travis.
multi-ghc-travis = self.callPackage ../tools/haskell/multi-ghc-travis { ShellCheck = self.ShellCheck_0_4_6; };
# https://github.com/yesodweb/Shelly.hs/issues/162
shelly = dontCheck super.shelly;
}

View File

@@ -68,4 +68,8 @@ self: super: {
# inline-c > 0.5.6.0 requires template-haskell >= 2.12
inline-c = super.inline-c_0_5_6_1;
inline-c-cpp = super.inline-c-cpp_0_1_0_0;
# Newer versions require GHC 8.2.
haddock-api = self.haddock-api_2_17_4;
haddock = self.haddock_2_17_5;
}

View File

@@ -145645,17 +145645,17 @@ self: {
}) {};
"nix-paths" = callPackage
({ mkDerivation, base, nix, nix-hash, process }:
({ mkDerivation, base, nix, process }:
mkDerivation {
pname = "nix-paths";
version = "1.0.1";
sha256 = "1y09wl1ihxmc9p926g595f70pdcsx78r3q5n5rna23lpq8xicdxb";
libraryHaskellDepends = [ base process ];
libraryToolDepends = [ nix nix-hash ];
libraryToolDepends = [ nix ];
homepage = "https://github.com/peti/nix-paths";
description = "Knowledge of Nix's installation directories";
license = stdenv.lib.licenses.bsd3;
}) {inherit (pkgs) nix; nix-hash = null;};
}) {inherit (pkgs) nix;};
"nixfromnpm" = callPackage
({ mkDerivation, aeson, ansi-terminal, base, bytestring

View File

@@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, autoconf, automake, libtool }:
stdenv.mkDerivation rec {
name = "libgumbo-${version}";
name = "gumbo-${version}";
version = "0.10.1";
src = fetchFromGitHub {

View File

@@ -1,12 +1,12 @@
{ stdenv, buildPythonPackage, fetchurl, pygments, greenlet, curtsies, urwid, requests, mock }:
{ stdenv, buildPythonPackage, fetchPypi, pygments, greenlet, curtsies, urwid, requests, mock }:
buildPythonPackage rec {
pname = "bpython";
version = "0.17";
# 0.17 is still missing on PyPI, https://github.com/bpython/bpython/issues/706
src = fetchurl {
url = "https://bpython-interpreter.org/releases/${pname}-${version}.tar.gz";
sha256 = "13fyyx06645ikvmj9zmkixr12kzk1c3a3f9s9i2rvaczjycn82lz";
src = fetchPypi {
inherit pname version;
sha256 = "1mbah208jhd7bsfaa17fwpi55f7fvif0ghjwgrjmpmx8w1vqab9l";
};
propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];

View File

@@ -1,5 +1,5 @@
{ lib
, fetchurl
, fetchPypi
, buildPythonPackage
, cython
, pytest, psutil, pytestrunner
@@ -7,14 +7,14 @@
}:
let
in buildPythonPackage rec {
pname = "multidict";
version = "4.0.0";
in buildPythonPackage rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
sha256 = "b72486b3ad2b8444f7afebdafda8b111c1803e37203dfe81b7765298f2781778";
src = fetchPypi {
inherit pname version;
sha256 = "0y0pg3r9hlknny0zwg906wz81h8in6lgvnpbmzvl911bmnrqc95p";
};
buildInputs = [ cython ];

View File

@@ -0,0 +1,26 @@
{ stdenv, fetchFromGitHub, autoreconfHook }:
stdenv.mkDerivation rec {
name = "gpp-${version}";
version = "2.25";
src = fetchFromGitHub {
owner = "logological";
repo = "gpp";
rev = "96c5dd8905384ea188f380f51d24cbd7fd58f642";
sha256 = "0bvhnx3yfhbfiqqhhz6k2a596ls5rval7ykbp3jl5b6062xj861b";
};
nativeBuildInputs = [ autoreconfHook ];
installCheckPhase = "$out/bin/gpp --help";
doInstallCheck = true;
meta = with stdenv.lib; {
description = "General-purpose preprocessor with customizable syntax";
homepage = "https://logological.org/gpp";
license = licenses.lgpl3;
maintainers = with maintainers; [ nmattia ];
platforms = with platforms; linux ++ darwin;
};
}

View File

@@ -1,13 +1,13 @@
{ stdenv, fetchFromGitHub, autoreconfHook }:
stdenv.mkDerivation rec {
name = "patchelf-0.10-pre-20160920";
name = "patchelf-0.10-pre-20180108";
src = fetchFromGitHub {
owner = "NixOS";
repo = "patchelf";
rev = "327d80443672c397970738f9e216a7e86cbf3ad7";
sha256 = "0nghzywda4jrj70gvn4dnrzasafgdp0basj04wfir1smvsi047zr";
rev = "48452cf6b4ccba1c1f47a09f4284a253634ab7d1";
sha256 = "1f1s8q3as3nrhcc1a8qc2z7imm644jfz44msn9sfv4mdynp2m2yb";
};
setupHook = [ ./setup-hook.sh ];

View File

@@ -105,6 +105,7 @@ in stdenv.mkDerivation rec {
$out/bin/phantomjs
'' + ''
wrapProgram $out/bin/phantomjs \
--set QT_QPA_PLATFORM offscreen \
--prefix PATH : ${stdenv.lib.makeBinPath [ qtbase ]}
'';

View File

@@ -1,26 +1,30 @@
{ stdenv, writeText, toolchainName, sdkName, xcbuild }:
let
# TODO: expose MACOSX_DEPLOYMENT_TARGET in nix so we can use it here.
version = "10.10";
SDKSettings = {
CanonicalName = sdkName;
DisplayName = sdkName;
Toolchains = [ toolchainName ];
Version = "10.10";
MaximumDeploymentTarget = "10.10";
Version = version;
MaximumDeploymentTarget = version;
isBaseSDK = "YES";
};
SystemVersion = {
ProductName = "Mac OS X";
ProductVersion = "10.10";
ProductVersion = version;
};
in
stdenv.mkDerivation {
name = "MacOSX.sdk";
name = "MacOSX${version}.sdk";
inherit version;
buildInputs = [ xcbuild ];
buildCommand = ''
mkdir -p $out/
plutil -convert xml1 -o $out/SDKSettings.plist ${writeText "SDKSettings.json" (builtins.toJSON SDKSettings)}

View File

@@ -30,7 +30,7 @@ let
in
stdenv.mkDerivation {
name = "xcbuild-wrapper";
name = "xcbuild-wrapper-${xcbuild.version}";
buildInputs = [ xcbuild makeWrapper ];