Skip to content

Commit

Permalink
Merge branch 'master' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Oct 30, 2017
2 parents 5d41dda + 9d74a61 commit 6879437
Show file tree
Hide file tree
Showing 34 changed files with 605 additions and 202 deletions.
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Expand Up @@ -34,6 +34,10 @@ pkgs/development/haskell-modules/hoogle.nix @peti
pkgs/applications/science/math/R @peti
pkgs/development/r-modules @peti

# Ruby
pkgs/development/interpreters/ruby/* @zimbatm
pkgs/development/ruby-modules/* @zimbatm

# Darwin-related
/pkgs/stdenv/darwin/ @org/darwin-maintainers
/pkgs/os-specific/darwin/ @org/darwin-maintainers
Expand Down
13 changes: 11 additions & 2 deletions lib/types.nix
Expand Up @@ -288,8 +288,17 @@ rec {
}).config;
getSubOptions = prefix: (evalModules
{ modules = opts'; inherit prefix;
# FIXME: hack to get shit to evaluate.
args = { name = ""; }; }).options;
# This is a work-around due to the fact that some sub-modules,
# such as the one included in an attribute set, expects a "args"
# attribute to be given to the sub-module. As the option
# evaluation does not have any specific attribute name, we
# provide a default one for the documentation.
#
# This is mandatory as some option declaration might use the
# "name" attribute given as argument of the submodule and use it
# as the default of option declarations.
args.name = "<name>";
}).options;
getSubModules = opts';
substSubModules = m: submodule m;
functor = (defaultFunctor name) // {
Expand Down
3 changes: 0 additions & 3 deletions nixos/modules/security/acme.xml
Expand Up @@ -89,8 +89,5 @@ services.nginx = {
};
}
</programlisting>

<para>At the moment you still have to restart Nginx after the ACME
certs arrive.</para>
</section>
</chapter>
6 changes: 3 additions & 3 deletions nixos/modules/services/misc/gitlab.nix
Expand Up @@ -572,7 +572,7 @@ in {
rm -rf ${cfg.statePath}/config ${cfg.statePath}/shell/hooks
mkdir -p ${cfg.statePath}/config
tr -dc A-Za-z0-9 < /dev/urandom | head -c 32 > ${cfg.statePath}/config/gitlab_shell_secret
${pkgs.openssl}/bin/openssl rand -hex 32 > ${cfg.statePath}/config/gitlab_shell_secret
# The uploads directory is hardcoded somewhere deep in rails. It is
# symlinked in the gitlab package to /run/gitlab/uploads to make it
Expand Down Expand Up @@ -619,7 +619,7 @@ in {
fi
# enable required pg_trgm extension for gitlab
${pkgs.sudo}/bin/sudo -u ${pgSuperUser} psql gitlab -c "CREATE EXTENSION IF NOT EXISTS pg_trgm"
${pkgs.sudo}/bin/sudo -u ${pgSuperUser} psql ${cfg.databaseName} -c "CREATE EXTENSION IF NOT EXISTS pg_trgm"
# Always do the db migrations just to be sure the database is up-to-date
${gitlab-rake}/bin/gitlab-rake db:migrate RAILS_ENV=production
Expand All @@ -634,7 +634,7 @@ in {
# The gitlab:shell:create_hooks task seems broken for fixing links
# so we instead delete all the hooks and create them anew
rm ${cfg.statePath}/repositories/**/*.git/hooks
rm -f ${cfg.statePath}/repositories/**/*.git/hooks
${gitlab-rake}/bin/gitlab-rake gitlab:shell:create_hooks RAILS_ENV=production
# Change permissions in the last step because some of the
Expand Down
2 changes: 2 additions & 0 deletions nixos/modules/services/x11/display-managers/gdm.nix
Expand Up @@ -125,6 +125,8 @@ in
"getty@tty1.service"
];

