Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4b6020faf58c
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 51d88f7d20ea
Choose a head ref
  • 20 commits
  • 15 files changed
  • 12 contributors

Commits on Jan 16, 2019

  1. nixos/prometheus: make source_labels optional

    It's possible to skip `source_labels` entirely, an example for this is
    the blackbox exporter configuration:
    
    https://github.com/prometheus/blackbox_exporter#prometheus-configuration
    Ma27 committed Jan 16, 2019
    Copy the full SHA
    003132c View commit details

Commits on Jan 17, 2019

  1. nixos/mysql: fix option ensureDatabases

    The database name needs to be quoted
    in case it contains special characters
    so the MySQL service does not fail to start.
    dermetfan committed Jan 17, 2019
    Copy the full SHA
    429c0bf View commit details

Commits on Jan 19, 2019

  1. installer/tools: Avoid duplicate LUKS device entries in hw config

    There are situations where several filesystems reside on a single encrypted LUKS
    device (e.g. when using BTRFS subvolumes).
    
    Simply generating a `boot.init.luks.devices.NAME.device` entry for each mounted
    filesystem will result in an error later when evaluating the nix expression in
    `hardware-configuration.nix`.
    avdv committed Jan 19, 2019
    Copy the full SHA
    352e06d View commit details

Commits on Jan 22, 2019

  1. Merge pull request #54051 from Ma27/optional-prometheus-source_labels

    nixos/prometheus: make `source_labels` optional
    infinisil authored Jan 22, 2019
    Copy the full SHA
    2f9ef8c View commit details
  2. Merge pull request #54339 from avdv/avoid-duplicate-luks-device

    installer/tools: Avoid duplicate LUKS device entries in hw config
    infinisil authored Jan 22, 2019
    Copy the full SHA
    115cf2e View commit details
  3. Merge pull request #54197 from dermetfan/fix/nixos-mysql

    nixos/mysql: fix option `ensureDatabases`
    infinisil authored Jan 22, 2019
    Copy the full SHA
    120ce2f View commit details
  4. Copy the full SHA
    b7d4a35 View commit details
  5. Copy the full SHA
    a9a28e9 View commit details
  6. python.pkgs.python-utils: use fetchPypi

    Robert Schütz committed Jan 22, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    edolstra Eelco Dolstra
    Copy the full SHA
    e5f2cf4 View commit details
  7. python.pkgs.python-utils: run tests

    Robert Schütz committed Jan 22, 2019
    Copy the full SHA
    d56611b View commit details
  8. python.pkgs.progressbar2: 3.12.0 -> 3.39.2

    Robert Schütz committed Jan 22, 2019
    Copy the full SHA
    6672304 View commit details
  9. efitools: init at 1.9.2

    grahamc committed Jan 22, 2019
    Copy the full SHA
    2707a6d View commit details
  10. Merge pull request #54471 from grahamc/efitools

    efitools: init at 1.9.2
    grahamc authored Jan 22, 2019
    Copy the full SHA
    f3e2348 View commit details
  11. z3-tptp: init

    Z3 ships a TPTP-supporting wrapper as an example; allow building it
    7c6f434c committed Jan 22, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    vcunat Vladimír Čunát
    Copy the full SHA
    ebb370f View commit details
  12. pythonPackages.aiohttp-socks: init at 0.2.2

    Co-authored-by: nyanloutre <paul@nyanlout.re>
    clefru and nyanloutre committed Jan 22, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6fefd37 View commit details
  13. pythonPackages.aiorpcx: init at 0.10.2

    Co-authored-by: nyanloutre <paul@nyanlout.re>
    clefru and nyanloutre committed Jan 22, 2019
    Copy the full SHA
    4b76001 View commit details
  14. electrum: 3.2.4 -> 3.3.2

    Co-authored-by: nyanloutre <paul@nyanlout.re>
    clefru and nyanloutre committed Jan 22, 2019
    Copy the full SHA
    ee0e998 View commit details
  15. electrum: enable tests

    nyanloutre committed Jan 22, 2019
    Copy the full SHA
    3c38d22 View commit details
  16. Merge pull request #54466 from nyanloutre/electrum-update

    electrum: 3.2.4 -> 3.3.2 plus new dependencies
    dotlambda authored Jan 22, 2019
    Copy the full SHA
    fa8ed83 View commit details
  17. libglade: fix on darwin

    Based on discussion in
    Homebrew/legacy-homebrew#11961
    
    Closes #54448
    Closes #54321
    matthewbauer committed Jan 22, 2019
    Copy the full SHA
    51d88f7 View commit details
