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: 14850326865c
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: d5ed704b3da3
Choose a head ref

Commits on May 1, 2019

  1. Copy the full SHA
    794cf0a View commit details

Commits on May 2, 2019

  1. bemenu: init at 0.1.0

    Bemenu is a dynamic menu library and client program inspired by dmenu
    with support for wayland compositors (and also X11 and ncurses).
    
    Build and tested in NixOS 19.03.172392.6d7ed96429 in X11 (i3wm), wayland
    (sway) and ncurses (kitty).
    thiagokokada committed May 2, 2019
    Copy the full SHA
    ed971d0 View commit details

Commits on May 7, 2019

  1. Copy the full SHA
    5ef1223 View commit details
  2. dockerTools: Fix the layer order

    The layer order was not correct when a parent image was used: parent
    image layers were above the new created layer.
    
    This commits simplifies the code related to layer ordering. In
    particular, layers in `layer-list` are ordered from bottom-most to
    top-most. This is also the order of layers in the `rootfs.diff_ids`
    attribute of the image configuration.
    nlewo committed May 7, 2019
    Copy the full SHA
    a5a5820 View commit details

Commits on May 11, 2019

  1. Verified

    This commit was signed with the committer’s verified signature.
    rvolosatovs Roman Volosatovs
    Copy the full SHA
    a2f3f68 View commit details
  2. zathura: use poppler on Darwin by default

    Roman Volosatovs authored and rvolosatovs committed May 11, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    rvolosatovs Roman Volosatovs
    Copy the full SHA
    9ddd56a View commit details
  3. Verified

    This commit was signed with the committer’s verified signature.
    rvolosatovs Roman Volosatovs
    Copy the full SHA
    4afa4cd View commit details

