Skip to content
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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ba68231273be
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 740d76371e6c
Choose a head ref
Loading
Showing with 2,261 additions and 1,770 deletions.
  1. +20 −0 .github/CODEOWNERS
  2. +0 −14 .mention-bot
  3. +24 −6 doc/package-notes.xml
  4. +41 −3 nixos/modules/config/networking.nix
  5. +11 −3 nixos/modules/programs/thefuck.nix
  6. +4 −1 nixos/modules/services/mail/postfix.nix
  7. +1 −1 nixos/modules/services/networking/tinc.nix
  8. +24 −0 pkgs/applications/altcoins/cryptop/default.nix
  9. +11 −10 pkgs/applications/editors/android-studio/common.nix
  10. +7 −2 pkgs/applications/editors/android-studio/packages.nix
  11. +1 −1 pkgs/applications/kde/fetch.sh
  12. +1,116 −1,116 pkgs/applications/kde/srcs.nix
  13. +2 −2 pkgs/applications/misc/jbidwatcher/default.nix
  14. +55 −0 pkgs/applications/misc/qdirstat/default.nix
  15. +2 −2 pkgs/applications/networking/cluster/terragrunt/default.nix
  16. +17 −8 pkgs/applications/networking/cluster/terragrunt/deps.nix
  17. +1 −1 pkgs/applications/networking/irc/weechat/default.nix
  18. +1 −1 pkgs/applications/virtualization/virtualbox/guest-additions/default.nix
  19. +3 −1 pkgs/build-support/fetchbower/default.nix
  20. +3 −3 pkgs/data/fonts/powerline-fonts/default.nix
  21. +1 −1 pkgs/desktops/plasma-5/fetch.sh
  22. +168 −168 pkgs/desktops/plasma-5/srcs.nix
  23. +2 −2 pkgs/development/compilers/ponyc/default.nix
  24. +3 −3 pkgs/development/compilers/ponyc/pony-stable.nix
  25. +2 −16 pkgs/development/libraries/faac/default.nix
  26. +5 −0 pkgs/development/libraries/ffmpeg-full/default.nix
  27. +1 −1 pkgs/development/libraries/kde-frameworks/fetch.sh
  28. +2 −2 pkgs/development/libraries/kde-frameworks/kcodecs.nix
  29. +3 −3 pkgs/development/libraries/kde-frameworks/kfilemetadata/default.nix
  30. +2 −2 pkgs/development/libraries/kde-frameworks/khtml.nix
  31. +1 −1 pkgs/development/libraries/kde-frameworks/solid.nix
  32. +296 −296 pkgs/development/libraries/kde-frameworks/srcs.nix
  33. +2 −2 pkgs/development/libraries/libsass/default.nix
  34. +10 −10 pkgs/development/node-packages/README.md
  35. +2 −2 pkgs/development/ruby-modules/bundler/default.nix
  36. +1 −1 pkgs/development/tools/misc/srecord/default.nix
  37. +1 −1 pkgs/development/tools/parsing/flex/2.5.35.nix
  38. +6 −6 pkgs/development/tools/rust/bindgen/default.nix
  39. +2 −2 pkgs/development/tools/sassc/default.nix
  40. +11 −0 pkgs/servers/monitoring/sensu/Gemfile
  41. +64 −6 pkgs/servers/monitoring/sensu/Gemfile.lock
  42. +249 −6 pkgs/servers/monitoring/sensu/gemset.nix
  43. +14 −12 pkgs/servers/monitoring/uchiwa/bower-packages.nix
  44. +0 −6 pkgs/servers/monitoring/uchiwa/bower.json
  45. +2 −2 pkgs/servers/monitoring/uchiwa/src.nix
  46. +24 −13 pkgs/servers/monitoring/uchiwa/update.sh
  47. +5 −4 pkgs/servers/shairport-sync/default.nix
  48. +2 −2 pkgs/tools/backup/tarsnap/default.nix
  49. +9 −1 pkgs/tools/misc/fzf/default.nix
  50. +2 −2 pkgs/tools/misc/most/default.nix
  51. +2 −2 pkgs/tools/misc/parallel/default.nix
  52. +2 −2 pkgs/tools/networking/mosh/default.nix
  53. +13 −13 pkgs/tools/system/smartmontools/default.nix
  54. +2 −2 pkgs/tools/text/mawk/default.nix
  55. +5 −3 pkgs/top-level/all-packages.nix
  56. +1 −0 pkgs/top-level/python-packages.nix
20 changes: 20 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# CODEOWNERS file
#
# This file is used to describe who owns what in this repository. This file does not
# replace `meta.maintainers` but is instead used for other things than derivations
# and modules, like documentation, package sets, and other assets.
#
# For documentation on this file, see https://help.github.com/articles/about-codeowners/
# Mentioned users will get code review requests.