systemd.services."getty@tty1".enable = false;
systemd.services.display-manager.conflicts = [ "getty@tty1.service" ];
systemd.services.display-manager.serviceConfig = {
# Restart = "always"; - already defined in xserver.nix
KillMode = "mixed";
Expand Down
3 changes: 1 addition & 2 deletions nixos/modules/tasks/network-interfaces-scripted.nix
Expand Up @@ -93,6 +93,7 @@ let
after = [ "network-pre.target" "systemd-udevd.service" "systemd-sysctl.service" ];
before = [ "network.target" "shutdown.target" ];
wants = [ "network.target" ];
partOf = map (i: "network-addresses-${i.name}.service") interfaces;
conflicts = [ "shutdown.target" ];
wantedBy = [ "multi-user.target" ] ++ optional hasDefaultGatewaySet "network-online.target";

Expand Down Expand Up @@ -171,8 +172,6 @@ let
"network-link-${i.name}.service"
"network.target"
];
# propagate stop and reload from network-setup
partOf = [ "network-setup.service" ];
# order before network-setup because the routes that are configured
# there may need ip addresses configured
before = [ "network-setup.service" ];
Expand Down
5 changes: 5 additions & 0 deletions pkgs/applications/graphics/sxiv/default.nix
Expand Up @@ -23,6 +23,11 @@ stdenv.mkDerivation rec {

buildInputs = [ libX11 imlib2 giflib libexif ];

postInstall = ''
mkdir -p $out/share/applications/
cp -v sxiv.desktop $out/share/applications/
'';

meta = {
description = "Simple X Image Viewer";
homepage = https://github.com/muennich/sxiv;
Expand Down
Expand Up @@ -54,6 +54,7 @@ stdenv.mkDerivation rec {
'';

meta = with stdenv.lib; {
broken = true;
description = "An extensible Twitter client";
homepage = https://mikutter.hachune.net;
maintainers = with maintainers; [ midchildan ];
Expand Down
27 changes: 18 additions & 9 deletions pkgs/applications/science/math/pari/default.nix
Expand Up @@ -14,12 +14,21 @@ stdenv.mkDerivation rec {
buildInputs = [ gmp readline libX11 libpthreadstubs tex perl ];

configureScript = "./Configure";
configureFlags =
"--mt=pthread" +
"--with-gmp=${gmp.dev} " +
"--with-readline=${readline.dev}";
configureFlags = [
"--mt=pthread"
"--with-gmp=${gmp.dev}"
"--with-readline=${readline.dev}"
] ++ stdenv.lib.optional stdenv.isDarwin "--host=x86_64-darwin";

makeFlags = "all";
preConfigure = ''
export LD=$CC
'';

postConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
echo 'echo x86_64-darwin' > config/arch-osname
'';

makeFlags = [ "all" ];

meta = with stdenv.lib; {
description = "Computer algebra system for high-performance number theory computations";
Expand All @@ -36,12 +45,12 @@ stdenv.mkDerivation rec {
Bordeaux I, France), PARI is now under the GPL and maintained by Karim
Belabas with the help of many volunteer contributors.
- PARI is a C library, allowing fast computations.
- PARI is a C library, allowing fast computations.
- gp is an easy-to-use interactive shell giving access to the
PARI functions.
- GP is the name of gp's scripting language.
- gp2c, the GP-to-C compiler, combines the best of both worlds
by compiling GP scripts to the C language and transparently loading
- gp2c, the GP-to-C compiler, combines the best of both worlds
by compiling GP scripts to the C language and transparently loading
the resulting functions into gp. (gp2c-compiled scripts will typically
run 3 or 4 times faster.) gp2c currently only understands a subset
of the GP language.
Expand All @@ -50,7 +59,7 @@ stdenv.mkDerivation rec {
downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ertes raskin AndersonTorres ];
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
updateWalker = true;
};
}
Expand Up @@ -58,6 +58,8 @@ rec {
# support for bugzilla
git-bz = callPackage ./git-bz { };

git-codeowners = callPackage ./git-codeowners { };

git-cola = callPackage ./git-cola { };

git-crypt = callPackage ./git-crypt { };
Expand Down
@@ -0,0 +1,21 @@
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
name = "git-codeowners-${version}";
version = "0.1.1";

src = fetchFromGitHub {
owner = "softprops";
repo = "git-codeowners";
rev = "v${version}";
sha256 = "0imxbi6y1165bi2rik0n98v79fkgp8alb615qh41idg1p2krzyy5";
};

cargoSha256 = "0h831rf5vlvpzfm4sr3fvwlc0ys776fqis90y414mczphkxvz437";

meta = with lib; {
homepage = "https://github.com/softprops/git-codeowners";
description = "a git extension to work with CODEOWNERS files";
license = licenses.mit;
maintainers = with maintainers; [ zimbatm ];
};
}
7 changes: 0 additions & 7 deletions pkgs/build-support/fetchadc/builder.sh

This file was deleted.

36 changes: 0 additions & 36 deletions pkgs/build-support/fetchadc/default.nix

This file was deleted.

6 changes: 3 additions & 3 deletions pkgs/build-support/fetchbower/default.nix
Expand Up @@ -4,13 +4,13 @@ let
let
components = lib.splitString "#" version;
hash = lib.last components;
ver = if builtins.length components == 1 then version else hash;
ver = if builtins.length components == 1 then (cleanName version) else hash;
in ver;

bowerName = name: lib.replaceStrings ["/"] ["-"] name;
cleanName = name: lib.replaceStrings ["/" ":"] ["-" "-"] name;

fetchbower = name: version: target: outputHash: stdenv.mkDerivation {
name = "${bowerName name}-${bowerVersion version}";
name = "${cleanName name}-${bowerVersion version}";
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
buildCommand = ''
fetch-bower --quiet --out=$PWD/out "${name}" "${target}" "${version}"
Expand Down
10 changes: 0 additions & 10 deletions pkgs/build-support/fetchgitrevision/default.nix

This file was deleted.

4 changes: 2 additions & 2 deletions pkgs/development/idris-modules/with-packages.nix
Expand Up @@ -10,7 +10,7 @@
installIdrisLib () {
if [ -d $1/lib/${idris.name} ]; then
ln -sv $1/lib/${idris.name}/* $out/lib/${idris.name}
ln -fsv $1/lib/${idris.name}/* $out/lib/${idris.name}
fi
}
Expand All @@ -34,7 +34,7 @@
'';

buildPhase = ''
gcc -O3 -o idris idris.c
$CC -O3 -o idris idris.c
'';

installPhase = ''
Expand Down
12 changes: 6 additions & 6 deletions pkgs/development/interpreters/php/default.nix
Expand Up @@ -326,17 +326,17 @@ let

in {
php56 = generic {
version = "5.6.31";
sha256 = "03xixkvfp64bqp97p8vlj3hp63bpjw7hc16b7fgm7w35rdlp2fcg";
version = "5.6.32";
sha256 = "0lfbmdkvijkm6xc4p9sykv66y8xwhws0vsmka8v5cax4bxx4xr1y";
};

php70 = generic {
version = "7.0.24";
sha256 = "06fgpljz6xpxxkpf4cv9rqz8g504l9ikbw5aq0hqh5sgd611kycv";
version = "7.0.25";
sha256 = "09fc2lj447phprvilvq2sb6n0r1snj142f8faphrd896s6b4v8lm";
};

php71 = generic {
version = "7.1.9";
sha256 = "1blvzm2js8mrdbmwks0v6nlb5wj4789ixzmlxm1l8z6xvw8cqk9i";
version = "7.1.11";
sha256 = "0ww5493w8w3jlks0xqlfm3v6mm53vpnv5vjy63inkj8zf3gdfikn";
};
}
4 changes: 2 additions & 2 deletions pkgs/development/node-packages/default-v4.nix
@@ -1,4 +1,4 @@
{pkgs, system, nodejs}:
{pkgs, system, nodejs, stdenv}:

let
nodePackages = import ./composition-v4.nix {
Expand Down Expand Up @@ -43,7 +43,7 @@ nodePackages // {
buildInputs = oldAttrs.buildInputs ++ [ pkgs.makeWrapper ];
postInstall = ''
for prog in bower2nix fetch-bower; do
wrapProgram "$out/bin/$prog" --prefix PATH : "${pkgs.git}/bin"
wrapProgram "$out/bin/$prog" --prefix PATH : ${stdenv.lib.makeBinPath [ pkgs.git pkgs.nix ]}
done
'';
});
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/node-packages/default-v6.nix
@@ -1,4 +1,4 @@
{pkgs, system, nodejs}:
{pkgs, system, nodejs, stdenv}:

let
nodePackages = import ./composition-v6.nix {
Expand Down Expand Up @@ -41,7 +41,7 @@ nodePackages // {
buildInputs = oldAttrs.buildInputs ++ [ pkgs.makeWrapper ];
postInstall = ''
for prog in bower2nix fetch-bower; do
wrapProgram "$out/bin/$prog" --prefix PATH : "${pkgs.git}/bin"
wrapProgram "$out/bin/$prog" --prefix PATH : ${stdenv.lib.makeBinPath [ pkgs.git pkgs.nix ]}
done
'';
});
Expand Down
6 changes: 4 additions & 2 deletions pkgs/development/python-modules/pandas/default.nix
Expand Up @@ -8,6 +8,7 @@
, cython
, dateutil
, scipy
, moto
, numexpr
, pytz
, xlrd
Expand All @@ -27,12 +28,12 @@ let
inherit (stdenv) isDarwin;
in buildPythonPackage rec {
pname = "pandas";
version = "0.20.3";
version = "0.21.0";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "a777e07633d83d546c55706420179551c8e01075b53c497dcf8ae4036766bc66";
sha256 = "0nf50ls2cnlsd2635nyji7l70xc91dw81qg5y01g5sifwwqcpmaw";
};

LC_ALL = "en_US.UTF-8";
Expand Down Expand Up @@ -64,6 +65,7 @@ in buildPythonPackage rec {
"['pandas/src/klib', 'pandas/src', '$cpp_sdk']"
'';

checkInputs = [ moto ];
checkPhase = ''
runHook preCheck
''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/tools/build-managers/gradle/default.nix
Expand Up @@ -52,12 +52,12 @@ rec {
};

gradle_latest = gradleGen rec {
name = "gradle-4.2.1";
name = "gradle-4.3";
nativeVersion = "0.14";

src = fetchurl {
url = "http://services.gradle.org/distributions/${name}-bin.zip";
sha256 = "1h7v133rm81jf0bgv9mgvydl7rgh4430dnsfs66wflfay82cqldm";
sha256 = "0k358y18pp2809kn5il4kv3qvlqrbwmy276bbm3mnmwjxx7g9jwd";
};
};

Expand Down

0 comments on commit 6879437

Please sign in to comment.