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: 467ce5a9f45a
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: 872d58ccb1b3
Choose a head ref

Commits on May 24, 2020

  1. Copy the full SHA
    b67e25b View commit details

Commits on May 25, 2020

  1. calibre: 4.15.0 -> 4.17.0

    r-ryantm committed May 25, 2020
    Copy the full SHA
    b0c33eb View commit details
  2. cwm: 6.6 -> 6.7

    r-ryantm committed May 25, 2020
    Copy the full SHA
    42aefde View commit details

Commits on May 27, 2020

  1. tintin: 2.02.02 -> 2.02.03

    r-ryantm committed May 27, 2020
    Copy the full SHA
    ff65352 View commit details
  2. zotero: 5.0.85 -> 5.0.87

    r-ryantm committed May 27, 2020
    Copy the full SHA
    49d5ab4 View commit details
  3. xbindkeys: 1.8.6 -> 1.8.7

    r-ryantm committed May 27, 2020
    Copy the full SHA
    f8abadf View commit details

Commits on May 28, 2020

  1. libcpuid: 0.4.1 -> 0.5.0

    r-ryantm committed May 28, 2020
    Copy the full SHA
    4ba0ba7 View commit details

Commits on Jun 2, 2020

  1. diffoscope: add missing tools

    `nix path-info -S` reports the following changes:
    diffoscope: 345M -> 356.7M
    diffoscope w/ enableBloat: 5.4G -> 6.1G
    
    Also re-enabled the tests and added the dependencies to checkInputs so
    the comparator tests are not automatically skipped.
    danielfullmer committed Jun 2, 2020
    Copy the full SHA
    8214b8b View commit details
  2. lightstep-tracer-cpp: 0.12.0 -> 0.13.0

    r-ryantm authored and Jon committed Jun 2, 2020
    Copy the full SHA
    0446bf0 View commit details
  3. xbanish: 1.6 -> 1.7

    r-ryantm authored and Jon committed Jun 2, 2020
    Copy the full SHA
    2c3ed60 View commit details
  4. xawtv: 3.106 -> 3.107

    r-ryantm authored and Jon committed Jun 2, 2020
    Copy the full SHA
    55a4178 View commit details
  5. pinnwand: 1.1.0 -> 1.1.1

    mweinelt authored and Jon committed Jun 2, 2020

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    6563ed4 View commit details
  6. libinstpatch: 1.1.4 -> 1.1.5

    r-ryantm authored and Jon committed Jun 2, 2020
    Copy the full SHA
    cb374f9 View commit details
  7. fossil: 2.10 -> 2.11

    r-ryantm authored and Jon committed Jun 2, 2020
    Copy the full SHA
    64de2db View commit details
  8. wire-desktop: linux 3.17.2924 -> 3.18.2925

    toonn authored and Jon committed Jun 2, 2020
    Copy the full SHA
    8662e58 View commit details
  9. wire-desktop: mac 3.17.3666 -> 3.18.3728

    toonn authored and Jon committed Jun 2, 2020
    Copy the full SHA
    7f07e99 View commit details
  10. pcm: 202003 -> 202005

    Rovanion authored and Jon committed Jun 2, 2020
    Copy the full SHA
    29fc454 View commit details
  11. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    83489ca View commit details
  12. python27Packages.pytest-factoryboy: init at 2.0.3

    winpat authored and Jon committed Jun 2, 2020
    Copy the full SHA
    259f344 View commit details
  13. projectm: adopt, Qt{4->5}, {2->3}1.3, patch rpath, clean-up closure

    Co-Authored-By: ajs124 <git@ajs124.de>
    2 people authored and veprbl committed Jun 2, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    veprbl Dmitry Kalinkin
    Copy the full SHA
    247b546 View commit details
  14. pre-commit: 1.21.0 -> 2.4.0

    kalekseev authored and Jon committed Jun 2, 2020
    Copy the full SHA
    49ca8ce View commit details
  15. Merge pull request #89195 from danielfullmer/diffoscope-tools

    diffoscope: add missing tools
    Ma27 authored Jun 2, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7729943 View commit details
  16. dbeaver: 7.0.5 -> 7.1.0

    jojosch authored and Jon committed Jun 2, 2020

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    d83cba6 View commit details
  17. rtags: 2.34 -> 2.38

    catern authored and Jon committed Jun 2, 2020
    Copy the full SHA
    9411424 View commit details
  18. flacon: 5.5.1 -> 6.0.0

    Also applied nixfmt
    
    Moved bin_path to separate attribute to allow overriding
    
    Fixed description
    snglth committed Jun 2, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    snglth Illia Shestakov
    Copy the full SHA
    e1c3bbf View commit details
  19. Merge pull request #89216 from snglth/flacon-6.0.0

    flacon: 5.5.1 -> 6.0.0
    veprbl authored Jun 2, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f1880fb View commit details