# Python-related code and docs
pkgs/top-level/python-packages.nix @FRidh
pkgs/development/interpreters/python/* @FRidh
pkgs/development/python-modules/* @FRidh
doc/languages-frameworks/python.md @FRidh

# Darwin-related
pkgs/stdenv/darwin/* @copumpkin @LnL7
pkgs/os-specific/darwin/* @LnL7
pkgs/os-specific/darwin/apple-source-releases/* @copumpkin

14 changes: 0 additions & 14 deletions .mention-bot

This file was deleted.

30 changes: 24 additions & 6 deletions doc/package-notes.xml
Original file line number Diff line number Diff line change
@@ -366,15 +366,33 @@ it. Place the resulting <filename>package.nix</filename> file into

</section>

<section xml:id="sec-autojump">
<section xml:id="sec-shell-helpers">

<title>Autojump</title>
<title>Interactive shell helpers</title>

<para>
autojump needs the shell integration to be useful but unlike other systems,
nix doesn't have a standard share directory location. This is why a
<command>autojump-share</command> script is shipped that prints the location
of the shared folder. This can then be used in the .bashrc like this:
Some packages provide the shell integration to be more useful. But
unlike other systems, nix doesn't have a standard share directory
location. This is why a bunch <command>PACKAGE-share</command>
scripts are shipped that print the location of the corresponding
shared folder.

Current list of such packages is as following:

<itemizedlist>
<listitem>
<para>
<literal>autojump</literal>: <command>autojump-share</command>
</para>
</listitem>
<listitem>
<para>
<literal>fzf</literal>: <command>fzf-share</command>
</para>
</listitem>
</itemizedlist>

E.g. <literal>autojump</literal> can then used in the .bashrc like this:
<screen>
source "$(autojump-share)/autojump.bash"
</screen>
44 changes: 41 additions & 3 deletions nixos/modules/config/networking.nix
Original file line number Diff line number Diff line change
@@ -20,12 +20,35 @@ in

options = {

networking.fqdn = lib.mkOption {
type = types.nullOr types.str;
default = null;
example = "foo.example.com";
description = ''
Fully qualified domain name, if any.
'';
};

networking.hosts = lib.mkOption {
type = types.attrsOf ( types.listOf types.str );
default = {};
example = literalExample ''
{
"127.0.0.1" = [ "foo.bar.baz" ];
"192.168.0.2" = [ "fileserver.local" "nameserver.local" ];
};
'';
description = ''
Locally defined maps of hostnames to IP addresses.
'';
};

networking.extraHosts = lib.mkOption {
type = types.lines;
default = "";
example = "192.168.0.1 lanlocalhost";
description = ''
Additional entries to be appended to <filename>/etc/hosts</filename>.
Additional verbatim entries to be appended to <filename>/etc/hosts</filename>.
'';
};

@@ -176,6 +199,9 @@ in

config = {

warnings = optional (cfg.extraHosts != "")
"networking.extraHosts is deprecated, please use networking.hosts instead";

environment.etc =
{ # /etc/services: TCP/UDP port assignments.
"services".source = pkgs.iana-etc + "/etc/services";
@@ -188,11 +214,23 @@ in

# /etc/hosts: Hostname-to-IP mappings.
"hosts".text =
let oneToString = set : ip : ip + " " + concatStringsSep " " ( getAttr ip set );
allToString = set : concatMapStringsSep "\n" ( oneToString set ) ( attrNames set );
userLocalHosts = optionalString
( builtins.hasAttr "127.0.0.1" cfg.hosts )
( concatStringsSep " " ( remove "localhost" cfg.hosts."127.0.0.1" ));
userLocalHosts6 = optionalString
( builtins.hasAttr "::1" cfg.hosts )
( concatStringsSep " " ( remove "localhost" cfg.hosts."::1" ));
otherHosts = allToString ( removeAttrs cfg.hosts [ "127.0.0.1" "::1" ]);
maybeFQDN = optionalString ( cfg.fqdn != null ) cfg.fqdn;
in
''
127.0.0.1 localhost
127.0.0.1 ${maybeFQDN} ${userLocalHosts} localhost
${optionalString cfg.enableIPv6 ''
::1 localhost
::1 ${maybeFQDN} ${userLocalHosts6} localhost
''}
${otherHosts}
${cfg.extraHosts}
'';

14 changes: 11 additions & 3 deletions nixos/modules/programs/thefuck.nix
Original file line number Diff line number Diff line change
@@ -3,7 +3,12 @@
with lib;

let
cfg = config.programs.thefuck;
prg = config.programs;
cfg = prg.thefuck;

initScript = ''
eval $(${pkgs.thefuck}/bin/thefuck --alias ${cfg.alias})
'';
in
{
options = {
@@ -24,8 +29,11 @@ in

config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ thefuck ];
environment.shellInit = ''
eval $(${pkgs.thefuck}/bin/thefuck --alias ${cfg.alias})
environment.shellInit = initScript;

programs.zsh.shellInit = mkIf prg.zsh.enable initScript;
programs.fish.shellInit = mkIf prg.fish.enable ''
${pkgs.thefuck}/bin/thefuck --alias | source
'';
};
}
5 changes: 4 additions & 1 deletion nixos/modules/services/mail/postfix.nix
Original file line number Diff line number Diff line change
@@ -267,7 +267,7 @@ let
lines = [ sep (formatLine labels) (formatLine labelDefaults) sep ];
in concatStringsSep "\n" lines;

in formattedLabels + "\n" + concatMapStringsSep "\n" formatLine masterCf + "\n";
in formattedLabels + "\n" + concatMapStringsSep "\n" formatLine masterCf + "\n" + cfg.extraMasterConf;

headerCheckOptions = { ... }:
{
@@ -839,5 +839,8 @@ in
(mkIf (cfg.extraConfig != "") {
warnings = [ "The services.postfix.extraConfig option was deprecated. Please use services.postfix.config instead." ];
})
(mkIf (cfg.extraMasterConf != "") {
warnings = [ "The services.postfix.extraMasterConf option was deprecated. Please use services.postfix.masterConfig instead." ];
})
]);
}
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/tinc.nix
Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@ in
(flip mapAttrsToList cfg.networks (network: data:
flip mapAttrs' data.hosts (host: text: nameValuePair
("tinc/${network}/hosts/${host}")
({ mode = "0444"; inherit text; })
({ mode = "0644"; user = "tinc.${network}"; inherit text; })
) // {
"tinc/${network}/tinc.conf" = {
mode = "0444";
24 changes: 24 additions & 0 deletions pkgs/applications/altcoins/cryptop/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ lib, python2}:

python2.pkgs.buildPythonApplication rec {
pname = "cryptop";
version = "0.1.0";
name = "${pname}-${version}";

src = python2.pkgs.fetchPypi {
inherit pname version;
sha256 = "00glnlyig1aajh30knc5rnfbamwfxpg29js2db6mymjmfka8lbhh";
};

propagatedBuildInputs = [ python2.pkgs.requests ];

# No tests in archive
doCheck = false;

meta = {
homepage = "http://github.com/huwwp/cryptop";
description = "Command line Cryptocurrency Portfolio";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ bhipple ];
};
}
21 changes: 11 additions & 10 deletions pkgs/applications/editors/android-studio/common.nix
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@

let
androidStudio = stdenv.mkDerivation {
inherit src meta;
inherit src;
name = "${pname}";
buildInputs = [
makeWrapper
@@ -103,12 +103,13 @@ let
name = "${pname}-fhs-env";
};

in writeTextFile {
name = "${pname}-${version}";
destination = "/bin/${pname}";
executable = true;
text = ''
#!${bash}/bin/bash
${fhsEnv}/bin/${pname}-fhs-env ${androidStudio}/bin/studio.sh
'';
}
in
writeTextFile {
name = "${pname}-${version}";
destination = "/bin/${pname}";
executable = true;
text = ''
#!${bash}/bin/bash
${fhsEnv}/bin/${pname}-fhs-env ${androidStudio}/bin/studio.sh
'';
} // { inherit meta; }
9 changes: 7 additions & 2 deletions pkgs/applications/editors/android-studio/packages.nix
Original file line number Diff line number Diff line change
@@ -13,7 +13,11 @@ in rec {
};

meta = with stdenv.lib; {
description = "The Official IDE for Android";
description = "The Official IDE for Android (stable version)";
longDescription = ''
Android Studio is the official IDE for Android app development, based on
IntelliJ IDEA.
'';
homepage = https://developer.android.com/studio/index.html;
license = licenses.asl20;
platforms = [ "x86_64-linux" ];
@@ -36,8 +40,9 @@ in rec {
};

meta = stable.meta // {
description = "The Official IDE for Android (preview version)";
homepage = https://developer.android.com/studio/preview/index.html;
maintainers = with stdenv.lib.maintainers; [ tomsmeets ];
maintainers = with stdenv.lib.maintainers; [ primeos tomsmeets ];
};
} {
fontsConf = makeFontsConf {
2 changes: 1 addition & 1 deletion pkgs/applications/kde/fetch.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
WGET_ARGS=( https://download.kde.org/stable/applications/17.04.2/ -A '*.tar.xz' )
WGET_ARGS=( https://download.kde.org/stable/applications/17.04.3/ -A '*.tar.xz' )
Loading