Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Jul 29, 2017
2 parents 55357de + 140f47e commit b2608b8
Show file tree
Hide file tree
Showing 45 changed files with 1,105 additions and 303 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Expand Up @@ -3,7 +3,7 @@

###### Things done

Please check what applies. Note that these are not hard requirements but mereley serve as information for reviewers.
Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers.

- [ ] Tested using sandboxing
([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS,
Expand Down
25 changes: 23 additions & 2 deletions doc/languages-frameworks/ruby.xml
Expand Up @@ -41,7 +41,29 @@ bundlerEnv rec {
<para>Please check in the <filename>Gemfile</filename>, <filename>Gemfile.lock</filename> and the <filename>gemset.nix</filename> so future updates can be run easily.
</para>

<para>Resulting derivations also have two helpful items, <literal>env</literal> and <literal>wrapper</literal>. The first one allows one to quickly drop into
<para>For tools written in Ruby - i.e. where the desire is to install a package and then execute e.g. <command>rake</command> at the command line, there is an alternative builder called <literal>bundlerApp</literal>. Set up the <filename>gemset.nix</filename> the same way, and then, for example:
</para>

<screen>
<![CDATA[{ lib, bundlerApp }:
bundlerApp {
pname = "corundum";
gemdir = ./.;
exes = [ "corundum-skel" ];
meta = with lib; {
description = "Tool and libraries for maintaining Ruby gems.";
homepage = https://github.com/nyarly/corundum;
license = licenses.mit;
maintainers = [ maintainers.nyarly ];
platforms = platforms.unix;
};
}]]>

<para>The chief advantage of <literal>bundlerApp</literal> over <literal>bundlerEnv</literal> is the executables introduced in the environment are precisely those selected in the <literal>exes</literal> list, as opposed to <literal>bundlerEnv</literal> which adds all the executables made available by gems in the gemset, which can mean e.g. <command>rspec</command> or <command>rake</command> in unpredictable versions available from various packages.

<para>Resulting derivations for both builders also have two helpful attributes, <literal>env</literal> and <literal>wrapper</literal>. The first one allows one to quickly drop into
<command>nix-shell</command> with the specified environment present. E.g. <command>nix-shell -A sensu.env</command> would give you an environment with Ruby preset
so it has all the libraries necessary for <literal>sensu</literal> in its paths. The second one can be used to make derivations from custom Ruby scripts which have
<filename>Gemfile</filename>s with their dependencies specified. It is a derivation with <command>ruby</command> wrapped so it can find all the needed dependencies.
Expand Down Expand Up @@ -74,4 +96,3 @@ in stdenv.mkDerivation {
</programlisting>

</section>

1 change: 1 addition & 0 deletions lib/maintainers.nix
Expand Up @@ -407,6 +407,7 @@
np = "Nicolas Pouillard <np.nix@nicolaspouillard.fr>";
nslqqq = "Nikita Mikhailov <nslqqq@gmail.com>";
nthorne = "Niklas Thörne <notrupertthorne@gmail.com>";
nyarly = "Judson Lester <nyarly@gmail.com>";
obadz = "obadz <obadz-nixos@obadz.com>";
ocharles = "Oliver Charles <ollie@ocharles.org.uk>";
odi = "Oliver Dunkl <oliver.dunkl@gmail.com>";
Expand Down
4 changes: 4 additions & 0 deletions lib/systems/platforms.nix
Expand Up @@ -543,6 +543,10 @@ rec {
# Cavium ThunderX stuff.
PCI_HOST_THUNDER_ECAM y
# The default (=y) forces us to have the XHCI firmware available in initrd,
# which our initrd builder can't currently do easily.
USB_XHCI_TEGRA m
'';
uboot = null;
kernelTarget = "Image";
Expand Down
5 changes: 4 additions & 1 deletion nixos/modules/services/misc/exhibitor.nix
Expand Up @@ -15,9 +15,12 @@ let
election-port=${toString cfg.zkElectionPort}
cleanup-period-ms=${toString cfg.zkCleanupPeriod}
servers-spec=${concatStringsSep "," cfg.zkServersSpec}
auto-manage-instances=${lib.boolToString cfg.autoManageInstances}
auto-manage-instances=${toString cfg.autoManageInstances}
${cfg.extraConf}
'';
# NB: toString rather than lib.boolToString on cfg.autoManageInstances is intended.
# Exhibitor tests if it's an integer not equal to 0, so the empty string (toString false)
# will operate in the same fashion as a 0.
configDir = pkgs.writeTextDir "exhibitor.properties" exhibitorConfig;
cliOptionsCommon = {
configtype = cfg.configType;
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/editors/geany/default.nix
Expand Up @@ -3,19 +3,19 @@
with stdenv.lib;

let
version = "1.30.1";
version = "1.31";
in

stdenv.mkDerivation rec {
name = "geany-${version}";

src = fetchurl {
url = "http://download.geany.org/${name}.tar.bz2";
sha256 = "0ac360f1f3d6c28790a81d570252a7d40421f6e1d8e5a8d653756bd041d88491";
sha256 = "30fdb906bb76c4251a8bcf83ee267db28c26ef6ab867668a782cec1164a3aba5";
};

NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;

nativeBuildInputs = [ pkgconfig intltool ];
buildInputs = [ gtk2 which file ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/freecad/default.nix
Expand Up @@ -5,11 +5,11 @@ let
pythonPackages = python27Packages;
in stdenv.mkDerivation rec {
name = "freecad-${version}";
version = "0.16";
version = "0.16.6712";

src = fetchurl {
url = "https://github.com/FreeCAD/FreeCAD/archive/${version}.tar.gz";
sha256 = "02cfw5wlb04j0ymhk4skrm7rvbz13hpv995asf9v8q6wn2s1mivc";
sha256 = "14hs26gvv7gbg9misxq34v4nrds2sbxjhj4yyw5kq3zbvl517alp";
};

buildInputs = with pythonPackages; [ cmake coin3d xercesc ode eigen qt4 opencascade gts boost
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/nnn/default.nix
Expand Up @@ -4,13 +4,13 @@ with stdenv.lib;

stdenv.mkDerivation rec {
name = "nnn-${version}";
version = "1.2";
version = "1.3";

src = fetchFromGitHub {
owner = "jarun";
repo = "nnn";
rev = "v${version}";
sha256 = "1idrwm02218q7qd2pg2m8ld76bg32wbzl8y1h8ch7gzxihgn4559";
sha256 = "0w9i9vwyqgsi64b5mk4rhmr5gvnnb24c98321r0j5hb0ghdcp96s";
};

configFile = optionalString (conf!=null) (builtins.toFile "config.def.h" conf);
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/cluster/nomad/default.nix
Expand Up @@ -2,7 +2,7 @@

buildGoPackage rec {
name = "nomad-${version}";
version = "0.5.6";
version = "0.6.0";
rev = "v${version}";

goPackagePath = "github.com/hashicorp/nomad";
Expand All @@ -12,7 +12,7 @@ buildGoPackage rec {
owner = "hashicorp";
repo = "nomad";
inherit rev;
sha256 = "1ivxsrg8s5fcyhngf8wlrqw6j7s2iggbf9xkr8jnd80cxbcpnksl";
sha256 = "1qvpcf2hwrx280qk8gl7sfl23y44k8z7c2vwi0gnzx8vqh0l8ywm";
};

meta = with stdenv.lib; {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/virtualization/rkt/default.nix
Expand Up @@ -12,15 +12,15 @@ let
stage1Dir = "lib/rkt/stage1-images";

in stdenv.mkDerivation rec {
version = "1.27.0";
version = "1.28.0";
name = "rkt-${version}";
BUILDDIR="build-${name}";

src = fetchFromGitHub {
owner = "coreos";
repo = "rkt";
rev = "v${version}";
sha256 = "153nkl4mp2p0llv4bpdhdd6127qyaz27jsnxmjgvxhaia0ab79v2";
sha256 = "08bzi44rs4g8cxb44pxh7ln85zhkhmi40r8mb73kibnnzd008vg3";
};

stage1BaseImage = fetchurl {
Expand Down
2 changes: 0 additions & 2 deletions pkgs/development/haskell-modules/lib.nix
Expand Up @@ -111,6 +111,4 @@ rec {
overrideSrc = drv: { src, version ? drv.version }:
overrideCabal drv (_: { inherit src version; editedCabalFile = null; });

hasNoDataOutput = drv: overrideCabal drv (drv: { hasDataDir = false; });
hasNoDocOutput = drv: overrideCabal drv (drv: { hasDocDir = false; });
}
4 changes: 2 additions & 2 deletions pkgs/development/libraries/frei0r/default.nix
Expand Up @@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
name = "frei0r-plugins-${version}";
version = "1.4";
version = "1.6.1";

src = fetchurl {
url = "https://files.dyne.org/frei0r/releases/${name}.tar.gz";
sha256 = "0mxyhdp1p1a3ga8170ijygb870zwbww1dgp3kdr1nd4zvsmzqw44";
sha256 = "0pji26fpd0dqrx1akyhqi6729s394irl73dacnyxk58ijqq4dhp0";
};

buildInputs = [ autoconf cairo opencv pkgconfig ];
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/node-packages/node-packages-v6.json
Expand Up @@ -8,6 +8,7 @@
, "coffee-script"
, "cordova"
, "csslint"
, "dhcp"
, "dnschain"
, "docker-registry-server"
, "elasticdump"
Expand Down
19 changes: 19 additions & 0 deletions pkgs/development/node-packages/node-packages-v6.nix
Expand Up @@ -22688,6 +22688,25 @@ in
};
production = true;
};
dhcp = nodeEnv.buildNodePackage {
name = "dhcp";
packageName = "dhcp";
version = "0.2.9";
src = fetchurl {
url = "https://registry.npmjs.org/dhcp/-/dhcp-0.2.9.tgz";
sha1 = "204208be1cef2788d528744fb263f60a528363a2";
};
dependencies = [
sources."minimist-1.2.0"
];
buildInputs = globalBuildInputs;
meta = {
description = "A DHCP server written in JavaScript";
homepage = https://github.com/infusion/node-dhcp;
license = "MIT OR GPL-2.0";
};
production = true;
};
dnschain = nodeEnv.buildNodePackage {
name = "dnschain";
packageName = "dnschain";
Expand Down
57 changes: 57 additions & 0 deletions pkgs/development/python-modules/Cython/default.nix
@@ -0,0 +1,57 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, python
, glibcLocales
, pkgconfig
, gdb
, numpy
, ncurses
}:

buildPythonPackage rec {
pname = "Cython";
name = "${pname}-${version}";
version = "0.25.2";

src = fetchPypi {
inherit pname version;
sha256 = "01h3lrf6d98j07iakifi81qjszh6faa37ibx7ylva1vsqbwx2hgi";
};

# With Python 2.x on i686-linux or 32-bit ARM this test fails because the
# result is "3L" instead of "3", so let's fix it in-place.
#
# Upstream issue: https://github.com/cython/cython/issues/1548
postPatch = lib.optionalString ((stdenv.isi686 || stdenv.isArm) && !isPy3k) ''
sed -i -e 's/\(>>> *\)\(verify_resolution_GH1533()\)/\1int(\2)/' \
tests/run/cpdef_enums.pyx
'';

buildInputs = [ glibcLocales pkgconfig gdb ];
# For testing
nativeBuildInputs = [ numpy ncurses ];

LC_ALL = "en_US.UTF-8";

# cython's testsuite is not working very well with libc++
# We are however optimistic about things outside of testsuite still working
checkPhase = ''
export HOME="$NIX_BUILD_TOP"
${python.interpreter} runtests.py \
${if stdenv.cc.isClang or false then ''--exclude="(cpdef_extern_func|libcpp_algo)"'' else ""}
'';

# Disable tests temporarily
# https://github.com/cython/cython/issues/1676
doCheck = false;

meta = {
description = "An optimising static compiler for both the Python programming language and the extended Cython programming language";
homepage = http://cython.org;
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fridh ];
};
}
8 changes: 4 additions & 4 deletions pkgs/development/python-modules/amqplib/default.nix
@@ -1,13 +1,13 @@
{ stdenv, buildPythonPackage, fetchPypi }:
{ stdenv, buildPythonPackage, fetchurl }:

buildPythonPackage rec {
pname = "amqplib";
version = "0.6.1";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "0f2618b74d95cd360a6d46a309a3fb1c37d881a237e269ac195a69a34e0e2f62";
src = fetchurl {
url = https://github.com/barryp/py-amqplib/archive/0.6.1.tar.gz;
sha256 = "04nsn68wz9m24rvbssirkyighazbn20j60wjmi0r7jcpcf00sb3s";
};

# error: invalid command 'test'
Expand Down
75 changes: 75 additions & 0 deletions pkgs/development/python-modules/blaze/default.nix
@@ -0,0 +1,75 @@
{ lib
, buildPythonPackage
, fetchurl
, pytest
, contextlib2
, cytoolz
, dask
, datashape
, flask
, flask-cors
, h5py
, multipledispatch
, numba
, numpy
, odo
, pandas
, psutil
, pymongo
, pyyaml
, requests
, sqlalchemy
, tables
, toolz
}:

buildPythonPackage rec {
pname = "blaze";
version = "0.11.0";
name = "${pname}-${version}";

src = fetchurl {
url = "https://github.com/blaze/blaze/archive/${version}.tar.gz";
sha256 = "07zrrxkmdqk84xvdmp29859zcfzlpx5pz6g62l28nqp6n6a7yq9a";
};

checkInputs = [ pytest ];
propagatedBuildInputs = [
contextlib2
cytoolz
dask
datashape
flask
flask-cors
h5py
multipledispatch
numba
numpy
odo
pandas
psutil
pymongo
pyyaml
requests
sqlalchemy
tables
toolz
];

# Failing test
# ERROR collecting blaze/tests/test_interactive.py
# E networkx.exception.NetworkXNoPath: node <class 'list'> not
# reachable from <class 'dask.array.core.Array'>
doCheck = false;

checkPhase = ''
py.test blaze/tests
'';

meta = {
homepage = https://github.com/ContinuumIO/blaze;
description = "Allows Python users a familiar interface to query data living in other data storage systems";
license = lib.licenses.bsdOriginal;
maintainers = with lib.maintainers; [ fridh ];
};
}

0 comments on commit b2608b8

Please sign in to comment.