Commits on May 13, 2019

  1. Verified

    This commit was signed with the committer’s verified signature.
    eadwu Edmund Wu
    Copy the full SHA
    fd894b3 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    eadwu Edmund Wu
    Copy the full SHA
    509785c View commit details
  3. tgt: 1.0.76 -> 1.0.77

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

    This commit was signed with the committer’s verified signature.
    rvolosatovs Roman Volosatovs
    Copy the full SHA
    7da5708 View commit details
  5. Verified

    This commit was signed with the committer’s verified signature.
    rvolosatovs Roman Volosatovs
    Copy the full SHA
    240fce7 View commit details
  6. tixati: 2.59 -> 2.61

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/tixati/versions
    r-ryantm committed May 13, 2019
    Copy the full SHA
    67645b4 View commit details
  7. tzupdate: 1.3.1 -> 1.4.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/tzupdate/versions
    r-ryantm committed May 13, 2019
    Copy the full SHA
    8d21e03 View commit details
  8. Merge pull request #60661 from thiagokokada/add-bemenu-pkg

    bemenu: init at 0.1.0
    etu authored May 13, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    83a01ab View commit details
  9. stress-ng: 0.09.57 -> 0.09.58 (#61429)

    * stress-ng: 0.09.57 -> 0.09.58
    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/stress-ng/versions
    
    * stress-ng: re-enable on Darwin
    + add meta.changelog page
    + update full description
    r-ryantm authored and c0bw3b committed May 13, 2019
    Copy the full SHA
    e5ad845 View commit details
  10. qmmp: 1.3.1 -> 1.3.2 (#61416)

    * qmmp: 1.3.1 -> 1.3.2
    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/qmmp/versions
    
    * qmmp: cleanup build inputs
    cmake and pkgconfig are needed only at build time
    r-ryantm authored and c0bw3b committed May 13, 2019
    Copy the full SHA
    38c4000 View commit details
  11. Merge pull request #61444 from r-ryantm/auto-update/tzupdate

    tzupdate: 1.3.1 -> 1.4.0
    ryantm authored May 13, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9f96c7f View commit details
  12. Merge pull request #61440 from r-ryantm/auto-update/tixati

    tixati: 2.59 -> 2.61
    ryantm authored May 13, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7b89adb View commit details
  13. Merge pull request #61089 from nlewo/pr-fix-layer-order

    dockerTools: Fix Docker layers order
    nlewo authored May 13, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    42ee7cd View commit details
  14. src: 1.24 -> 1.25 (#61427)

    * src: 1.24 -> 1.25
    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/src/versions
    
    * src: license is now BSD-2
    + move makeWrapper into nativeBuildInputs
    + add meta.changelog
    r-ryantm authored and c0bw3b committed May 13, 2019
    Copy the full SHA
    300c205 View commit details
  15. radare2: 3.4.1 -> 3.5.0

    Mic92 committed May 13, 2019

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Mic92 Jörg Thalheim
    Copy the full SHA
    f6ce92c View commit details
  16. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    bf4728c View commit details
  17. Merge pull request #61439 from r-ryantm/auto-update/tgt

    tgt: 1.0.76 -> 1.0.77
    c0bw3b authored May 13, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0fc7788 View commit details
  18. Merge pull request #61369 from rvolosatovs/fix/kitty

    Fix Kitty wrapper on MacOS
    veprbl authored May 13, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    73265c1 View commit details
  19. Merge pull request #61295 from rvolosatovs/fix/zathura

    Fix Zathura on Darwin
    veprbl authored May 13, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2ddcab0 View commit details
  20. radare2: 3.4.1 -> 3.5.0 (#61455)

    radare2: 3.4.1 -> 3.5.0
    Mic92 authored May 13, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    220daf5 View commit details
  21. Merge pull request #61412 from eadwu/vscode-extensions.WakaTime.vscod…

    …e-wakatime/2.1.0
    
    vscode-extensions.WakaTime.vscode-wakatime: 2.0.9 -> 2.1.0
    veprbl authored May 13, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b8939b7 View commit details
  22. Merge pull request #61413 from eadwu/vscode-extensions.ms-vscode.cppt…

    …ools/0.23.0
    
    vscode-extensions.ms-vscode.cpptools: 0.22.1 -> 0.23.0
    veprbl authored May 13, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    bea8ead View commit details
  23. Copy the full SHA
    d5ed704 View commit details
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -4967,6 +4967,11 @@
github = "ctheune";
name = "Christian Theune";
};
thiagokokada = {
email = "thiagokokada@gmail.com";
github = "thiagokokada";
name = "Thiago K. Okada";
};
ThomasMader = {
email = "thomas.mader@gmail.com";
github = "ThomasMader";
7 changes: 7 additions & 0 deletions nixos/tests/docker-tools.nix
Original file line number Diff line number Diff line change
@@ -67,5 +67,12 @@ import ./make-test.nix ({ pkgs, ... }: {
# Ensure building an image on top of a layered Docker images work
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.layered-on-top}'");
$docker->succeed("docker run --rm ${pkgs.dockerTools.examples.layered-on-top.imageName}");
# Ensure order of layers is correct
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.layersOrder}'");
$docker->succeed("docker run --rm ${pkgs.dockerTools.examples.layersOrder.imageName} cat /tmp/layer1 | grep -q layer1");
# This is to be sure the order of layers of the parent image is preserved
$docker->succeed("docker run --rm ${pkgs.dockerTools.examples.layersOrder.imageName} cat /tmp/layer2 | grep -q layer2");
$docker->succeed("docker run --rm ${pkgs.dockerTools.examples.layersOrder.imageName} cat /tmp/layer3 | grep -q layer3");
'';
})
8 changes: 4 additions & 4 deletions pkgs/applications/audio/qmmp/default.nix
Original file line number Diff line number Diff line change
@@ -29,17 +29,17 @@
# handle that.

stdenv.mkDerivation rec {
name = "qmmp-1.3.1";
name = "qmmp-1.3.2";

src = fetchurl {
url = "http://qmmp.ylsoftware.com/files/${name}.tar.bz2";
sha256 = "1dmybzibpr6hpr2iv1wvrjgww842mng2x0rh1mr8gs8j191xvlhw";
sha256 = "1rh063kcyg7gs9yj2r4v5irpnq4pjaxaxsgrw30mdr21xhhc15cz";
};

nativeBuildInputs = [ cmake pkgconfig ];
buildInputs =
[ # basic requirements
cmake pkgconfig xlibsWrapper
qtbase qttools qtmultimedia qtx11extras
qtbase qttools qtmultimedia qtx11extras xlibsWrapper
# transports
curl libmms
# input plugins
25 changes: 19 additions & 6 deletions pkgs/applications/graphics/openscad/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, qt5, libsForQt5
, bison, flex, eigen, boost, libGLU_combined, glew, opencsg, cgal
, mpfr, gmp, glib, pkgconfig, harfbuzz, gettext
, mpfr, gmp, glib, pkgconfig, harfbuzz, gettext, freetype, fontconfig
}:

stdenv.mkDerivation rec {
@@ -18,11 +18,13 @@ stdenv.mkDerivation rec {
sha256 = "1y63yqyd0v255liik4ff5ak6mj86d8d76w436x76hs5dk6jgpmfb";
};

nativeBuildInputs = [ bison flex pkgconfig ];

buildInputs = [
bison flex eigen boost libGLU_combined glew opencsg cgal mpfr gmp glib
pkgconfig harfbuzz gettext
]
++ (with qt5; [qtbase qmake])
eigen boost glew opencsg cgal mpfr gmp glib
harfbuzz gettext freetype fontconfig
] ++ stdenv.lib.optional stdenv.isLinux libGLU_combined
++ (with qt5; [qtbase qmake] ++ stdenv.lib.optional stdenv.isDarwin qtmacextras)
++ (with libsForQt5; [qscintilla])
;

@@ -33,6 +35,17 @@ stdenv.mkDerivation rec {

doCheck = false;

postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
mkdir $out/Applications
mv $out/bin/*.app $out/Applications
rmdir $out/bin || true
mv --target-directory=$out/Applications/OpenSCAD.app/Contents/Resources \
$out/share/openscad/{examples,color-schemes,locale,libraries,fonts}
rmdir $out/share/openscad
'';

meta = {
description = "3D parametric model compiler";
longDescription = ''
@@ -48,7 +61,7 @@ stdenv.mkDerivation rec {
'';
homepage = http://openscad.org/;
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers;
[ bjornfor raskin the-kenny ];
};
45 changes: 45 additions & 0 deletions pkgs/applications/misc/bemenu/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ stdenv, fetchFromGitHub, cairo, cmake, libxkbcommon
, pango, fribidi, harfbuzz, pcre, pkgconfig
, ncursesSupport ? true, ncurses ? null
, waylandSupport ? true, wayland ? null
, x11Support ? true, xlibs ? null, xorg ? null
}:

assert ncursesSupport -> ncurses != null;
assert waylandSupport -> wayland != null;
assert x11Support -> xlibs != null && xorg != null;

stdenv.mkDerivation rec {
pname = "bemenu";
version = "0.1.0";

src = fetchFromGitHub {
owner = "Cloudef";
repo = "bemenu";
rev = "33e540a2b04ce78f5c7ab4a60b899c67f586cc32";
sha256 = "11h55m9dx6ai12pqij52ydjm36dvrcc856pa834njihrp626pl4w";
};

nativeBuildInputs = [ cmake pkgconfig pcre ];

buildInputs = with stdenv.lib; [
cairo
fribidi
harfbuzz
libxkbcommon
pango
] ++ optionals ncursesSupport [ ncurses ]
++ optionals waylandSupport [ wayland ]
++ optionals x11Support [
xlibs.libX11 xlibs.libXinerama xlibs.libXft
xorg.libXdmcp xorg.libpthreadstubs xorg.libxcb
];

meta = with stdenv.lib; {
homepage = "https://github.com/Cloudef/bemenu";
description = "Dynamic menu library and client program inspired by dmenu";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ thiagokokada ];
platforms = with platforms; linux;
};
}
15 changes: 13 additions & 2 deletions pkgs/applications/misc/kitty/default.nix
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
harfbuzz, fontconfig, pkgconfig, ncurses, imagemagick, xsel,
libstartup_notification, libX11, libXrandr, libXinerama, libXcursor,
libxkbcommon, libXi, libXext, wayland-protocols, wayland,
which, dbus,
which, dbus, fetchpatch,
Cocoa,
CoreGraphics,
Foundation,
@@ -67,6 +67,17 @@ buildPythonApplication rec {
libstartup_notification = "${libstartup_notification}/lib/libstartup-notification-1.so";
})
] ++ stdenv.lib.optionals stdenv.isDarwin [
(fetchpatch {
name = "macos-symlink-1";
url = https://github.com/kovidgoyal/kitty/commit/bdeec612667f6976109247fe1750b10dda9c24c0.patch;
sha256 = "1d18x260w059qag80kgb2cgi2h4rricvqhwpbrw79s8yxzs7jhxk";
})
(fetchpatch {
# fixup of previous patch
name = "macos-symlink-2";
url = https://github.com/kovidgoyal/kitty/commit/af2c9a49b1ad31e94242295d88598591623fbf11.patch;
sha256 = "0k3dmgbvmh66j8k3h8dw6la6ma6f20fng6jjypy982kxvracsnl5";
})
./macos-10.11.patch
./no-lto.patch
./no-werror.patch
@@ -84,7 +95,7 @@ buildPythonApplication rec {
mkdir -p $out
${if stdenv.isDarwin then ''
mkdir "$out/bin"
ln -s ../Applications/kitty.app/Contents/MacOS/kitty "$out/bin/kitty"
ln -s ../Applications/kitty.app/Contents/MacOS/kitty-deref-symlink "$out/bin/kitty"
mkdir "$out/Applications"
cp -r kitty.app "$out/Applications/kitty.app"
'' else ''
4 changes: 2 additions & 2 deletions pkgs/applications/misc/tzupdate/default.nix
Original file line number Diff line number Diff line change
@@ -5,11 +5,11 @@ let
in
buildPythonApplication rec {
pname = "tzupdate";
version = "1.3.1";
version = "1.4.0";

src = fetchPypi {
inherit pname version;
sha256 = "085kp4v9ijhkfvr0r5rzn4z7nrkb2qig05j0bajb0gkgynwf8wnz";
sha256 = "1sc3z2bx2nhnxg82x0jy19pr8lw56chbr90c2lr11w495csqwhz7";
};

propagatedBuildInputs = [ requests ];
10 changes: 5 additions & 5 deletions pkgs/applications/misc/zathura/core/default.nix
Original file line number Diff line number Diff line change
@@ -32,15 +32,15 @@ stdenv.mkDerivation rec {
] ++ optional synctexSupport "-Dsynctex=enabled";

nativeBuildInputs = [
meson ninja pkgconfig appstream-glib desktop-file-utils python3.pkgs.sphinx
meson ninja pkgconfig desktop-file-utils python3.pkgs.sphinx
gettext makeWrapper libxml2
];
] ++ optional stdenv.isLinux appstream-glib;

buildInputs = [
gtk girara libintl libseccomp
sqlite glib file librsvg
gtk girara libintl sqlite glib file librsvg
] ++ optional synctexSupport texlive.bin.core
++ optional stdenv.isDarwin [ gtk-mac-integration ];
++ optional stdenv.isLinux libseccomp
++ optional stdenv.isDarwin gtk-mac-integration;

meta = {
homepage = https://pwmt.org/projects/zathura/;
3 changes: 2 additions & 1 deletion pkgs/applications/misc/zathura/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ config, pkgs
, useMupdf ? config.zathura.useMupdf or true
# zathura_pdf_mupdf fails to load _opj_create_decompress at runtime on Darwin (https://github.com/NixOS/nixpkgs/pull/61295#issue-277982980)
, useMupdf ? config.zathura.useMupdf or (!pkgs.stdenv.isDarwin)
, synctexSupport ? true }:

let
4 changes: 1 addition & 3 deletions pkgs/applications/misc/zathura/pdf-mupdf/default.nix
Original file line number Diff line number Diff line change
@@ -21,9 +21,7 @@ stdenv.mkDerivation rec {

buildInputs = [
zathura_core girara mupdf cairo
] ++ stdenv.lib.optional stdenv.isDarwin [
gtk-mac-integration
];
] ++ lib.optional stdenv.isDarwin gtk-mac-integration;

PKG_CONFIG_ZATHURA_PLUGINDIR= "lib/zathura";

4 changes: 2 additions & 2 deletions pkgs/applications/networking/p2p/tixati/default.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
name = "tixati-${version}";
version = "2.59";
version = "2.61";

src = fetchurl {
url = "https://download2.tixati.com/download/tixati-${version}-1.x86_64.manualinstall.tar.gz";
sha256 = "0vf5y9kj2g7psgdzv2r46jdh5krdps838ca4wwwxi0dd1mwa65my";
sha256 = "05f8lcsac2mr90bhk999qkj8wwd6igdl07389bqrd1ydjasacl2k";
};

installPhase = ''
4 changes: 2 additions & 2 deletions pkgs/applications/science/biology/eggnog-mapper/default.nix
Original file line number Diff line number Diff line change
@@ -12,8 +12,8 @@ python27Packages.buildPythonApplication rec {
};

patches = (fetchpatch {
url = https://github.com/eggnogdb/eggnog-mapper/pull/125/commits/b7828e4c8c1c453e391aef050f06ff3f84ff9faf.patch;
sha256 = "0nz1a7ybm4j5c7vdm3annnxz9036iam2044hia341a0am9wydmzk";
url = "https://github.com/eggnogdb/eggnog-mapper/commit/6972f601ade85b65090efca747d2302acb58507f.patch";
sha256 = "0abnmn0bh11jihf5d3cggiild1ykawzv5f5fhb4cyyi8fvy4hcxf";
});

buildInputs = [ makeWrapper ];
14 changes: 8 additions & 6 deletions pkgs/applications/version-management/src/default.nix
Original file line number Diff line number Diff line change
@@ -2,20 +2,21 @@

stdenv.mkDerivation rec {
name = "src-${version}";
version = "1.24";
version = "1.25";

src = fetchurl {
url = "http://www.catb.org/~esr/src/${name}.tar.gz";
sha256 = "0n9j2mywbm8c7mc5b3m7dvn6gff88wwwaygk4y1jivpg1f6s3k3l";
sha256 = "0qd10w8fwbrgaj8sx49q6cfhqq3ylhwn7nl9v6kxi1yjlw2p098p";
};

buildInputs = [ python rcs git makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ python rcs git ];

preConfigure = ''
patchShebangs .
'';

makeFlags = [ "prefix=$(out)" ];
makeFlags = [ "prefix=${placeholder "out"}" ];

postInstall = ''
wrapProgram $out/bin/src \
@@ -32,8 +33,9 @@ stdenv.mkDerivation rec {
will seem familiar to Subversion/Git/hg users, and no binary blobs
anywhere.
'';
homepage = http://www.catb.org/esr/src/;
license = licenses.bsd3;
homepage = "http://www.catb.org/esr/src/";
changelog = "https://gitlab.com/esr/src/raw/${version}/NEWS";
license = licenses.bsd2;
platforms = platforms.all;
maintainers = with maintainers; [ calvertvl AndersonTorres ];
};
21 changes: 11 additions & 10 deletions pkgs/build-support/docker/default.nix
Original file line number Diff line number Diff line change
@@ -216,7 +216,7 @@ rec {
find image/$extractionID/layer -name ".wh.*" -exec bash -c 'name="$(basename {}|sed "s/^.wh.//")"; mknod "$(dirname {})/$name" c 0 0; rm {}' \;
# Get the next lower directory and continue the loop.
lowerdir=$lowerdir''${lowerdir:+:}image/$extractionID/layer
lowerdir=image/$extractionID/layer''${lowerdir:+:}$lowerdir
done
mkdir work
@@ -585,9 +585,9 @@ rec {
layerID=$(sha256sum "$layer/json" | cut -d ' ' -f 1)
ln -s "$layer" "./image/$layerID"
manifestJson=$(echo "$manifestJson" | jq ".[0].Layers |= [\"$layerID/layer.tar\"] + .")
imageJson=$(echo "$imageJson" | jq ".history |= [{\"created\": \"$(jq -r .created ${configJson})\"}] + .")
imageJson=$(echo "$imageJson" | jq ".rootfs.diff_ids |= [\"sha256:$layerChecksum\"] + .")
manifestJson=$(echo "$manifestJson" | jq ".[0].Layers |= . + [\"$layerID/layer.tar\"]")
imageJson=$(echo "$imageJson" | jq ".history |= . + [{\"created\": \"$(jq -r .created ${configJson})\"}]")
imageJson=$(echo "$imageJson" | jq ".rootfs.diff_ids |= . + [\"sha256:$layerChecksum\"]")
done
imageJsonChecksum=$(echo "$imageJson" | sha256sum | cut -d ' ' -f1)
echo "$imageJson" > "image/$imageJsonChecksum.json"
@@ -779,23 +779,24 @@ rec {
# Use the temp folder we've been working on to create a new image.
mv temp image/$layerID
# Add the new layer ID to the beginning of the layer list
# Add the new layer ID to the end of the layer list
(
cat layer-list
# originally this used `sed -i "1i$layerID" layer-list`, but
# would fail if layer-list was completely empty.
echo "$layerID/layer.tar"
cat layer-list
) | ${pkgs.moreutils}/bin/sponge layer-list
# Create image json and image manifest
imageJson=$(cat ${baseJson} | jq ". + {\"rootfs\": {\"diff_ids\": [], \"type\": \"layers\"}}")
manifestJson=$(jq -n "[{\"RepoTags\":[\"$imageName:$imageTag\"]}]")
for layerTar in $(tac ./layer-list); do
for layerTar in $(cat ./layer-list); do
layerChecksum=$(sha256sum image/$layerTar | cut -d ' ' -f1)
imageJson=$(echo "$imageJson" | jq ".history |= [{\"created\": \"$(jq -r .created ${baseJson})\"}] + .")
imageJson=$(echo "$imageJson" | jq ".rootfs.diff_ids |= [\"sha256:$layerChecksum\"] + .")
manifestJson=$(echo "$manifestJson" | jq ".[0].Layers |= [\"$layerTar\"] + .")
imageJson=$(echo "$imageJson" | jq ".history |= . + [{\"created\": \"$(jq -r .created ${baseJson})\"}]")
# diff_ids order is from the bottom-most to top-most layer
imageJson=$(echo "$imageJson" | jq ".rootfs.diff_ids |= . + [\"sha256:$layerChecksum\"]")
manifestJson=$(echo "$manifestJson" | jq ".[0].Layers |= . + [\"$layerTar\"]")
done
imageJsonChecksum=$(echo "$imageJson" | sha256sum | cut -d ' ' -f1)
39 changes: 39 additions & 0 deletions pkgs/build-support/docker/examples.nix
Original file line number Diff line number Diff line change
@@ -187,4 +187,43 @@ rec {
runAsRoot = "touch /example-file";
fromImage = bash;
};

# 13. example of 3 layers images This image is used to verify the
# order of layers is correct.
# It allows to validate
# - the layer of parent are below
# - the order of parent layer is preserved at image build time
# (this is why there are 3 images)
layersOrder = let
l1 = pkgs.dockerTools.buildImage {
name = "l1";
tag = "latest";
extraCommands = ''
mkdir -p tmp
echo layer1 > tmp/layer1
echo layer1 > tmp/layer2
echo layer1 > tmp/layer3
'';
};
l2 = pkgs.dockerTools.buildImage {
name = "l2";
fromImage = l1;
tag = "latest";
extraCommands = ''
mkdir -p tmp
echo layer2 > tmp/layer2
echo layer2 > tmp/layer3
'';
};
in pkgs.dockerTools.buildImage {
name = "l3";
fromImage = l2;
tag = "latest";
contents = [ pkgs.coreutils ];
extraCommands = ''
mkdir -p tmp
echo layer3 > tmp/layer3
'';
};

}
12 changes: 6 additions & 6 deletions pkgs/development/tools/analysis/radare2/default.nix
Original file line number Diff line number Diff line change
@@ -110,12 +110,12 @@ in {
#<generated>
# DO NOT EDIT! Automatically generated by ./update.py
radare2 = generic {
version_commit = "21276";
gittap = "3.4.1";
gittip = "da30e593718d5149f2a3d520c7f79fe1c7ca46ef";
rev = "3.4.1";
version = "3.4.1";
sha256 = "02qfj11j8f37hl46m8h4x9pv161glgdr7q3rfhwmq46px9y7f17p";
version_commit = "21707";
gittap = "3.5.0";
gittip = "75cfab37c6cfd0caffb9a90a949f5e60282bbd6c";
rev = "3.5.0";
version = "3.5.0";
sha256 = "03zm74a4vpip4pzj1s3gm2bdihw0iz47w8sxbhjf74074x1ylpzv";
cs_ver = "4.0.1";
cs_sha256 = "0ijwxxk71nr9z91yxw20zfj4bbsbrgvixps5c7cpj163xlzlwba6";
};
4 changes: 2 additions & 2 deletions pkgs/misc/vscode-extensions/cpptools/default.nix
Original file line number Diff line number Diff line change
@@ -68,8 +68,8 @@ vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
name = "cpptools";
publisher = "ms-vscode";
version = "0.22.1";
sha256 = "1f79vbp19k1zm2y5djr4vim0h5y5rnm96rg8fx2h9zb8i559230k";
version = "0.23.0";
sha256 = "1c7qia60fgak5pisl1qzp2kvm1cs30b29rxpydk7j3lqcpqr5ixj";
};

buildInputs = [
4 changes: 2 additions & 2 deletions pkgs/misc/vscode-extensions/wakatime/default.nix
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@ in
mktplcRef = {
name = "vscode-wakatime";
publisher = "WakaTime";
version = "2.0.9";
sha256 = "0fbliim80ydq90c606jhl79fdcmmpb9fs402mvy3g9zmjixspnpb";
version = "2.1.0";
sha256 = "0a23l8vaj0yghfh9lbi453vjghaxgjmphfjy2s4lgrvq38j4bv9n";
};

postPatch = ''
4 changes: 2 additions & 2 deletions pkgs/tools/networking/tgt/default.nix
Original file line number Diff line number Diff line change
@@ -2,15 +2,15 @@
, docbook_xsl }:

let
version = "1.0.76";
version = "1.0.77";
in stdenv.mkDerivation rec {
name = "tgt-${version}";

src = fetchFromGitHub {
owner = "fujita";
repo = "tgt";
rev = "v${version}";
sha256 = "1q01ay0zn5gmy6df1iw1ic11p8zygxlp0r3nd887vvvjvlp3xrvc";
sha256 = "1qhck8v5057wn9nb1nsq6dzhvqzz51x8i3n0p1x36zbsmdjy2ajw";
};

buildInputs = [ libxslt systemd libaio docbook_xsl ];
50 changes: 32 additions & 18 deletions pkgs/tools/system/stress-ng/default.nix
Original file line number Diff line number Diff line change
@@ -3,12 +3,12 @@
}:

stdenv.mkDerivation rec {
name = "stress-ng-${version}";
version = "0.09.57";
pname = "stress-ng";
version = "0.09.58";

src = fetchurl {
url = "https://kernel.ubuntu.com/~cking/tarballs/stress-ng/${name}.tar.xz";
sha256 = "0xp55m1kif8hcjdcdhgaarghqf1gz5fa24qwl6zpmxkzl6bn002x";
url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.xz";
sha256 = "1rlll6wl0i0m21idfr3xr99pfgnb9wf9i35hsb0frmrpcvls06za";
};

# All platforms inputs then Linux-only ones
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
attr keyutils libaio libapparmor libcap lksctp-tools
];

patchPhase = ''
postPatch = ''
substituteInPlace Makefile --replace "/usr" ""
'';

@@ -27,25 +27,39 @@ stdenv.mkDerivation rec {
# mystery, though. :-(
enableParallelBuilding = (!stdenv.isi686);

installFlags = [ "DESTDIR=$(out)" ];
installFlags = [ "DESTDIR=${placeholder "out"}" ];

meta = with stdenv.lib; {
description = "Stress test a computer system";
longDescription = ''
Stress test a system in various selectable ways, exercising both various
physical subsystems and various operating system kernel interfaces:
- over 130 different stress tests
- over 70 CPU specific stress tests that exercise floating point,
integer, bit manipulation and control flow
- over 20 virtual memory stress tests
stress-ng was originally intended to make a machine work hard and trip
hardware issues such as thermal overruns as well as operating system
bugs that only occur when a system is being thrashed hard.
stress-ng will stress test a computer system in various selectable ways. It
was designed to exercise various physical subsystems of a computer as well as
the various operating system kernel interfaces. Stress-ng features:
* over 210 stress tests
* over 50 CPU specific stress tests that exercise floating point, integer,
bit manipulation and control flow
* over 20 virtual memory stress tests
* portable: builds on Linux, Solaris, *BSD, Minix, Android, MacOS X,
Debian Hurd, Haiku, Windows Subsystem for Linux and SunOs/Dilos with
gcc, clang, tcc and pcc.
stress-ng was originally intended to make a machine work hard and trip hardware
issues such as thermal overruns as well as operating system bugs that only
occur when a system is being thrashed hard. Use stress-ng with caution as some
of the tests can make a system run hot on poorly designed hardware and also can
cause excessive system thrashing which may be difficult to stop.
stress-ng can also measure test throughput rates; this can be useful to observe
performance changes across different operating system releases or types of
hardware. However, it has never been intended to be used as a precise benchmark
test suite, so do NOT use it in this manner.
'';
homepage = https://kernel.ubuntu.com/~cking/stress-ng/;
downloadPage = https://kernel.ubuntu.com/~cking/tarballs/stress-ng/;
homepage = "https://kernel.ubuntu.com/~cking/stress-ng/";
downloadPage = "https://kernel.ubuntu.com/~cking/tarballs/stress-ng/";
changelog = "https://kernel.ubuntu.com/git/cking/stress-ng.git/plain/debian/changelog?h=V${version}";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ c0bw3b ];
platforms = platforms.linux; # TODO: fix https://github.com/NixOS/nixpkgs/pull/50506#issuecomment-439635963
platforms = platforms.unix;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -24030,4 +24030,6 @@ in

wasmtime = callPackage ../development/interpreters/wasmtime {};

bemenu = callPackage ../applications/misc/bemenu { };

}