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: 9c74e20bb209
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: 508ad0efaa1d
Choose a head ref
  • 19 commits
  • 13 files changed
  • 11 contributors

Commits on Feb 21, 2019

  1. nixos-rebuild: get Nix from channel

    If our old Nix can’t evaluate the Nixpkgs channel, try the fallback
    from the new channel /first/. That way we can upgrade Nix to a newer
    version and support breaking changes to Nix (like seen in the upgrade
    o Nix 2.0).
    
    This change should be backported to older NixOS versions!
    matthewbauer committed Feb 21, 2019
    Copy the full SHA
    475c8aa View commit details

Commits on Feb 24, 2019

  1. luakit: clean up

    jtojnar committed Feb 24, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1d39e83 View commit details
  2. luakit: 2017.08.10 → 2.1

    jtojnar committed Feb 24, 2019
    Copy the full SHA
    2578eca View commit details

Commits on Mar 1, 2019

  1. Copy the full SHA
    9620a0c View commit details

Commits on Mar 2, 2019

  1. gitAndTools.git-hub: 1.0.1 -> 1.0.3

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/git-hub/versions
    r-ryantm committed Mar 2, 2019
    Copy the full SHA
    3063f13 View commit details
  2. python3Packages.aiounifi: init at 4

    peterhoeg authored and Robert Schütz committed Mar 2, 2019
    Copy the full SHA
    0319b56 View commit details
  3. home-assistant: 0.86.4 -> 0.87.1

    Robert Schütz committed Mar 2, 2019
    Copy the full SHA
    27fb4f4 View commit details
  4. Copy the full SHA
    971187e View commit details
  5. Copy the full SHA
    7748262 View commit details
  6. python3Packages.pyupdate: 0.2.29 -> 1.3.5

    peterhoeg authored and Robert Schütz committed Mar 2, 2019
    Copy the full SHA
    2f589e7 View commit details
  7. Merge pull request #56292 from jtojnar/luakit

    luakit: 2017.08.10 → 2.1
    jtojnar authored Mar 2, 2019
    Copy the full SHA
    aaca9c0 View commit details
  8. remmina: 1.3.2 -> 1.3.3

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/remmina/versions
    r-ryantm committed Mar 2, 2019
    Copy the full SHA
    ca7b2f4 View commit details
  9. Merge pull request #56590 from pacien/synapse-0.99.2

    matrix-synapse: 0.99.1.1 -> 0.99.2
    Ekleog authored Mar 2, 2019
    Copy the full SHA
    601204f View commit details
  10. Merge pull request #56115 from matthewbauer/nixos-rebuild-upgrade-nix

    nixos-rebuild: try to get Nix fallback from new channel first
    matthewbauer authored Mar 2, 2019
    Copy the full SHA
    b0799b4 View commit details

Commits on Mar 3, 2019

  1. Merge pull request #56736 from r-ryantm/auto-update/remmina

    remmina: 1.3.2 -> 1.3.3
    ryantm authored Mar 3, 2019
    Copy the full SHA
    9fcbe8e View commit details
  2. Merge pull request #55383 from dotlambda/home-assistant-0.87

    home-assistant: 0.86.4 -> 0.87.1
    dotlambda authored Mar 3, 2019
    Copy the full SHA
    a3b6b49 View commit details
  3. solr: 7.6.0 -> 7.7.1

    aanderse committed Mar 3, 2019
    Copy the full SHA
    cf80b01 View commit details
  4. Merge pull request #56676 from r-ryantm/auto-update/git-hub

    gitAndTools.git-hub: 1.0.1 -> 1.0.3
    worldofpeace authored Mar 3, 2019
    Copy the full SHA
    aeb3876 View commit details
  5. Merge pull request #56749 from aanderse/solr

    solr: 7.6.0 -> 7.7.1
    ryantm authored Mar 3, 2019
    Copy the full SHA
    508ad0e View commit details
12 changes: 11 additions & 1 deletion nixos/modules/installer/tools/nixos-rebuild.sh
Original file line number Diff line number Diff line change
@@ -267,6 +267,14 @@ if [ -n "$rollback" -o "$action" = dry-build ]; then
buildNix=
fi

nixSystem() {
machine="$(uname -m)"
if [[ "$machine" =~ i.86 ]]; then
machine=i686
fi
echo $machine-linux
}

