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: 7495a761cce4
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: 0fe5e0279fe6
Choose a head ref

Commits on Apr 25, 2019

  1. neo.map: fix URL

    Current URL is no longer available.
    samsonan-it authored Apr 25, 2019
    Copy the full SHA
    6e100ae View commit details

Commits on Apr 28, 2019

  1. leptonica: 1.74.1 -> 1.78.0

    Multiple CVE's, see 1.77.0 notes.
    
    http://www.leptonica.com/source/version-notes.html
    dtzWill committed Apr 28, 2019
    Copy the full SHA
    5149226 View commit details

Commits on Apr 29, 2019

  1. sox: Add option to include opus support

    Many other distributions include opus support in their sox
    distributions. This patch makes such an option, and sets it
    to be enabled by default. This works when ogg is disabled as
    as well as when ogg is enabled.
    artemist committed Apr 29, 2019
    Copy the full SHA
    5085555 View commit details

Commits on May 2, 2019

  1. python37Packages.py3exiv2: 0.6.1 -> 0.7.0

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/python3.7-py3exiv2/versions
    r-ryantm committed May 2, 2019
    Copy the full SHA
    0d7133e View commit details

Commits on May 3, 2019

  1. Copy the full SHA
    4ad50e2 View commit details

Commits on May 4, 2019

  1. gimp: fix GTK_PATH

    Fixes #60918.
    jluttine committed May 4, 2019
    Copy the full SHA
    f9de595 View commit details

Commits on May 5, 2019

  1. bitwarden_rs-vault: 2.9.0 -> 2.10.0

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/bitwarden_rs-vault/versions
    r-ryantm committed May 5, 2019
    Copy the full SHA
    d2d4383 View commit details

Commits on May 9, 2019

  1. arandr: 0.1.9 -> 0.1.10

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/arandr/versions
    
    arandr 0.1.10 needs python3, so switch python version too.
    r-ryantm authored and endgame committed May 9, 2019
    Copy the full SHA
    e80acad View commit details