6 changes: 5 additions & 1 deletion nixos/modules/installer/tools/nixos-generate-config.pl
Original file line number Diff line number Diff line change
@@ -449,7 +449,11 @@ sub in {
if (-e $slave) {
my $dmName = read_file("/sys/class/block/$deviceName/dm/name");
chomp $dmName;
$fileSystems .= " boot.initrd.luks.devices.\"$dmName\".device = \"${\(findStableDevPath $slave)}\";\n\n";
# Ensure to add an entry only once
my $luksDevice = " boot.initrd.luks.devices.\"$dmName\".device";
if ($fileSystems !~ /^\Q$luksDevice\E/m) {
$fileSystems .= "$luksDevice = \"${\(findStableDevPath $slave)}\";\n\n";
}
}
}
}
2 changes: 1 addition & 1 deletion nixos/modules/services/databases/mysql.nix
Original file line number Diff line number Diff line change
@@ -362,7 +362,7 @@ in
${optionalString (cfg.ensureDatabases != []) ''
(
${concatMapStrings (database: ''
echo "CREATE DATABASE IF NOT EXISTS ${database};"
echo "CREATE DATABASE IF NOT EXISTS \`${database}\`;"
'') cfg.ensureDatabases}
) | ${mysql}/bin/mysql -u root -N
''}
3 changes: 2 additions & 1 deletion nixos/modules/services/monitoring/prometheus/default.nix
Original file line number Diff line number Diff line change
@@ -325,7 +325,8 @@ let
promTypes.relabel_config = types.submodule {
options = {
source_labels = mkOption {
type = types.listOf types.str;
type = with types; nullOr (listOf str);
default = null;
description = ''
The source labels select values from existing labels. Their content
is concatenated using the configured separator and matched against
25 changes: 15 additions & 10 deletions pkgs/applications/misc/electrum/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, python3, python3Packages, zbar }:
{ stdenv, fetchFromGitHub, python3, python3Packages, zbar, secp256k1 }:

let
qdarkstyle = python3Packages.buildPythonPackage rec {
@@ -13,15 +13,20 @@ let
in

python3Packages.buildPythonApplication rec {
name = "electrum-${version}";
version = "3.2.4";
pname = "electrum";
version = "3.3.2";

src = fetchurl {
url = "https://download.electrum.org/${version}/Electrum-${version}.tar.gz";
sha256 = "0nwipn1alk3r54zpsv2bdwsqxw4f08bxnfmygnwakfkiaifmmhxg";
src = fetchFromGitHub {
owner = "spesmilo";
repo = "electrum";
rev = version;
sha256 = "1jsn02azdydpq4plr2552s7ijyqgw6zqm2zx8skwsalgbwmhx12i";
};

propagatedBuildInputs = with python3Packages; [
aiorpcx
aiohttp
aiohttp-socks
dnspython
ecdsa
jsonrpclib-pelix
@@ -36,7 +41,6 @@ python3Packages.buildPythonApplication rec {
qrcode
requests
tlslite-ng
typing

# plugins
keepkey
@@ -53,6 +57,7 @@ python3Packages.buildPythonApplication rec {
# Recording the creation timestamps introduces indeterminism to the build
sed -i '/Created: .*/d' electrum/gui/qt/icons_rc.py
sed -i "s|name = 'libzbar.*'|name='${zbar}/lib/libzbar.so'|" electrum/qrscanner.py
substituteInPlace ./electrum/ecc_fast.py --replace libsecp256k1.so.0 ${secp256k1}/lib/libsecp256k1.so.0
'';

postInstall = ''
@@ -65,10 +70,10 @@ python3Packages.buildPythonApplication rec {
--replace "Exec=electrum %u" "Exec=$out/bin/electrum %u"
'';

doCheck = false;
checkInputs = with python3Packages; [ pytest ];

doInstallCheck = true;
installCheckPhase = ''
checkPhase = ''
py.test electrum/tests
$out/bin/electrum help >/dev/null
'';

Original file line number Diff line number Diff line change
@@ -100,6 +100,7 @@ stdenv.mkDerivation rec {
maintainers = [];
platforms = [ "x86_64-linux" ];
# Application crashed with an unhandled SIGSEGV
broken = true;
# Not on all systems, though. Video driver problem?
broken = false;
};
}
31 changes: 31 additions & 0 deletions pkgs/applications/science/logic/z3/tptp.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{stdenv, z3, cmake}:
stdenv.mkDerivation rec {
pname = "z3-tptp";
version = z3.version;

src = z3.src;

sourceRoot = "source/examples/tptp";

nativeBuildInputs = [cmake];
buildInputs = [z3];

preConfigure = ''
echo 'set(Z3_LIBRARIES "-lz3")' >> CMakeLists.new
cat CMakeLists.txt | grep -E 'add_executable|project|link_libraries' >> CMakeLists.new
mv CMakeLists.new CMakeLists.txt
'';

installPhase = ''
mkdir -p "$out/bin"
cp "z3_tptp5" "$out/bin/"
ln -s "z3_tptp5" "$out/bin/z3-tptp"
'';

meta = {
inherit version;
inherit (z3.meta) license homepage platforms;
description = ''TPTP wrapper for Z3 prover'';
maintainers = [stdenv.lib.maintainers.raskin];
};
}
2 changes: 2 additions & 0 deletions pkgs/desktops/gnome-2/platform/libglade/default.nix
Original file line number Diff line number Diff line change
@@ -13,5 +13,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk python gettext ];

NIX_LDFLAGS = "-lgmodule-2.0";

propagatedBuildInputs = [ libxml2 ];
}
25 changes: 25 additions & 0 deletions pkgs/development/python-modules/aiohttp-socks/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ lib, fetchPypi, buildPythonPackage, pythonOlder, aiohttp }:

buildPythonPackage rec {
pname = "aiohttp-socks";
version = "0.2.2";

src = fetchPypi {
inherit version;
pname = "aiohttp_socks";
sha256 = "0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf";
};

propagatedBuildInputs = [ aiohttp ];

# Checks needs internet access
doCheck = false;

disabled = pythonOlder "3.5.3";

meta = {
description = "SOCKS proxy connector for aiohttp";
license = lib.licenses.asl20;
homepage = https://github.com/romis2012/aiohttp-socks;
};
}
25 changes: 25 additions & 0 deletions pkgs/development/python-modules/aiorpcx/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ lib, fetchPypi, buildPythonPackage, pythonOlder, attrs }:

buildPythonPackage rec {
pname = "aiorpcx";
version = "0.10.2";

src = fetchPypi {
inherit version;
pname = "aiorpcX";
sha256 = "1p88k15jh0d2a18pnnbfcamsqi2bxvmmhpizmdlxfdxf8vy5ggyj";
};

propagatedBuildInputs = [ attrs ];

disabled = pythonOlder "3.6";

# Checks needs internet access
doCheck = false;

meta = {
description = "Transport, protocol and framing-independent async RPC client and server implementation";
license = lib.licenses.mit;
homepage = https://github.com/kyuupichan/aiorpcX;
};
}
27 changes: 13 additions & 14 deletions pkgs/development/python-modules/progressbar2/default.nix
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
{ stdenv
, python
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, pytest
, python-utils
, sphinx
, coverage
, execnet
, flake8
, pytestpep8
, pytestflakes
, pytestcov
, pytestcache
, pep8
, pytestrunner
, freezegun
}:

buildPythonPackage rec {
pname = "progressbar2";
version = "3.12.0";
version = "3.39.2";

# Use source from GitHub, PyPI is missing tests
# https://github.com/WoLpH/python-progressbar/issues/151
src = fetchFromGitHub {
owner = "WoLpH";
repo = "python-progressbar";
rev = "v${version}";
sha256 = "1gk45sh8cd0kkyvzcvx95z6nlblmyx0x189mjfv3vfa43cr1mb0f";
src = fetchPypi {
inherit pname version;
sha256 = "6eb5135b987caca4212d2c7abc2923d4ad5ba18bb34ccbe7044b3628f52efc2c";
};

postPatch = ''
rm -r tests/__pycache__
rm tests/*.pyc
'';

propagatedBuildInputs = [ python-utils ];
nativeBuildInputs = [ pytestrunner ];
checkInputs = [
pytest sphinx coverage execnet flake8 pytestpep8 pytestflakes pytestcov
pytestcache pep8
pytest sphinx flake8 pytestpep8 pytestflakes pytestcov
pytestcache freezegun
];
# ignore tests on the nix wrapped setup.py and don't flake .eggs directory
checkPhase = ''
22 changes: 8 additions & 14 deletions pkgs/development/python-modules/python-utils/default.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:
{ lib, buildPythonPackage, fetchPypi, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:

buildPythonPackage rec {
pname = "python-utils";
version = "2.3.0";
name = pname + "-" + version;

src = fetchFromGitHub {
owner = "WoLpH";
repo = "python-utils";
rev = "v${version}";
sha256 = "14gyphcqwa77wfbnrzj363v3fdkxy08378lgd7l3jqnpvr8pfp5c";
src = fetchPypi {
inherit pname version;
sha256 = "34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3";
};

checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];

postPatch = ''
# pytest-runner is only actually required in checkPhase
substituteInPlace setup.py --replace "setup_requires=['pytest-runner']," ""
rm -r tests/__pycache__
rm tests/*.pyc
'';

# Tests failing
doCheck = false;
checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];

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

propagatedBuildInputs = [ six ];
9 changes: 6 additions & 3 deletions pkgs/development/python-modules/pywal/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{ lib, python3Packages, imagemagick, feh }:
{ lib, buildPythonPackage, fetchPypi, imagemagick, feh, isPy3k }:

python3Packages.buildPythonApplication rec {
buildPythonPackage rec {
pname = "pywal";
version = "3.2.1";

src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "1pj30h19ijwhmbm941yzbkgr19q06dhp9492h9nrqw1wfjfdbdic";
};
@@ -19,6 +19,9 @@ python3Packages.buildPythonApplication rec {
./feh.patch
];

# Invalid syntax
disabled = !isPy3k;

postPatch = ''
substituteInPlace pywal/backends/wal.py --subst-var-by convert "${imagemagick}/bin/convert"
substituteInPlace pywal/wallpaper.py --subst-var-by feh "${feh}/bin/feh"
39 changes: 39 additions & 0 deletions pkgs/tools/security/efitools/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ stdenv, gnu-efi, openssl, sbsigntool, perl, perlPackages,
help2man, fetchgit }:
stdenv.mkDerivation rec {
name = "efitools-${version}";
version = "1.9.2";

buildInputs = [
gnu-efi
openssl
sbsigntool
];

nativeBuildInputs = [
perl
perlPackages.FileSlurp
help2man
];

src = fetchgit {
url = "git://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git";
rev = "v${version}";
sha256 = "0jabgl2pxvfl780yvghq131ylpf82k7banjz0ksjhlm66ik8gb1i";
};

postPatch = ''
sed -i -e 's#/usr/include/efi#${gnu-efi}/include/efi/#g' Make.rules
sed -i -e 's#/usr/lib64/gnuefi#${gnu-efi}/lib/#g' Make.rules
sed -i -e 's#$(DESTDIR)/usr#$(out)#g' Make.rules
patchShebangs .
'';

meta = with stdenv.lib; {
description = "Tools for manipulating UEFI secure boot platforms";
homepage = "https://git.kernel.org/cgit/linux/kernel/git/jejb/efitools.git";
license = licenses.gpl2;
maintainers = [ maintainers.grahamc ];
platforms = platforms.linux;
};
}
3 changes: 3 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -3154,6 +3154,8 @@ in
gx = callPackage ../tools/package-management/gx { };
gx-go = callPackage ../tools/package-management/gx/go { };

efitools = callPackage ../tools/security/efitools { };

sbsigntool = callPackage ../tools/security/sbsigntool { };

gsmartcontrol = callPackage ../tools/misc/gsmartcontrol { };
@@ -21947,6 +21949,7 @@ in
};

z3 = callPackage ../applications/science/logic/z3 { python = python2; };
z3-tptp = callPackage ../applications/science/logic/z3/tptp.nix {};

tlaplus = callPackage ../applications/science/logic/tlaplus {};
tlaps = callPackage ../applications/science/logic/tlaplus/tlaps.nix {
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -844,8 +844,12 @@ in {

aiohttp-remotes = callPackage ../development/python-modules/aiohttp-remotes { };

aiohttp-socks = callPackage ../development/python-modules/aiohttp-socks { };

aioprocessing = callPackage ../development/python-modules/aioprocessing { };

aiorpcx = callPackage ../development/python-modules/aiorpcx { };

ajpy = callPackage ../development/python-modules/ajpy { };

alabaster = callPackage ../development/python-modules/alabaster {};