Commits on Jun 3, 2020

  1. Merge pull request #89054 from r-ryantm/auto-update/xbindkeys

    xbindkeys: 1.8.6 -> 1.8.7
    nh2 authored Jun 3, 2020

    Verified

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

    libcpuid: 0.4.1 -> 0.5.0
    nh2 authored Jun 3, 2020

    Verified

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

    zotero: 5.0.85 -> 5.0.87
    nh2 authored Jun 3, 2020

    Verified

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

    tintin: 2.02.02 -> 2.02.03
    nh2 authored Jun 3, 2020

    Verified

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

    cwm: 6.6 -> 6.7
    nh2 authored Jun 3, 2020

    Verified

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

    calibre: 4.15.0 -> 4.17.0
    nh2 authored Jun 3, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    872d58c View commit details
Showing with 243 additions and 134 deletions.
  1. +19 −10 pkgs/applications/audio/flacon/default.nix
  2. +53 −47 pkgs/applications/audio/projectm/default.nix
  3. +2 −2 pkgs/applications/misc/calibre/default.nix
  4. +2 −2 pkgs/applications/misc/dbeaver/default.nix
  5. +4 −4 pkgs/applications/networking/instant-messengers/wire-desktop/default.nix
  6. +2 −2 pkgs/applications/office/zotero/default.nix
  7. +2 −2 pkgs/applications/version-management/fossil/default.nix
  8. +2 −2 pkgs/applications/video/xawtv/default.nix
  9. +2 −2 pkgs/applications/window-managers/cwm/default.nix
  10. +5 −0 pkgs/development/libraries/accountsservice/default.nix
  11. +2 −2 pkgs/development/libraries/audio/libinstpatch/default.nix
  12. +2 −2 pkgs/development/libraries/lightstep-tracer-cpp/default.nix
  13. +11 −5 pkgs/development/python-modules/pre-commit/default.nix
  14. +11 −21 pkgs/development/python-modules/pre-commit/hook-tmpl-use-the-hardcoded-path-to-pre-commit.patch
  15. +26 −0 pkgs/development/python-modules/pre-commit/languages-use-the-hardcoded-path-to-python-binaries.patch
  16. +43 −0 pkgs/development/python-modules/pytest-factoryboy/default.nix
  17. +2 −2 pkgs/development/tools/rtags/default.nix
  18. +2 −2 pkgs/games/tintin/default.nix
  19. +2 −2 pkgs/os-specific/linux/pcm/default.nix
  20. +2 −2 pkgs/servers/pinnwand/default.nix
  21. +2 −2 pkgs/tools/X11/xbanish/default.nix
  22. +2 −2 pkgs/tools/X11/xbindkeys/default.nix
  23. +25 −16 pkgs/tools/misc/diffoscope/default.nix
  24. +12 −0 pkgs/tools/misc/diffoscope/skip-failing-test.patch
  25. +2 −2 pkgs/tools/misc/libcpuid/default.nix
  26. +2 −1 pkgs/top-level/all-packages.nix
  27. +2 −0 pkgs/top-level/python-packages.nix
29 changes: 19 additions & 10 deletions pkgs/applications/audio/flacon/default.nix
Original file line number Diff line number Diff line change
@@ -1,32 +1,41 @@
{ stdenv, lib, fetchFromGitHub, cmake, libuchardet, pkgconfig
, shntool, flac, opusTools, vorbis-tools, mp3gain, lame, wavpack, vorbisgain
, gtk3
, qtbase, qttools, wrapQtAppsHook
}:
{ stdenv, lib, fetchFromGitHub, cmake, libuchardet, pkgconfig, shntool, flac
, opusTools, vorbis-tools, mp3gain, lame, wavpack, vorbisgain, gtk3, qtbase
, qttools, wrapQtAppsHook }:

stdenv.mkDerivation rec {
pname = "flacon";
version = "5.5.1";
version = "6.0.0";

src = fetchFromGitHub {
owner = "flacon";
repo = "flacon";
rev = "v${version}";
sha256 = "05pvg5xhc2azwzld08m81r4b2krqdbcbm5lmdvg2zkk67xq9pqyd";
sha256 = "0p5z6rwckda0lkljrrvx6i90fazj53cxg9pasfmi8154j1z72dj2";
};

nativeBuildInputs = [ cmake pkgconfig wrapQtAppsHook ];
buildInputs = [ qtbase qttools libuchardet ];

bin_path = lib.makeBinPath [
shntool
flac
opusTools
vorbis-tools
mp3gain
lame
wavpack
vorbisgain
];

postInstall = ''
wrapProgram $out/bin/flacon \
--suffix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}" \
--prefix PATH : "${lib.makeBinPath [ shntool flac opusTools vorbis-tools
mp3gain lame wavpack vorbisgain ]}"
--prefix PATH : "$bin_path";
'';