Commits on May 10, 2019

  1. ffsend: 0.2.45 -> 0.2.46

    Extend the xclip/xsel support to all BSD variants and update the
    platforms list to `platforms.unix`.
    lilyball committed May 10, 2019
    Copy the full SHA
    985c9dd View commit details
  2. clang: typo in comment

    ggreif authored May 10, 2019
    Copy the full SHA
    bd8da4e View commit details
  3. service_identity: 17.0.0 -> 18.1.0

    Newer version of Twisted requires newer version of service_identity for reasonable certificate subject checking.
    exarkun authored and marsam committed May 10, 2019
    Copy the full SHA
    9b4392e View commit details
  4. Copy the full SHA
    6f0a6bf View commit details
  5. Merge pull request #60427 from artemist/sox-opus

    sox: Add option to include opus support
    marsam authored May 10, 2019
    Copy the full SHA
    6ca0b14 View commit details
  6. Copy the full SHA
    42f357d View commit details
  7. Copy the full SHA
    42c9c6d View commit details
  8. Merge pull request #60959 from r-ryantm/auto-update/bitwarden_rs-vault

    bitwarden_rs-vault: 2.9.0 -> 2.10.0
    marsam authored May 10, 2019
    Copy the full SHA
    36782c1 View commit details
  9. journalbeat: make journalbeat6 the default

    Version 6.x is also the default for the other beats.
    basvandijk committed May 10, 2019
    Copy the full SHA
    a662f99 View commit details
  10. Merge pull request #60731 from r-ryantm/auto-update/python3.7-py3exiv2

    python37Packages.py3exiv2: 0.6.1 -> 0.7.0
    marsam authored May 10, 2019
    Copy the full SHA
    45db37a View commit details
  11. Copy the full SHA
    477c552 View commit details
  12. Merge pull request #60216 from exarkun/patch-4

    service_identity: 17.0.0 -> 18.1.0
    marsam authored May 10, 2019
    Copy the full SHA
    8f82435 View commit details
  13. Merge pull request #61232 from ggreif/patch-2

    clang: typo in comment
    matthewbauer authored May 10, 2019
    Copy the full SHA
    57c45dd View commit details
  14. Merge pull request #60945 from lilyball/ffsend

    ffsend: 0.2.45 -> 0.2.46
    c0bw3b authored May 10, 2019
    Copy the full SHA
    d02d55d View commit details
  15. Merge pull request #60392 from dtzWill/update/leptonica-1.78.0

    leptonica: 1.74.1 -> 1.78.0
    c0bw3b authored May 10, 2019
    Copy the full SHA
    6513426 View commit details
  16. Merge pull request #60935 from jluttine/gimp-add-gtk-path

    gimp: fix GTK_PATH
    c0bw3b authored May 10, 2019
    Copy the full SHA
    074c02f View commit details
  17. olive-editor: init at 0.0.1 (#57867)

    * olive-editor: init at unstable-2019-03-18
    
    * olive-editor: unstable-2019-03-18 -> 0.0.1
    Upstream tagged a first alpha release
    + frei0r is now available on Darwin
    Alexander Bantyev authored and c0bw3b committed May 10, 2019
    Copy the full SHA
    38c093e View commit details
  18. Merge pull request #61237 from basvandijk/journalbeat-fixes

    NixOS: support journalbeat >= 6
    basvandijk authored May 10, 2019
    Copy the full SHA
    4b7aea9 View commit details
  19. Merge pull request #60852 from thefloweringash/opensc-darwin

    opensc: use built-in PCSC provider on darwin
    c0bw3b authored May 10, 2019
    Copy the full SHA
    11fe4f3 View commit details
  20. Changelog meta entry (#60371)

    meta.changelog: enable, document, add for GNU Hello
    7c6f434c authored May 10, 2019
    Copy the full SHA
    76e2a96 View commit details
  21. Merge pull request #61216 from endgame/arandr

    arandr: 0.1.9 -> 0.1.10
    Ma27 authored May 10, 2019
    Copy the full SHA
    0285c61 View commit details
  22. Merge pull request #60201 from samsonan-it/patch-1

    neo.map: fix URL
    c0bw3b authored May 10, 2019
    Copy the full SHA
    0fe5e02 View commit details
13 changes: 13 additions & 0 deletions doc/meta.xml
Original file line number Diff line number Diff line change
@@ -150,6 +150,19 @@ hello-2.3 A program that produces a familiar, friendly greeting
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<varname>changelog</varname>
</term>
<listitem>
<para>
A link or a list of links to the location of Changelog for a package.
A link may use expansion to refer to the correct changelog version.
Example:
<literal>"https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v${version}"</literal>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<varname>license</varname>
43 changes: 37 additions & 6 deletions nixos/modules/services/logging/journalbeat.nix
Original file line number Diff line number Diff line change
@@ -5,11 +5,13 @@ with lib;
let
cfg = config.services.journalbeat;

lt6 = builtins.compareVersions cfg.package.version "6" < 0;

journalbeatYml = pkgs.writeText "journalbeat.yml" ''
name: ${cfg.name}
tags: ${builtins.toJSON cfg.tags}
journalbeat.cursor_state_file: ${cfg.stateDir}/cursor-state
${optionalString lt6 "journalbeat.cursor_state_file: /var/lib/${cfg.stateDir}/cursor-state"}
${cfg.extraConfig}
'';
@@ -22,6 +24,16 @@ in

enable = mkEnableOption "journalbeat";

package = mkOption {
type = types.package;
default = pkgs.journalbeat;
defaultText = "pkgs.journalbeat";
example = literalExample "pkgs.journalbeat7";
description = ''
The journalbeat package to use
'';
};

name = mkOption {
type = types.str;
default = "journalbeat";
@@ -36,13 +48,17 @@ in

stateDir = mkOption {
type = types.str;
default = "/var/lib/journalbeat";
description = "The state directory. Journalbeat's own logs and other data are stored here.";
default = "journalbeat";
description = ''
Directory below <literal>/var/lib/</literal> to store journalbeat's
own logs and other data. This directory will be created automatically
using systemd's StateDirectory mechanism.
'';
};

extraConfig = mkOption {
type = types.lines;
default = ''
default = optionalString lt6 ''
journalbeat:
seek_position: cursor
cursor_seek_fallback: tail
@@ -61,15 +77,30 @@ in

config = mkIf cfg.enable {

systemd.services.journalbeat = with pkgs; {
assertions = [
{
assertion = !hasPrefix "/" cfg.stateDir;
message =
"The option services.journalbeat.stateDir shouldn't be an absolute directory." +
" It should be a directory relative to /var/lib/.";
}
];

systemd.services.journalbeat = {
description = "Journalbeat log shipper";
wantedBy = [ "multi-user.target" ];
preStart = ''
mkdir -p ${cfg.stateDir}/data
mkdir -p ${cfg.stateDir}/logs
'';
serviceConfig = {
ExecStart = "${pkgs.journalbeat}/bin/journalbeat -c ${journalbeatYml} -path.data ${cfg.stateDir}/data -path.logs ${cfg.stateDir}/logs";
StateDirectory = cfg.stateDir;
ExecStart = ''
${cfg.package}/bin/journalbeat \
-c ${journalbeatYml} \
-path.data /var/lib/${cfg.stateDir}/data \
-path.logs /var/lib/${cfg.stateDir}/logs'';
Restart = "always";
};
};
};
61 changes: 54 additions & 7 deletions nixos/tests/elk.nix
Original file line number Diff line number Diff line change
@@ -12,6 +12,11 @@ with pkgs.lib;
let
esUrl = "http://localhost:9200";

totalHits = message :
"curl --silent --show-error '${esUrl}/_search' -H 'Content-Type: application/json' " +
''-d '{\"query\" : { \"match\" : { \"message\" : \"${message}\"}}}' '' +
"| jq .hits.total";

mkElkTest = name : elk :
let elasticsearchGe7 = builtins.compareVersions elk.elasticsearch.version "7" >= 0;
in makeTest {
@@ -21,7 +26,7 @@ let
};
nodes = {
one =
{ pkgs, ... }: {
{ pkgs, lib, ... }: {
# Not giving the machine at least 2060MB results in elasticsearch failing with the following error:
#
# OpenJDK 64-Bit Server VM warning:
@@ -40,6 +45,26 @@ let
environment.systemPackages = [ pkgs.jq ];

services = {

journalbeat = let lt6 = builtins.compareVersions
elk.journalbeat.version "6" < 0; in {
enable = true;
package = elk.journalbeat;
extraConfig = mkOptionDefault (''
logging:
to_syslog: true
level: warning
metrics.enabled: false
output.elasticsearch:
hosts: [ "127.0.0.1:9200" ]
${optionalString lt6 "template.enabled: false"}
'' + optionalString (!lt6) ''
journalbeat.inputs:
- paths: []
seek: cursor
'');
};

logstash = {
enable = true;
package = elk.logstash;
@@ -107,14 +132,19 @@ let
testScript = ''
startAll;
# Wait until elasticsearch is listening for connections.
$one->waitForUnit("elasticsearch.service");
$one->waitForOpenPort(9200);
# Continue as long as the status is not "red". The status is probably
# "yellow" instead of "green" because we are using a single elasticsearch
# node which elasticsearch considers risky.
#
# TODO: extend this test with multiple elasticsearch nodes and see if the status turns "green".
$one->waitUntilSucceeds("curl --silent --show-error '${esUrl}/_cluster/health' | jq .status | grep -v red");
# TODO: extend this test with multiple elasticsearch nodes
# and see if the status turns "green".
$one->waitUntilSucceeds(
"curl --silent --show-error '${esUrl}/_cluster/health' " .
"| jq .status | grep -v red");
# Perform some simple logstash tests.
$one->waitForUnit("logstash.service");
@@ -123,46 +153,63 @@ let
# See if kibana is healthy.
$one->waitForUnit("kibana.service");
$one->waitUntilSucceeds("curl --silent --show-error 'http://localhost:5601/api/status' | jq .status.overall.state | grep green");
$one->waitUntilSucceeds(
"curl --silent --show-error 'http://localhost:5601/api/status' " .
"| jq .status.overall.state | grep green");
# See if logstash messages arive in elasticsearch.
$one->waitUntilSucceeds("curl --silent --show-error '${esUrl}/_search' -H 'Content-Type: application/json' -d '{\"query\" : { \"match\" : { \"message\" : \"flowers\"}}}' | jq .hits.total | grep -v 0");
$one->waitUntilSucceeds("curl --silent --show-error '${esUrl}/_search' -H 'Content-Type: application/json' -d '{\"query\" : { \"match\" : { \"message\" : \"dragons\"}}}' | jq .hits.total | grep 0");
$one->waitUntilSucceeds("${totalHits "flowers"} | grep -v 0");
$one->waitUntilSucceeds("${totalHits "dragons"} | grep 0");
# Test if a message logged to the journal
# is ingested by elasticsearch via journalbeat.
$one->waitForUnit("journalbeat.service");
$one->execute("echo 'Supercalifragilisticexpialidocious' | systemd-cat");
$one->waitUntilSucceeds(
"${totalHits "Supercalifragilisticexpialidocious"} | grep -v 0");
'' + optionalString (!elasticsearchGe7) ''
# Test elasticsearch-curator.
$one->systemctl("stop logstash");
$one->systemctl("start elasticsearch-curator");
$one->waitUntilSucceeds("! curl --silent --show-error '${esUrl}/_cat/indices' | grep logstash | grep -q ^$1");
$one->waitUntilSucceeds(
"! curl --silent --show-error '${esUrl}/_cat/indices' " .
"| grep logstash | grep -q ^$1");
'';
};
in mapAttrs mkElkTest {
"ELK-5" = {
elasticsearch = pkgs.elasticsearch5;
logstash = pkgs.logstash5;
kibana = pkgs.kibana5;
journalbeat = pkgs.journalbeat5;
};
"ELK-6" =
if enableUnfree
then {
elasticsearch = pkgs.elasticsearch6;
logstash = pkgs.logstash6;
kibana = pkgs.kibana6;
journalbeat = pkgs.journalbeat6;
}
else {
elasticsearch = pkgs.elasticsearch6-oss;
logstash = pkgs.logstash6-oss;
kibana = pkgs.kibana6-oss;
journalbeat = pkgs.journalbeat6;
};
"ELK-7" =
if enableUnfree
then {
elasticsearch = pkgs.elasticsearch7;
logstash = pkgs.logstash7;
kibana = pkgs.kibana7;
journalbeat = pkgs.journalbeat7;
}
else {
elasticsearch = pkgs.elasticsearch7-oss;
logstash = pkgs.logstash7-oss;
kibana = pkgs.kibana7-oss;
journalbeat = pkgs.journalbeat7;
};
}
3 changes: 2 additions & 1 deletion pkgs/applications/graphics/gimp/wrapper.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, symlinkJoin, gimp, makeWrapper, gimpPlugins, plugins ? null}:
{ stdenv, lib, symlinkJoin, gimp, makeWrapper, gimpPlugins, gnome3, plugins ? null}:

let
allPlugins = lib.filter (pkg: builtins.isAttrs pkg && pkg.type == "derivation" && !pkg.meta.broken or false) (lib.attrValues gimpPlugins);
@@ -17,6 +17,7 @@ in symlinkJoin {
for each in gimp-${versionBranch} gimp-console-${versionBranch}; do
wrapProgram $out/bin/$each \
--set GIMP2_PLUGINDIR "$out/lib/gimp/2.0" \
--prefix GTK_PATH : "${gnome3.gnome-themes-extra}/lib/gtk-2.0" \
${toString extraArgs}
done
set +x
7 changes: 6 additions & 1 deletion pkgs/applications/misc/audio/sox/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{ config, lib, stdenv, fetchurl, CoreAudio
{ config, lib, stdenv, fetchurl, pkgconfig, CoreAudio
, enableAlsa ? true, alsaLib ? null
, enableLibao ? true, libao ? null
, enableLame ? config.sox.enableLame or false, lame ? null
, enableLibmad ? true, libmad ? null
, enableLibogg ? true, libogg ? null, libvorbis ? null
, enableOpusfile ? true, opusfile ? null
, enableFLAC ? true, flac ? null
, enablePNG ? true, libpng ? null
, enableLibsndfile ? true, libsndfile ? null
@@ -22,12 +23,16 @@ stdenv.mkDerivation rec {
sha256 = "0v2znlxkxxcd3f48hf3dx9pq7i6fdhb62kgj7wv8xggz8f35jpxl";
};

# configure.ac uses pkg-config only to locate libopusfile
nativeBuildInputs = optional enableOpusfile pkgconfig;

buildInputs =
optional (enableAlsa && stdenv.isLinux) alsaLib ++
optional enableLibao libao ++
optional enableLame lame ++
optional enableLibmad libmad ++
optionals enableLibogg [ libogg libvorbis ] ++
optional enableOpusfile opusfile ++
optional enableFLAC flac ++
optional enablePNG libpng ++
optional enableLibsndfile libsndfile ++
1 change: 1 addition & 0 deletions pkgs/applications/misc/hello/default.nix
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
It is fully customizable.
'';
homepage = https://www.gnu.org/software/hello/manual/;
changelog = "https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v${version}";
license = licenses.gpl3Plus;
maintainers = [ maintainers.eelco ];
platforms = platforms.all;
40 changes: 40 additions & 0 deletions pkgs/applications/video/olive-editor/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{ stdenv, fetchFromGitHub, pkgconfig, which, qmake,
qtbase, qtmultimedia, frei0r, opencolorio, hicolor-icon-theme, ffmpeg-full,
CoreFoundation }:

stdenv.mkDerivation rec {
pname = "olive-editor";
version = "0.1.0";

src = fetchFromGitHub {
owner = "olive-editor";
repo = "olive";
rev = version;
sha256 = "191nk4c35gys4iypykcidn6h27c3sbjfy117q7h9h1qilz2wm94z";
};

nativeBuildInputs = [
pkgconfig
which
qmake
];

buildInputs = [
ffmpeg-full
frei0r
opencolorio
qtbase
qtmultimedia
qtmultimedia.dev
hicolor-icon-theme
] ++ stdenv.lib.optional stdenv.isDarwin CoreFoundation;

meta = with stdenv.lib; {
description = "Professional open-source NLE video editor";
homepage = "https://www.olivevideoeditor.org/";
downloadPage = "https://www.olivevideoeditor.org/download.php";
license = licenses.gpl3;
maintainers = [ maintainers.balsoft ];
platforms = platforms.unix;
};
}
2 changes: 1 addition & 1 deletion pkgs/development/compilers/llvm/8/clang/default.nix
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ let
# Backport for -static-pie, which the latter touches, and which is nice in
# its own right.
./static-pie.patch
# Backport for the `--unwindlib=[libgcc|complier-rt]` flag, which is
# Backport for the `--unwindlib=[libgcc|compiler-rt]` flag, which is
# needed for our bootstrapping to not interfere with C.
./unwindlib.patch
];
24 changes: 2 additions & 22 deletions pkgs/development/libraries/leptonica/default.nix
Original file line number Diff line number Diff line change
@@ -4,33 +4,13 @@

stdenv.mkDerivation rec {
name = "leptonica-${version}";
version = "1.74.1";
version = "1.78.0";

src = fetchurl {
url = "http://www.leptonica.org/source/${name}.tar.gz";
sha256 = "0qpcidvv6igybrrhj0m6j47g642c8sk1qn4dpj82mgd38xx52skl";
sha256 = "122s9b8hi93va4lgwnwrbma50x5fp740npy0s92xybd2wy0jxvg2";
};

patches = stdenv.lib.singleton (fetchpatch {
# configure: Support pkg-config
url = "https://github.com/DanBloomberg/leptonica/commit/"
+ "4476d162cc191a0fefb2ce434153e12bbf188664.patch";
sha256 = "1razzp2g49shfaravfqpxm3ivcd1r92lvqysll6nnf6d1wp9865s";
});

postPatch = ''
# Remove the AC_SUBST() macros on *_LIBS, because the *_LIBS variables will
# be automatically set by PKG_CHECK_MODULES() since autotools 0.24 and
# using the ones that are set here in Leptonica's configure.ac do not
# include -L linker flags.
sed -i -e '/PKG_CHECK_MODULES/,/^ *\])/s/AC_SUBST([^)]*)//' configure.ac
# The giflib package doesn't ship a pkg-config file, so we need to inject
# the linker search path.
substituteInPlace configure.ac --replace -lgif \
${stdenv.lib.escapeShellArg "'-L${giflib}/lib -lgif'"}
'';

nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ giflib libjpeg libpng libtiff libwebp openjpeg zlib ];

4 changes: 2 additions & 2 deletions pkgs/development/python-modules/py3exiv2/default.nix
Original file line number Diff line number Diff line change
@@ -2,12 +2,12 @@

buildPythonPackage rec {
pname = "py3exiv2";
version = "0.6.1";
version = "0.7.0";
disabled = !(isPy3k);

src = fetchPypi {
inherit pname version;
sha256 = "1j2pkynqdqrxf86qyzrjj76i33ylxfsrqxv4j2x9bkd0hk6x0pa6";
sha256 = "1gcvmglyl8ad2f336w88gwkd5djjsxdx1ind9wnlbqc3jn9i05cg";
};

buildInputs = [ exiv2 boost ];
Loading