Skip to content

Commit

Permalink
Merge branch 'master' into staging
Browse files Browse the repository at this point in the history
* master: (28 commits)
  go_1_9: skip flaky TestWaitGroupMisuse2
  erlangR18: fix patch hashes with fetchpatch
  xml2: replace dead links
  nixos/pam: fix docs about path to u2f_keys file
  cinelerra: add a note about parallel building
  msmtp: install docs and examples (#31769)
  kernel: Fix out-of-tree modules on aarch64
  nixos/tests/acme: update terms of service to fix test
  gixy: init at 0.1.8
  pythonPackages.ConfigArgParse: 0.9.3 -> 0.12.0, refactor, move to python-modules
  mono: init at 4.8
  wal-g: fix license so not to break evaluation
  wal-g: init at 0.1.2
  maintainers: add backuitist
  nixos/prometheus: Correct documentation for external_labels
  spidermonkey: replace broken links
  vagrant: removed custom rake gem
  vagrant: 2.0.0 -> 2.0.1
  nixos/prometheus: add external_labels option
  nixos/prometheus: add scrape_configs.honor_labels
  ...
  • Loading branch information
orivej committed Nov 17, 2017
2 parents eb36534 + 73598e3 commit 1161741
Show file tree
Hide file tree
Showing 31 changed files with 305 additions and 90 deletions.
8 changes: 3 additions & 5 deletions doc/languages-frameworks/rust.md
Expand Up @@ -24,9 +24,7 @@ overlay](#using-the-rust-nightlies-overlay).
Rust applications are packaged by using the `buildRustPackage` helper from `rustPlatform`:

```
with rustPlatform;
buildRustPackage rec {
rustPlatform.buildRustPackage rec {
name = "ripgrep-${version}";
version = "0.4.0";
Expand All @@ -40,9 +38,9 @@ buildRustPackage rec {
cargoSha256 = "0q68qyl2h6i0qsz82z840myxlnjay8p1w5z7hfyr8fqp7wgwa9cx";
meta = with stdenv.lib; {
description = "A utility that combines the usability of The Silver Searcher with the raw speed of grep";
description = "A fast line-oriented regex search tool, similar to ag and ack";
homepage = https://github.com/BurntSushi/ripgrep;
license = with licenses; [ unlicense ];
license = licenses.unlicense;
maintainers = [ maintainers.tailhook ];
platforms = platforms.all;
};
Expand Down
1 change: 1 addition & 0 deletions lib/maintainers.nix
Expand Up @@ -67,6 +67,7 @@
avnik = "Alexander V. Nikolaev <avn@avnik.info>";
aycanirican = "Aycan iRiCAN <iricanaycan@gmail.com>";
bachp = "Pascal Bach <pascal.bach@nextrem.ch>";
backuitist = "Bruno Bieth";
badi = "Badi' Abdul-Wahid <abdulwahidc@gmail.com>";
balajisivaraman = "Balaji Sivaraman <sivaraman.balaji@gmail.com>";
barrucadu = "Michael Walker <mike@barrucadu.co.uk>";
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/security/pam.nix
Expand Up @@ -41,7 +41,7 @@ let
type = types.bool;
description = ''
If set, users listed in
<filename>~/.yubico/u2f_keys</filename> are able to log in
<filename>~/.config/Yubico/u2f_keys</filename> are able to log in
with the associated U2F key.
'';
};
Expand Down
33 changes: 33 additions & 0 deletions nixos/modules/services/monitoring/prometheus/default.nix
Expand Up @@ -66,6 +66,16 @@ let
How frequently to evaluate rules by default.
'';
};

external_labels = mkOption {
type = types.attrsOf types.str;
description = ''
The labels to add to any time series or alerts when
communicating with external systems (federation, remote
storage, Alertmanager).
'';
default = {};
};
};
};

Expand Down Expand Up @@ -100,6 +110,29 @@ let
The HTTP resource path on which to fetch metrics from targets.
'';
};
honor_labels = mkOption {
type = types.bool;
default = false;
description = ''
Controls how Prometheus handles conflicts between labels
that are already present in scraped data and labels that
Prometheus would attach server-side ("job" and "instance"
labels, manually configured target labels, and labels
generated by service discovery implementations).
If honor_labels is set to "true", label conflicts are
resolved by keeping label values from the scraped data and
ignoring the conflicting server-side labels.
If honor_labels is set to "false", label conflicts are
resolved by renaming conflicting labels in the scraped data
to "exported_&lt;original-label&gt;" (for example
"exported_instance", "exported_job") and then attaching
server-side labels. This is useful for use cases such as
federation, where all labels specified in the target should
be preserved.
'';
};
scheme = mkOption {
type = types.enum ["http" "https"];
default = "http";
Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/common/letsencrypt.nix
Expand Up @@ -228,12 +228,12 @@ let
# Retrieved via:
# curl -s -I https://acme-v01.api.letsencrypt.org/terms \
# | sed -ne 's/^[Ll]ocation: *//p'
tosUrl = "https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf";
tosUrl = "https://letsencrypt.org/documents/2017.11.15-LE-SA-v1.2.pdf";
tosPath = builtins.head (builtins.match "https?://[^/]+(.*)" tosUrl);

tosFile = pkgs.fetchurl {
url = tosUrl;
sha256 = "08b2gacdz23mzji2pjr1pwnk82a84rzvr36isif7mmi9kydl6wv3";
sha256 = "0yvyckqzj0b1xi61sypcha82nanizzlm8yqy828h2jbza7cxi26c";
};

resolver = let
Expand Down
8 changes: 5 additions & 3 deletions pkgs/applications/misc/octoprint/default.nix
Expand Up @@ -54,13 +54,14 @@ let

in pythonPackages.buildPythonApplication rec {
name = "OctoPrint-${version}";
version = "1.3.4";
version = "1.3.5";
# 1.3.5, 2017-10-16, 77753ca02602d3a798d6b0a22535e6fd69ff448a

src = fetchFromGitHub {
owner = "foosel";
repo = "OctoPrint";
rev = version;
sha256 = "1hci8cfmbzcghla1vmrcn6zicm8nj50drm7gp2hkr0drglq5fgr2";
sha256 = "13krv9i6gm4jn4cb327q4qma4xwwashjnc0dia8vlnbjbbvkrni4";
};

# We need old Tornado
Expand All @@ -69,7 +70,7 @@ in pythonPackages.buildPythonApplication rec {
semantic-version flask_principal werkzeug flaskbabel tornado
psutil pyserial flask_login netaddr markdown sockjs-tornado
pylru pyyaml sarge feedparser netifaces click websocket_client
scandir chainmap future dateutil
scandir chainmap future dateutil futures wrapt
];

buildInputs = with pythonPackages; [ nose mock ddt ];
Expand All @@ -93,6 +94,7 @@ in pythonPackages.buildPythonApplication rec {
-e 's,future>=[^"]*,future,g' \
-e 's,pyserial>=[^"]*,pyserial,g' \
-e 's,semantic_version>=[^"]*,semantic_version,g' \
-e 's,wrapt>=[^"]*,wrapt,g' \
setup.py
'';

Expand Down
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchNodeModules, nodejs-8_x, ruby, sencha }:
{ stdenv, fetchFromGitHub, fetchNodeModules, nodejs-8_x, ruby, sencha, auth0ClientID, auth0Domain }:

stdenv.mkDerivation rec {
name = "rambox-bare-${version}";
Expand All @@ -22,12 +22,6 @@ stdenv.mkDerivation rec {

patches = [ ./hide-check-for-updates.patch ./isDev.patch ];

# These credentials are only for this derivation. If you want to get credentials
# for another distribution, go to https://auth0.com. If you want to reuse the same
# domain, drop a line at yegortimoshenko@gmail.com!
auth0ClientID = "0spuNKfIGeLAQ_Iki9t3fGxbfJl3k8SU";
auth0Domain = "nixpkgs.auth0.com";

configurePhase = ''
echo 'var auth0Cfg = { clientID: "${auth0ClientID}", domain: "${auth0Domain}" };' > env.js
ln -s ${node_modules} node_modules
Expand Down
@@ -1,10 +1,17 @@
{ stdenv, newScope, makeWrapper, electron, xdg_utils, makeDesktopItem }:
{ stdenv, newScope, makeWrapper, electron, xdg_utils, makeDesktopItem
# These credentials are only for this derivation. If you want to get credentials
# for another distribution, go to https://auth0.com. If you want to reuse the same
# domain, drop a line at yegortimoshenko@gmail.com!
, auth0ClientID ? "0spuNKfIGeLAQ_Iki9t3fGxbfJl3k8SU"
, auth0Domain ? "nixpkgs.auth0.com" }:

let
callPackage = newScope self;
self = {
fetchNodeModules = callPackage ./fetchNodeModules.nix {};
rambox-bare = callPackage ./bare.nix {};
rambox-bare = callPackage ./bare.nix {
inherit auth0ClientID auth0Domain;
};
sencha = callPackage ./sencha {};
};
desktopItem = makeDesktopItem rec {
Expand Down
7 changes: 6 additions & 1 deletion pkgs/applications/networking/msmtp/default.nix
Expand Up @@ -8,7 +8,8 @@ let
journal = if stdenv.isLinux then "y" else "n";

in stdenv.mkDerivation rec {
name = "msmtp-${version}";
pname = "msmtp";
name = "${pname}-${version}";
version = "1.6.6";

src = fetchurl {
Expand All @@ -30,6 +31,10 @@ in stdenv.mkDerivation rec {
stdenv.lib.optional stdenv.isDarwin [ "--with-macosx-keyring" ];

postInstall = ''
install -d $out/share/doc/${pname}/scripts
cp -r scripts/{find_alias,msmtpqueue,msmtpq,set_sendmail} $out/share/doc/${pname}/scripts
install -Dm644 doc/*.example $out/share/doc/${pname}
substitute scripts/msmtpq/msmtpq $out/bin/msmtpq \
--replace @msmtp@ $out/bin/msmtp \
--replace @nc@ ${netcat-gnu}/bin/nc \
Expand Down
4 changes: 4 additions & 0 deletions pkgs/applications/video/cinelerra/default.nix
Expand Up @@ -50,6 +50,10 @@ stdenv.mkDerivation {
fontconfig intltool
];

# Note: the build may fail with e.g.:
# CXX edl.o
# edl.C:50:25: fatal error: versioninfo.h: No such file or directory
# #include "versioninfo.h"
enableParallelBuilding = true;

meta = {
Expand Down
27 changes: 27 additions & 0 deletions pkgs/applications/window-managers/i3/status-rust.nix
@@ -0,0 +1,27 @@
{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, dbus, gperftools }:

rustPlatform.buildRustPackage rec {
name = "i3status-rust-${version}";
version = "0.9.0.2017-11-09";

src = fetchFromGitHub {
owner = "greshake";
repo = "i3status-rust";
rev = "5daf2cdd611bed3db804d011d5d5af34b558e615";
sha256 = "0j6h7x5mm3m7wq0if20qxc9z3qw29xgf5qb3sqwdbdpz8ykpqdgk";
};

cargoSha256 = "1197hp6d4z14j0r22bvw9ly294li0ivg6yfql4lgi27hbvzag71h";

nativeBuildInputs = [ pkgconfig ];

buildInputs = [ dbus gperftools ];

meta = with stdenv.lib; {
description = "Very resource-friendly and feature-rich replacement for i3status";
homepage = https://github.com/greshake/i3status-rust;
license = licenses.gpl3;
maintainers = [ maintainers.backuitist ];
platforms = platforms.linux;
};
}
1 change: 1 addition & 0 deletions pkgs/development/compilers/go/1.9.nix
Expand Up @@ -119,6 +119,7 @@ stdenv.mkDerivation rec {
./creds-test.patch
./remove-test-pie-1.9.patch
./go-1.9-skip-flaky-19608.patch
./go-1.9-skip-flaky-20072.patch
];

postPatch = optionalString stdenv.isDarwin ''
Expand Down
20 changes: 20 additions & 0 deletions pkgs/development/compilers/go/go-1.9-skip-flaky-20072.patch
@@ -0,0 +1,20 @@
diff --git a/src/sync/waitgroup_test.go b/src/sync/waitgroup_test.go
index e3e3096..f80d1e2 100644
--- a/src/sync/waitgroup_test.go
+++ b/src/sync/waitgroup_test.go
@@ -6,6 +6,7 @@ package sync_test

import (
"internal/race"
+ "internal/testenv"
"runtime"
. "sync"
"sync/atomic"
@@ -73,6 +74,7 @@ func TestWaitGroupMisuse2(t *testing.T) {
if runtime.NumCPU() <= 4 {
t.Skip("NumCPU<=4, skipping: this test requires parallelism")
}
+ testenv.SkipFlaky(t, 20072)
defer func() {
err := recover()
if err != "sync: negative WaitGroup counter" &&
7 changes: 7 additions & 0 deletions pkgs/development/compilers/mono/4.8.nix
@@ -0,0 +1,7 @@
{ stdenv, callPackage, Foundation, libobjc }:

callPackage ./generic-cmake.nix (rec {
inherit Foundation libobjc;
version = "4.8.1.0";
sha256 = "1vyvp2g28ihcgxgxr8nhzyzdmzicsh5djzk8dk1hj5p5f2k3ijqq";
})
11 changes: 11 additions & 0 deletions pkgs/development/compilers/rust/rust-src.nix
@@ -0,0 +1,11 @@
{ stdenv, rustc }:

stdenv.mkDerivation {
name = "rust-src";
src = rustc.src;
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mv src $out
rm -rf $out/{ci,doc,driver,etc,grammar,llvm,rt,rtstartup,rustllvm,test,tools,vendor}
'';
}
10 changes: 5 additions & 5 deletions pkgs/development/interpreters/erlang/R18.nix
@@ -1,14 +1,14 @@
{ mkDerivation, fetchurl }:
{ mkDerivation, fetchpatch }:

let
rmAndPwdPatch = fetchurl {
rmAndPwdPatch = fetchpatch {
url = "https://github.com/erlang/otp/commit/98b8650d22e94a5ff839170833f691294f6276d0.patch";
sha256 = "0cd5pkqrigiqz6cyma5irqwzn0bi17k371k9vlg8ir31h3zmqfip";
sha256 = "0zjs7as83prgq4d5gaw2cmnajnsprdk8cjl5kklknx0pc2b3hfg5";
};

envAndCpPatch = fetchurl {
envAndCpPatch = fetchpatch {
url = "https://github.com/erlang/otp/commit/9f9841eb7327c9fe73e84e197fd2965a97b639cf.patch";
sha256 = "10h5348p6g279b4q01i5jdqlljww5chcvrx5b4b0dv79pk0p0m9f";
sha256 = "00fx5wc88ki3z71z5q4xzi9h3whhjw1zblpn09w995ygn07m9qhm";
};

in mkDerivation rec {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/interpreters/spidermonkey/31.nix
Expand Up @@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
# probably it would be more ideal to pull a particular tag/revision
# from the mercurial repo
src = fetchurl {
url = "https://people.mozilla.org/~sstangl/mozjs-31.5.0.tar.bz2";
url = "https://people.freebsd.org/~sunpoet/sunpoet/mozjs-31.5.0.tar.bz2";
sha256 = "1q8icql5hh1g3gzg5fp4rl9rfagyhm9gilfn3dgi7qn4i1mrfqsd";
};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/interpreters/spidermonkey/38.nix
Expand Up @@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
# probably it would be more ideal to pull a particular tag/revision
# from the mercurial repo
src = fetchurl {
url = "https://people.mozilla.org/~sstangl/mozjs-${version}.tar.bz2";
url = "https://people.freebsd.org/~sunpoet/sunpoet/mozjs-${version}.tar.bz2";
sha256 = "0p4bmbpgkfsj54xschcny0a118jdrdgg0q29rwxigg3lh5slr681";
};

Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/libraries/gstreamer/core/default.nix
@@ -1,5 +1,6 @@
{ stdenv, fetchurl, pkgconfig, perl, bison, flex, python, gobjectIntrospection
, glib, makeWrapper
, darwin
}:

stdenv.mkDerivation rec {
Expand All @@ -24,6 +25,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
pkgconfig perl bison flex python gobjectIntrospection makeWrapper
];
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreServices;

propagatedBuildInputs = [ glib ];

Expand Down
21 changes: 21 additions & 0 deletions pkgs/development/python-modules/configargparse/default.nix
@@ -0,0 +1,21 @@
{ stdenv, lib, buildPythonPackage, fetchPypi }:

buildPythonPackage rec {
pname = "ConfigArgParse";
version = "0.12.0";

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

# no tests in tarball
doCheck = false;

meta = with lib; {
description = "A drop-in replacement for argparse";
homepage = https://github.com/zorro3/ConfigArgParse;
license = licenses.mit;
maintainer = [ maintainers.willibutz ];
};
}

0 comments on commit 1161741

Please sign in to comment.