prebuiltNix() {
machine="$1"
if [ "$machine" = x86_64 ]; then
@@ -286,7 +294,9 @@ if [ -n "$buildNix" ]; then
nixDrv=
if ! nixDrv="$(nix-instantiate '<nixpkgs/nixos>' --add-root $tmpDir/nix.drv --indirect -A config.nix.package.out "${extraBuildFlags[@]}")"; then
if ! nixDrv="$(nix-instantiate '<nixpkgs>' --add-root $tmpDir/nix.drv --indirect -A nix "${extraBuildFlags[@]}")"; then
nixStorePath="$(prebuiltNix "$(uname -m)")"
if ! nixStorePath="$(nix-instantiate --eval '<nixpkgs/nixos/modules/installer/tools/nix-fallback-paths.nix>' -A $(nixSystem) | sed -e 's/^"//' -e 's/"$//')"; then
nixStorePath="$(prebuiltNix "$(uname -m)")"
fi
if ! nix-store -r $nixStorePath --add-root $tmpDir/nix --indirect \
--option extra-binary-caches https://cache.nixos.org/; then
echo "warning: don't know how to get latest Nix" >&2
20 changes: 15 additions & 5 deletions nixos/modules/services/misc/home-assistant.nix
Original file line number Diff line number Diff line change
@@ -9,13 +9,13 @@ let
configJSON = pkgs.writeText "configuration.json"
(builtins.toJSON (if cfg.applyDefaultConfig then
(recursiveUpdate defaultConfig cfg.config) else cfg.config));
configFile = pkgs.runCommand "configuration.yaml" { } ''
configFile = pkgs.runCommand "configuration.yaml" { preferLocalBuild = true; } ''
${pkgs.remarshal}/bin/json2yaml -i ${configJSON} -o $out
'';

lovelaceConfigJSON = pkgs.writeText "ui-lovelace.json"
(builtins.toJSON cfg.lovelaceConfig);
lovelaceConfigFile = pkgs.runCommand "ui-lovelace.yaml" { } ''
lovelaceConfigFile = pkgs.runCommand "ui-lovelace.yaml" { preferLocalBuild = true; } ''
${pkgs.remarshal}/bin/json2yaml -i ${lovelaceConfigJSON} -o $out
'';

@@ -29,14 +29,24 @@ let
# platform = "luftdaten";
# ...
# } ];
#
# Beginning with 0.87 Home Assistant is migrating their components to the
# scheme "platform.subComponent", e.g. "hue.light" instead of "light.hue".
# See https://developers.home-assistant.io/blog/2019/02/19/the-great-migration.html.
# Hence, we also check whether we find an entry in the config when interpreting
# the first part of the path as the component.
useComponentPlatform = component:
let
path = splitString "." component;
# old: platform is the last part of path
parentConfig = attrByPath (init path) null cfg.config;
platform = last path;
in isList parentConfig && any
(item: item.platform or null == platform)
parentConfig;
# new: platform is the first part of the path
parentConfig' = attrByPath (tail path) null cfg.config;
platform' = head path;
in
(isList parentConfig && any (item: item.platform or null == platform) parentConfig)
|| (isList parentConfig' && any (item: item.platform or null == platform') parentConfig');

# Returns whether component is used in config
useComponent = component:
56 changes: 31 additions & 25 deletions pkgs/applications/networking/browsers/luakit/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{stdenv, fetchFromGitHub, pkgconfig, wrapGAppsHook, makeWrapper
,help2man, lua5, luafilesystem, luajit, sqlite
,webkitgtk, gtk3, gst_all_1, glib-networking}:
{ stdenv, fetchFromGitHub, pkgconfig, wrapGAppsHook
, help2man, lua5, luafilesystem, luajit, sqlite
, webkitgtk, gtk3, gst_all_1, glib-networking
}:

let
lualibs = [luafilesystem];
@@ -11,51 +12,56 @@ let
luaCPath = stdenv.lib.concatStringsSep ";" (map getLuaCPath lualibs);

in stdenv.mkDerivation rec {
pname = "luakit";
version = "2.1";

name = "luakit-${version}";
version = "2017.08.10";
src = fetchFromGitHub {
owner = "luakit";
repo = "luakit";
rev = "${version}";
sha256 = "09z88b50vf2y64vj79cymknyzk3py6azv4r50jng4cw9jx2ray7r";
rev = version;
sha256 = "05mm76g72fs48410pbij4mw0s3nqji3r7f3mnr2fvhv02xqj05aa";
};

nativeBuildInputs = [pkgconfig help2man wrapGAppsHook makeWrapper];
nativeBuildInputs = [
pkgconfig help2man wrapGAppsHook
];

buildInputs = [webkitgtk lua5 luafilesystem luajit sqlite gtk3
buildInputs = [
webkitgtk lua5 luafilesystem luajit sqlite gtk3
gst_all_1.gstreamer gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-ugly
gst_all_1.gst-libav
glib-networking # TLS support
];

postPatch =
#Kind of ugly seds here. There must be a better solution.
''
patchShebangs ./build-utils
sed -i "2 s|require \"lib.lousy.util\"|dofile(\"./lib/lousy/util.lua\")|" ./build-utils/docgen/gen.lua;
sed -i "3 s|require \"lib.markdown\"|dofile(\"./lib/markdown.lua\")|" ./build-utils/docgen/gen.lua;
sed -i "1,2 s|require(\"lib.lousy.util\")|dofile(\"./lib/lousy/util.lua\")|" ./build-utils/find_files.lua;
preBuild = ''
# build-utils/docgen/gen.lua:2: module 'lib.lousy.util' not found
# TODO: why is not this the default?
LUA_PATH=?.lua
'';

buildPhase = ''
make DEVELOPMENT_PATHS=0 USE_LUAJIT=1 INSTALLDIR=$out PREFIX=$out USE_GTK3=1
'';
makeFlags = [
"DEVELOPMENT_PATHS=0"
"USE_LUAJIT=1"
"INSTALLDIR=${placeholder "out"}"
"PREFIX=${placeholder "out"}"
"USE_GTK3=1"
"XDGPREFIX=${placeholder "out"}/etc/xdg"
];

installPhase = let
preFixup = let
luaKitPath = "$out/share/luakit/lib/?/init.lua;$out/share/luakit/lib/?.lua";
in ''
make DEVELOPMENT_PATHS=0 INSTALLDIR=$out PREFIX=$out XDGPREFIX=$out/etc/xdg USE_GTK3=1 install
wrapProgram $out/bin/luakit \
--prefix XDG_CONFIG_DIRS : "$out/etc/xdg" \
--set LUA_PATH '${luaKitPath};${luaPath};' \
gappsWrapperArgs+=(
--prefix XDG_CONFIG_DIRS : "$out/etc/xdg"
--set LUA_PATH '${luaKitPath};${luaPath};'
--set LUA_CPATH '${luaCPath};'
)
'';

meta = with stdenv.lib; {
description = "Fast, small, webkit based browser framework extensible in Lua";
homepage = "http://luakit.org";
homepage = http://luakit.org;
license = licenses.gpl3;
platforms = platforms.linux; # Only tested linux
};
4 changes: 2 additions & 2 deletions pkgs/applications/networking/remote/remmina/default.nix
Original file line number Diff line number Diff line change
@@ -13,13 +13,13 @@ with stdenv.lib;

stdenv.mkDerivation rec {
pname = "remmina";
version = "1.3.2";
version = "1.3.3";

src = fetchFromGitLab {
owner = "Remmina";
repo = "Remmina";
rev = "v${version}";
sha256 = "1ld5ik2g4b95z9pynmwx8mqhblbfzr7a0v35pms89ig4ck1kvr5r";
sha256 = "09mizr9igf22kk26rdx5masai8ghd2nbqryvswkybvia2s6lccrs";
};

nativeBuildInputs = [ cmake ninja pkgconfig wrapGAppsHook ];
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@

stdenv.mkDerivation rec {
name = "git-hub-${version}";
version = "1.0.1";
version = "1.0.3";

src = fetchFromGitHub {
sha256 = "1lizjyi8vac1p1anbnh6qrr176rwxp5yjc1787asw437sackkwza";
sha256 = "03mz64lzicbxxz9b202kqs5ysf82sgb7lw967wkjdy2wbpqk8j0z";
rev = "v${version}";
repo = "git-hub";
owner = "sociomantic-tsunami";
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/aiounifi/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k
, aiohttp }:

buildPythonPackage rec {
pname = "aiounifi";
version = "4";

disabled = ! isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "0594nb8mpfhnnk9jadbdnbn9v7p4sh3430kcgfyhsh7ayw2mpb9m";
};

propagatedBuildInputs = [ aiohttp ];

# upstream has no tests
doCheck = false;

meta = with lib; {
description = "An asynchronous Python library for communicating with Unifi Controller API";
homepage = https://pypi.python.org/pypi/aiounifi/;
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/pyupdate/default.nix
Original file line number Diff line number Diff line change
@@ -3,11 +3,11 @@

buildPythonPackage rec {
pname = "pyupdate";
version = "0.2.29";
version = "1.3.5";

src = fetchPypi {
inherit pname version;
sha256 = "0096bde03f43b67c068914ebcb756265641a6d2a5888d4bc81636347c22bf0aa";
sha256 = "1qxbakhsgmdc5aakhkadr26dlhi0lma7170b245sragn170fqjxf";
};

propagatedBuildInputs = [ requests ];
Loading