meta = with stdenv.lib; {
description = "Extracts audio tracks from an audio CD image to separate tracks.";
description =
"Extracts audio tracks from an audio CD image to separate tracks";
homepage = "https://flacon.github.io/";
license = licenses.lgpl21;
platforms = platforms.linux;
100 changes: 53 additions & 47 deletions pkgs/applications/audio/projectm/default.nix
Original file line number Diff line number Diff line change
@@ -1,57 +1,63 @@
{ stdenv, fetchurl, fetchpatch, pkgconfig, cmake
, glew, ftgl, ttf_bitstream_vera
, withQt ? true, qt4
, withLibvisual ? false, libvisual, SDL
, withJack ? false, libjack2
, withPulseAudio ? true, libpulseaudio
{ mkDerivation
, lib
, fetchFromGitHub
, autoreconfHook
, pkgconfig
, SDL2
, qtdeclarative
, libpulseaudio
, glm
, which
}:

assert withJack -> withQt;
assert withPulseAudio -> withQt;
mkDerivation rec {
pname = "projectm";
version = "3.1.3";

stdenv.mkDerivation {
name = "projectm-2.1.0";

meta = {
description = "Music Visualizer";
homepage = "http://projectm.sourceforge.net/";
license = stdenv.lib.licenses.lgpl21Plus;
platforms = stdenv.lib.platforms.linux;
};

src = fetchurl {
url = "mirror://sourceforge/projectm/2.1.0/projectM-complete-2.1.0-Source.tar.gz";
sha256 = "1vh6jk68a0jdb6qwppb6f8cbgmhnv2ba3bcavzfd6sq06gq08cji";
src = fetchFromGitHub {
owner = "projectM-visualizer";
repo = "projectM";
rev = "v${version}";
sha256 = "1mjnahr694phksmvc069y89rv85s4l2z9fixkc3l1f5qj2vgn4sy";
};

patch_gcc6 = fetchpatch {
url = "https://raw.githubusercontent.com/gentoo/gentoo/45abd63abc6644b6e177c057b5b42d894dbf8e29/media-libs/libprojectm/files/libprojectm-2.1.0-fix-c++14.patch";
sha256 = "1i50scxv1jlqvb3jm3sql89a7wqckxhlpvnhz20vvmm1kii6lrsn";
};

patchPhase = ''
patch -d src/libprojectM -p1 -i "$patch_gcc6"
sed -i 's:''${LIBVISUAL_PLUGINSDIR}:''${CMAKE_INSTALL_PREFIX}/lib/libvisual-0.4:' \
src/projectM-libvisual/CMakeLists.txt
'';
nativeBuildInputs = [
pkgconfig
autoreconfHook
which
];

nativeBuildInputs = [ pkgconfig cmake ];
buildInputs = [
SDL2
qtdeclarative
libpulseaudio
glm
];

cmakeFlags = [
"-DprojectM_FONT_MENU=${ttf_bitstream_vera}/share/fonts/truetype/VeraMono.ttf"
"-DprojectM_FONT_TITLE=${ttf_bitstream_vera}/share/fonts/truetype/Vera.ttf"
"-DINCLUDE-PROJECTM-TEST=OFF"
"-DINCLUDE-PROJECTM-QT=${if withQt then "ON" else "OFF"}"
"-DINCLUDE-PROJECTM-LIBVISUAL=${if withLibvisual then "ON" else "OFF"}"
"-DINCLUDE-PROJECTM-JACK=${if withJack then "ON" else "OFF"}"
"-DINCLUDE-PROJECTM-PULSEAUDIO=${if withPulseAudio then "ON" else "OFF"}"
configureFlags = [
"--enable-qt"
"--enable-sdl"
];

buildInputs = with stdenv.lib;
[ glew ftgl ]
++ optional withQt qt4
++ optionals withLibvisual [ libvisual SDL ]
++ optional withJack libjack2
++ optional withPulseAudio libpulseaudio
;
fixupPhase = ''
# NOTE: 2019-10-05: Upstream inserts the src path buring build into ELF rpath, so must delete it out
# upstream report: https://github.com/projectM-visualizer/projectm/issues/245
for entry in $out/bin/* ; do
patchelf --set-rpath "$(patchelf --print-rpath $entry | tr ':' '\n' | grep -v 'src/libprojectM' | tr '\n' ':')" "$entry"
done
wrapQtApp $out/bin/projectM-pulseaudio
rm $out/bin/projectM-unittest
'';

meta = {
homepage = "https://github.com/projectM-visualizer/projectm";
description = "Cross-platform Milkdrop-compatible music visualizer";
license = lib.licenses.lgpl21;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ ajs124 ];
longDescription = ''
The open-source project that reimplements the esteemed Winamp Milkdrop by Geiss in a more modern, cross-platform reusable library.
Read an audio input and produces mesmerizing visuals, detecting tempo, and rendering advanced equations into a limitless array of user-contributed visualizations.
'';
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/misc/calibre/default.nix
Original file line number Diff line number Diff line change
@@ -30,11 +30,11 @@ let
in
mkDerivation rec {
pname = "calibre";
version = "4.15.0";
version = "4.17.0";

src = fetchurl {
url = "https://download.calibre-ebook.com/${version}/${pname}-${version}.tar.xz";
sha256 = "0m8mvyw5c1khd54jx896w6nfwaydmpi3cb6wi5p2a0hxdksqgrkm";
sha256 = "1qgzx2q8a5g102z311ibz4aw1ipn2j1lbndgadig7xvy6zdhknma";
};

patches = [
4 changes: 2 additions & 2 deletions pkgs/applications/misc/dbeaver/default.nix
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@

stdenv.mkDerivation rec {
pname = "dbeaver-ce";
version = "7.0.5";
version = "7.1.0";

desktopItem = makeDesktopItem {
name = "dbeaver";
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {

src = fetchurl {
url = "https://dbeaver.io/files/${version}/dbeaver-ce-${version}-linux.gtk.x86_64.tar.gz";
sha256 = "082a0dszdlynpf7lrkwijwcs2x8xmbzrjr8rrwmrmkznhzj50gqf";
sha256 = "1q3f5bghm3jw5c7c62ivf32fldjqhmj1a0qlwgqjxyhmfcig0rnb";
};

installPhase = ''
Original file line number Diff line number Diff line change
@@ -20,13 +20,13 @@ let
pname = "wire-desktop";

version = {
x86_64-darwin = "3.17.3666";
x86_64-linux = "3.17.2924";
x86_64-darwin = "3.18.3728";
x86_64-linux = "3.18.2925";
}.${system} or throwSystem;

sha256 = {
x86_64-darwin = "0r3ckfrdx0ah6wn364ii1q1laya2nmmfz9jsikc6ss28lijb6ipn";
x86_64-linux = "16f8zawdx7dyrb8hp3fd2j821jj7jlan60knmdlrrk84phlc9ldd";
x86_64-darwin = "0xi3k95yw59xsfavncc1giwxlwjz26z34qm3i604ksjjalvpzy5l";
x86_64-linux = "01g39hncj1w0zyfrzv4mgv8npwvx0g0lw99azyai99877b30bm8j";
}.${system} or throwSystem;

meta = with stdenv.lib; {
4 changes: 2 additions & 2 deletions pkgs/applications/office/zotero/default.nix
Original file line number Diff line number Diff line change
@@ -35,11 +35,11 @@

stdenv.mkDerivation rec {
pname = "zotero";
version = "5.0.85";
version = "5.0.87";

src = fetchurl {
url = "https://download.zotero.org/client/release/${version}/Zotero-${version}_linux-x86_64.tar.bz2";
sha256 = "0zqc27kld7rm3akmrnf9ba1x2hb9838cbv6i3nkqvg81ly5gfbxs";
sha256 = "01kq3w4il64gqz6s1vbv3iyzayv6rnx9igxk55awixi9g3qs21f1";
};

nativeBuildInputs = [ wrapGAppsHook ];
4 changes: 2 additions & 2 deletions pkgs/applications/version-management/fossil/default.nix
Original file line number Diff line number Diff line change
@@ -5,15 +5,15 @@

stdenv.mkDerivation rec {
pname = "fossil";
version = "2.10";
version = "2.11";

src = fetchurl {
urls =
[
"https://www.fossil-scm.org/index.html/uv/fossil-src-${version}.tar.gz"
];
name = "${pname}-${version}.tar.gz";
sha256 = "041bs4fgk52fw58p7s084pxk9d9vs5v2f2pjbznqawz75inpg8yq";
sha256 = "0c9nzx42wxfmym9vf1pnbdb1c7gp7a7zqky60izxsph7w2xh8nix";
};

buildInputs = [ zlib openssl readline sqlite which ed ]
4 changes: 2 additions & 2 deletions pkgs/applications/video/xawtv/default.nix
Original file line number Diff line number Diff line change
@@ -19,11 +19,11 @@
}:

stdenv.mkDerivation rec {
name = "xawtv-3.106";
name = "xawtv-3.107";

src = fetchurl {
url = "https://linuxtv.org/downloads/xawtv/${name}.tar.bz2";
sha256 = "174wd36rk0k23mgx9nlnpc398yd1f0wiv060963axg6sz0v4rksp";
sha256 = "055p0wia0xsj073l8mg4ifa6m81dmv6p45qyh99brramq5iylfy5";
};

buildInputs = [
4 changes: 2 additions & 2 deletions pkgs/applications/window-managers/cwm/default.nix
Original file line number Diff line number Diff line change
@@ -3,13 +3,13 @@
stdenv.mkDerivation rec {

pname = "cwm";
version = "6.6";
version = "6.7";

src = fetchFromGitHub {
owner = "leahneukirchen";
repo = pname;
rev = "v${version}";
sha256 = "1rvb4y37vw3bpkqa6fbizgc74x3nrlkk6yf5hlm0hf8qz0c17vbl";
sha256 = "0f9xmki2hx10k8iisfzc7nm1l31zkf1r06pdgn06ar9w9nizrld9";
};

nativeBuildInputs = [ pkgconfig ];
5 changes: 5 additions & 0 deletions pkgs/development/libraries/accountsservice/default.nix
Original file line number Diff line number Diff line change
@@ -54,6 +54,11 @@ stdenv.mkDerivation rec {
'';

patches = [
# https://gitlab.freedesktop.org/accountsservice/accountsservice/-/issues/55
(fetchpatch {
url = "https://gitlab.freedesktop.org/accountsservice/accountsservice/-/merge_requests/58.patch";
sha256 = "1pnwq4ycnryb2kkgvnz44qzm71240ybqj6507wynlkdsw8180fdw";
})
(substituteAll {
src = ./fix-paths.patch;
inherit shadow coreutils;
4 changes: 2 additions & 2 deletions pkgs/development/libraries/audio/libinstpatch/default.nix
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@

stdenv.mkDerivation rec {
pname = "libinstpatch";
version = "1.1.4";
version = "1.1.5";

src = fetchFromGitHub {
owner = "swami";
repo = pname;
rev = "v${version}";
sha256 = "1v7mv43xxwrzi3agrc60agcw46jaidr8ql9kkm1w4jxkf4c6z6dz";
sha256 = "0psx4hc5yksfd3k2xqsc7c8lbz2d4yybikyddyd9hlkhq979cmjb";
};

nativeBuildInputs = [ cmake pkg-config ];
4 changes: 2 additions & 2 deletions pkgs/development/libraries/lightstep-tracer-cpp/default.nix
Original file line number Diff line number Diff line change
@@ -9,13 +9,13 @@ assert enableGrpc -> c-ares != null;

stdenv.mkDerivation rec {
pname = "lightstep-tracer-cpp";
version = "0.12.0";
version = "0.13.0";

src = fetchFromGitHub {
owner = "lightstep";
repo = pname;
rev = "v${version}";
sha256 = "0zwj5r0rmfk6cm5ikay4kh7na455vskylc5yrxkhisn4n850d1l4";
sha256 = "0d7z9isf0n8s63mvp3j75949w0yv7jsva29i62lq8yxbym688fxb";
};

nativeBuildInputs = [
16 changes: 11 additions & 5 deletions pkgs/development/python-modules/pre-commit/default.nix
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@
, identify
, importlib-metadata
, importlib-resources
, isPy27
, nodeenv
, python
, six
@@ -15,16 +16,18 @@

buildPythonPackage rec {
pname = "pre-commit";
version = "1.21.0";
version = "2.4.0";
disabled = isPy27;

src = fetchPypi {
inherit version;
pname = "pre_commit";
sha256 = "0l5qg1cw4a0670m96s0ryy5mqz5aslfrrnwpriqgmrnsgdixhj4g";
sha256 = "1l0lcl3l2544m2k8jlmblfsjn0p2hdxrzzwy646xpvp0rcs2wgkh";
};

patches = [
./hook-tmpl-use-the-hardcoded-path-to-pre-commit.patch
./languages-use-the-hardcoded-path-to-python-binaries.patch
];

propagatedBuildInputs = [
@@ -36,16 +39,19 @@ buildPythonPackage rec {
six
toml
virtualenv
importlib-metadata
] ++ lib.optional (pythonOlder "3.7") importlib-resources
++ lib.optional (pythonOlder "3.2") futures;
] ++ lib.optional (pythonOlder "3.8") importlib-metadata
++ lib.optional (pythonOlder "3.7") importlib-resources;

# slow and impure
doCheck = false;

preFixup = ''
substituteInPlace $out/${python.sitePackages}/pre_commit/resources/hook-tmpl \
--subst-var-by pre-commit $out
substituteInPlace $out/${python.sitePackages}/pre_commit/languages/python.py \
--subst-var-by virtualenv ${virtualenv}
substituteInPlace $out/${python.sitePackages}/pre_commit/languages/node.py \
--subst-var-by nodeenv ${nodeenv}
'';

meta = with lib; {
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
From d9e6999e32112602ec276634cb004eda3ca64ec3 Mon Sep 17 00:00:00 2001
From: "Wael M. Nasreddine" <wael.nasreddine@gmail.com>
Date: Mon, 13 Jan 2020 11:04:58 -0800
Subject: [PATCH] hook-tmpl: use the hardcoded path to pre-commit, if found

---
pre_commit/resources/hook-tmpl | 2 ++
1 file changed, 2 insertions(+)

diff --git a/pre_commit/resources/hook-tmpl b/pre_commit/resources/hook-tmpl
index 213d16e..3a99211 100755
index 299144e..6d12543 100755
--- a/pre_commit/resources/hook-tmpl
+++ b/pre_commit/resources/hook-tmpl
@@ -107,6 +107,8 @@ def _exe() -> Tuple[str, ...]:
except OSError:
pass

+ if os.path.isfile('@pre-commit@/bin/pre-commit') and os.access('@pre-commit@/bin/pre-commit', os.X_OK):
+ return ('@pre-commit@/bin/pre-commit', 'run')
if distutils.spawn.find_executable('pre-commit'):
return ('pre-commit', 'run')

--
2.23.1
@@ -25,8 +25,8 @@ ARGS.append('--')
ARGS.extend(sys.argv[1:])

DNE = '`pre-commit` not found. Did you forget to activate your virtualenv?'
-if os.access(INSTALL_PYTHON, os.X_OK):
- CMD = [INSTALL_PYTHON, '-mpre_commit']
+if os.access('@pre-commit@/bin/pre-commit', os.X_OK):
+ CMD = ['@pre-commit@/bin/pre-commit']
elif which('pre-commit'):
CMD = ['pre-commit']
else:
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/pre_commit/languages/node.py b/pre_commit/languages/node.py
index 26f4919..4885ec1 100644
--- a/pre_commit/languages/node.py
+++ b/pre_commit/languages/node.py
@@ -82,7 +82,7 @@ def install_environment(
envdir = fr'\\?\{os.path.normpath(envdir)}'
with clean_path_on_failure(envdir):
cmd = [
- sys.executable, '-mnodeenv', '--prebuilt', '--clean-src', envdir,
+ '@nodeenv@/bin/nodeenv', '--prebuilt', '--clean-src', envdir,
]
if version != C.DEFAULT:
cmd.extend(['-n', version])
diff --git a/pre_commit/languages/python.py b/pre_commit/languages/python.py
index e17376e..0c1d2ab 100644
--- a/pre_commit/languages/python.py
+++ b/pre_commit/languages/python.py
@@ -204,7 +204,7 @@ def install_environment(
) -> None:
envdir = prefix.path(helpers.environment_dir(ENVIRONMENT_DIR, version))
python = norm_version(version)
- venv_cmd = (sys.executable, '-mvirtualenv', envdir, '-p', python)
+ venv_cmd = ('@virtualenv@/bin/virtualenv', envdir, '-p', python)
install_cmd = ('python', '-mpip', 'install', '.', *additional_dependencies)

with clean_path_on_failure(envdir):
43 changes: 43 additions & 0 deletions pkgs/development/python-modules/pytest-factoryboy/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{ stdenv
, fetchFromGitHub
, buildPythonPackage
, pytestCheckHook
, pytest
, inflection
, factory_boy
, pytestcache
, pytestcov
, pytestpep8
, mock
}:

buildPythonPackage rec {
pname = "pytest-factoryboy";
version = "2.0.3";

src = fetchFromGitHub {
owner = "pytest-dev";
repo = "pytest-factoryboy";
rev = version;
sha256 = "0m1snyybq2k51khlydhisq300vzys897vdbsicph628iran950hn";
};

propagatedBuildInputs = [ factory_boy inflection pytest ];

# The project uses tox, which we can't. So we simply run pytest manually.
checkInputs = [
mock
pytestCheckHook
pytestcache
pytestcov
pytestpep8
];
pytestFlagsArray = [ "--ignore=docs" ];

meta = with stdenv.lib; {
description = "Integration of factory_boy into the pytest runner.";
homepage = "https://pytest-factoryboy.readthedocs.io/en/latest/";
maintainers = with maintainers; [ winpat ];
license = licenses.mit;
};
}
4 changes: 2 additions & 2 deletions pkgs/development/tools/rtags/default.nix
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

stdenv.mkDerivation rec {
pname = "rtags";
version = "2.34";
version = "2.38";
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ llvmPackages.llvm openssl emacs ]
++ lib.optionals stdenv.cc.isGNU [ llvmPackages.clang-unwrapped ]
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
rev = "refs/tags/v${version}";
fetchSubmodules = true;
url = "https://github.com/andersbakken/rtags.git";
sha256 = "1smp2r9lkvf9rpjjy7dink9ncdakgsa31f2kdxvcpyggfz275m1n";
sha256 = "1iwvp7a69sj3wqjgcnyh581qrpicxzi2lfjkxqpabpyjkl5nk7hh";
# unicode file names lead to different checksums on HFS+ vs. other
# filesystems because of unicode normalisation
postFetch = ''
4 changes: 2 additions & 2 deletions pkgs/games/tintin/default.nix
Original file line number Diff line number Diff line change
@@ -6,11 +6,11 @@
assert tlsSupport -> gnutls != null;

stdenv.mkDerivation rec {
name = "tintin-2.02.02";
name = "tintin-2.02.03";

src = fetchurl {
url = "mirror://sourceforge/tintin/${name}.tar.gz";
sha256 = "11ylbp8ip7dwmh4gzb53z147pcfxkl3lwhyy8ngyn2zc634vdn65";
sha256 = "0ybgy8j8i36d7f892x539vl6fl5zvvfyy5ffc98550vjr6qqhk74";
};

nativeBuildInputs = lib.optional tlsSupport gnutls.dev;
4 changes: 2 additions & 2 deletions pkgs/os-specific/linux/pcm/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
version = "202003";
version = "202005";
pname = "pcm";

src = fetchFromGitHub {
owner = "opcm";
repo = "pcm";
rev = version;
sha256 = "1f83dhzrzgcyv5j5xxibvywvpg8sgf1g72f5x40cdb4149nwbfra";
sha256 = "10dyjgbxb263i64p4zfvy6xjb2hp7wg2k6ygsr8ikjawllxp8m01";
};

installPhase = ''
4 changes: 2 additions & 2 deletions pkgs/servers/pinnwand/default.nix
Original file line number Diff line number Diff line change
@@ -14,11 +14,11 @@ let
};
in with python.pkgs; buildPythonApplication rec {
pname = "pinnwand";
version = "1.1.0";
version = "1.1.1";

src = fetchPypi {
inherit pname version;
sha256 = "0j5fbdma9zahx8d4xdj167gqkshzn7c98587awrzxv7wwbmlazxd";
sha256 = "0332i4q7h8qa0lr0gvzskn5qim2l5wb2pi19irsh4b1vxyi24m23";
};

propagatedBuildInputs = [
4 changes: 2 additions & 2 deletions pkgs/tools/X11/xbanish/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{stdenv, fetchFromGitHub, libX11, libXi, libXt, libXfixes, libXext}:

stdenv.mkDerivation rec {
version = "1.6";
version = "1.7";
pname = "xbanish";

buildInputs = [
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
owner = "jcs";
repo = pname;
rev = "v${version}";
sha256 = "0vp8ja68hpmqkl61zyjar3czhmny1hbm74m8f393incfz1ymr3i8";
sha256 = "0ic5f7zgc32p5g1wxas9y5h8dhik0pvsa8wmn6skdry56gw9vg9q";
};

makeFlags=[ "PREFIX=$(out)" ];
4 changes: 2 additions & 2 deletions pkgs/tools/X11/xbindkeys/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{ stdenv, fetchurl, pkgconfig, libX11, guile }:

let version = "1.8.6"; in
let version = "1.8.7"; in
stdenv.mkDerivation {
pname = "xbindkeys";
inherit version;
src = fetchurl {
url = "https://www.nongnu.org/xbindkeys/xbindkeys-${version}.tar.gz";
sha256 = "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc";
sha256 = "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2";
};

nativeBuildInputs = [ pkgconfig ];
41 changes: 25 additions & 16 deletions pkgs/tools/misc/diffoscope/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
{ lib, stdenv, fetchurl, python3Packages, docutils, help2man
, acl, apktool, binutils-unwrapped, bzip2, cbfstool, cdrkit, colord, colordiff, coreutils, cpio, db, diffutils, dtc
, e2fsprogs, file, findutils, fontforge-fonttools, fpc, gettext, ghc, ghostscriptX, giflib, gnumeric, gnupg, gnutar
, gzip, imagemagick, jdk, libarchive, libcaca, llvm, lz4, mono, openssh, pdftk, pgpdump, poppler_utils, sng, sqlite
, squashfsTools, tcpdump, unoconv, unzip, xxd, xz
{ lib, stdenv, fetchurl, runCommand, makeWrapper, python3Packages, docutils, help2man
, abootimg, acl, apktool, binutils-unwrapped, build-tools, bzip2, cbfstool, cdrkit, colord, colordiff, coreutils, cpio, db, diffutils, dtc
, e2fsprogs, file, findutils, fontforge-fonttools, ffmpeg_4, fpc, gettext, ghc, ghostscriptX, giflib, gnumeric, gnupg, gnutar
, gzip, hdf5, imagemagick, jdk, libarchive, libcaca, llvm, lz4, mono, openssh, openssl, pdftk, pgpdump, poppler_utils, qemu, R
, sng, sqlite, squashfsTools, tcpdump, odt2txt, unzip, wabt, xxd, xz, zip, zstd
, enableBloat ? false
}:

# Note: when upgrading this package, please run the list-missing-tools.sh script as described below!
let
apksigner = runCommand "apksigner" { nativeBuildInputs = [ makeWrapper ]; } ''
mkdir -p $out/bin
makeWrapper "${jdk}/bin/java" "$out/bin/apksigner" \
--add-flags "-jar ${builtins.head build-tools}/libexec/android-sdk/build-tools/28.0.3/lib/apksigner.jar"
'';
in
python3Packages.buildPythonApplication rec {
pname = "diffoscope";
version = "146";
@@ -20,6 +27,7 @@ python3Packages.buildPythonApplication rec {

patches = [
./ignore_links.patch
./skip-failing-test.patch
];

postPatch = ''
@@ -35,23 +43,24 @@ python3Packages.buildPythonApplication rec {
# Most of the non-Python dependencies here are optional command-line tools for various file-format parsers.
# To help figuring out what's missing from the list, run: ./pkgs/tools/misc/diffoscope/list-missing-tools.sh
#
# Still missing these tools: abootimg docx2txt dumpxsb enjarify js-beautify lipo oggDump otool procyon-decompiler Rscript wasm2wat zipnode
# Also these libraries: python3-guestfs
# Still missing these tools: docx2txt dumppdf dumpxsb enjarify lipo ocamlobjinfo oggDump otool procyon
pythonPath = [
binutils-unwrapped bzip2 colordiff coreutils cpio db diffutils
dtc e2fsprogs file findutils fontforge-fonttools gettext gnutar gzip
libarchive libcaca lz4 pgpdump sng sqlite squashfsTools unzip xxd xz
libarchive libcaca lz4 openssl pgpdump sng sqlite squashfsTools unzip xxd
xz zip zstd
]
++ (with python3Packages; [ debian libarchive-c python_magic tlsh rpm progressbar33 ])
++ (with python3Packages; [
argcomplete debian defusedxml jsondiff jsbeautifier libarchive-c
python_magic progressbar33 pypdf2 rpm tlsh
])
++ lib.optionals stdenv.isLinux [ python3Packages.pyxattr acl cdrkit ]
++ lib.optionals enableBloat [
apktool cbfstool colord fpc ghc ghostscriptX giflib gnupg gnumeric imagemagick
llvm jdk mono openssh pdftk poppler_utils tcpdump unoconv
python3Packages.guestfs
];
++ lib.optionals enableBloat ([
abootimg apksigner apktool cbfstool colord ffmpeg_4 fpc ghc ghostscriptX giflib gnupg gnumeric
hdf5 imagemagick llvm jdk mono odt2txt openssh pdftk poppler_utils qemu R tcpdump wabt
] ++ (with python3Packages; [ binwalk guestfs h5py ]));

doCheck = false; # Calls 'mknod' in squashfs tests, which needs root
checkInputs = with python3Packages; [ pytest ];
checkInputs = with python3Packages; [ pytest ] ++ pythonPath;

postInstall = ''
make -C doc
12 changes: 12 additions & 0 deletions pkgs/tools/misc/diffoscope/skip-failing-test.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/tests/test_tools.py b/tests/test_tools.py
index f0010678..1c3c7ce1 100644
--- a/tests/test_tools.py
+++ b/tests/test_tools.py
@@ -21,6 +21,7 @@ import os
import pytest


+@pytest.mark.skip()
def test_sbin_added_to_path():
from diffoscope.tools import tool_required

4 changes: 2 additions & 2 deletions pkgs/tools/misc/libcpuid/default.nix
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@

stdenv.mkDerivation rec {
pname = "libcpuid";
version = "0.4.1";
version = "0.5.0";

src = fetchFromGitHub {
owner = "anrieff";
repo = "libcpuid";
rev = "v${version}";
sha256 = "03sya0fs76g86syl299lrn0vqjjcf8i0xd7fzaf42qhizbx03b88";
sha256 = "13v5x8gyka2v4kx52khwalb6ai328z7kk9jlipbbbys63p6nyddr";
};

patches = [
3 changes: 2 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -2939,6 +2939,7 @@ in
diction = callPackage ../tools/text/diction { };

diffoscope = callPackage ../tools/misc/diffoscope {
inherit (androidenv.androidPkgs_9_0) build-tools;
jdk = jdk8;
};

@@ -6093,7 +6094,7 @@ in

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

projectm = callPackage ../applications/audio/projectm { };
projectm = libsForQt5.callPackage ../applications/audio/projectm { };

proot = callPackage ../tools/system/proot { };

2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -1343,6 +1343,8 @@ in {

pytest-env = callPackage ../development/python-modules/pytest-env { };

pytest-factoryboy = callPackage ../development/python-modules/pytest-factoryboy { };

pytest-flask = callPackage ../development/python-modules/pytest-flask { };

pytest-mypy = callPackage ../development/python-modules/pytest-mypy { };