From 8e45ee9e4aebaebc27586ba58d17cf3dd975545e Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Thu, 12 May 2022 17:27:43 +0200 Subject: [PATCH 01/17] acme: unstable-2021-02-14 -> unstable-2021-11-05 --- pkgs/development/compilers/acme/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/compilers/acme/default.nix b/pkgs/development/compilers/acme/default.nix index cebcbf3b2fa5..9aadbd2459bf 100644 --- a/pkgs/development/compilers/acme/default.nix +++ b/pkgs/development/compilers/acme/default.nix @@ -2,23 +2,25 @@ stdenv.mkDerivation rec { pname = "acme"; - version = "unstable-2021-02-14"; + version = "unstable-2021-11-05"; src = fetchsvn { url = "svn://svn.code.sf.net/p/acme-crossass/code-0/trunk"; - rev = "319"; - sha256 = "sha256-VifIQ+UEVMKJ+cNS+Xxusazinr5Cgu1lmGuhqj/5Mpk="; + rev = "323"; + sha256 = "1dzvip90yf1wg0fhfghn96dwrhg289d06b624px9a2wwy3vp5ryg"; }; sourceRoot = "code-0-r${src.rev}/src"; - makeFlags = [ "BINDIR=$(out)/bin" ]; - postPatch = '' substituteInPlace Makefile \ --replace "= gcc" "?= gcc" ''; + enableParallelBuilding = true; + + makeFlags = [ "BINDIR=$(out)/bin" ]; + meta = with lib; { description = "A multi-platform cross assembler for 6502/6510/65816 CPUs"; homepage = "https://sourceforge.net/projects/acme-crossass/"; From 1c153a860df313079e19cbedfe6624a5273623fc Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Mon, 4 Jul 2022 00:40:10 +0300 Subject: [PATCH 02/17] fetchit: init at 0.0.1 Fixes: #172601 --- .../networking/cluster/fetchit/default.nix | 82 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 84 insertions(+) create mode 100644 pkgs/applications/networking/cluster/fetchit/default.nix diff --git a/pkgs/applications/networking/cluster/fetchit/default.nix b/pkgs/applications/networking/cluster/fetchit/default.nix new file mode 100644 index 000000000000..b4e7e66d7dce --- /dev/null +++ b/pkgs/applications/networking/cluster/fetchit/default.nix @@ -0,0 +1,82 @@ +{ lib +, stdenv +, buildGoModule +, fetchFromGitHub +, installShellFiles +, lvm2 +, pkg-config +}: + +buildGoModule rec { + pname = "fetchit"; + version = "0.0.1"; + + src = fetchFromGitHub { + owner = "containers"; + repo = "fetchit"; + rev = "v${version}"; + sha256 = "sha256-hxS/+/fbYOpMJ5VfvvG5l7wWKBUUR22rYn9X79DzUUk="; + }; + + vendorSha256 = "sha256-SyPd8P9s8R2YbGEPqFeztF98W1QyGSBumtirSdpm8VI="; + + subPackages = [ "cmd/fetchit" ]; + + nativeBuildInputs = [ pkg-config installShellFiles ]; + buildInputs = [ lvm2 ]; + + # Flags are derived from + # https://github.com/containers/fetchit/blob/v0.0.1/Makefile#L20-L29 + ldflags = [ + "-X k8s.io/client-go/pkg/version.gitMajor=0" + "-X k8s.io/client-go/pkg/version.gitMinor=0" + "-X k8s.io/client-go/pkg/version.gitTreeState=clean" + "-X k8s.io/client-go/pkg/version.gitVersion=v0.0.0" + "-X k8s.io/component-base/version.gitMajor=0" + "-X k8s.io/component-base/version.gitMajor=0" + "-X k8s.io/component-base/version.gitMinor=0" + "-X k8s.io/component-base/version.gitTreeState=clean" + "-X k8s.io/component-base/version.gitVersion=v0.0.0" + "-s" + "-w" + ]; + + tags = [ + "containers_image_openpgp" + "exclude_graphdriver_btrfs" + "gssapi" + "include_gcs" + "include_oss" + "netgo" + "osusergo" + "providerless" + ]; + + # There are no tests for cmd/fetchit. + doCheck = false; + + postInstall = '' + for i in bash fish zsh; do + installShellCompletion --cmd fetchit \ + --$i <($out/bin/fetchit completion $i) + done + ''; + + meta = with lib; { + description = "A tool to manage the life cycle and configuration of Podman containers"; + longDescription = '' + FetchIt allows for a GitOps based approach to manage containers running on + a single host or multiple hosts based on a git repository. This allows for + us to deploy a new host and provide the host a configuration value for + FetchIt and automatically any containers defined in the git repository and + branch will be deployed onto the host. This can be beneficial for + environments that do not require the complexity of Kubernetes to manage + the containers running on the host. + ''; + homepage = "https://fetchit.readthedocs.io"; + changelog = "https://github.com/containers/fetchit/releases/tag/${src.rev}"; + license = licenses.agpl3Plus; + maintainers = with maintainers; [ azahi ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ed03cb2a9aaa..1653dc9f549b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -767,6 +767,8 @@ with pkgs; inherit curl stdenv; }; + fetchit = callPackage ../applications/networking/cluster/fetchit { }; + fetchzip = callPackage ../build-support/fetchzip { } // { tests = pkgs.tests.fetchzip; From 2785e3ca786dd16136dd29753021a3144ba0f86f Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Mon, 4 Jul 2022 12:58:43 +0800 Subject: [PATCH 03/17] hdf4: simplify javaSupport For newer versions of JDK, the path to libawt.so does not exist. It can be omitted and detected by CMake correctly. --- pkgs/tools/misc/hdf4/default.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkgs/tools/misc/hdf4/default.nix b/pkgs/tools/misc/hdf4/default.nix index 98cd0cfbdee3..606f06d3405c 100644 --- a/pkgs/tools/misc/hdf4/default.nix +++ b/pkgs/tools/misc/hdf4/default.nix @@ -12,9 +12,6 @@ , javaSupport ? false , jdk }: -let - javabase = "${jdk}/jre/lib/${jdk.architecture}"; -in stdenv.mkDerivation rec { pname = "hdf"; version = "4.2.15"; @@ -84,8 +81,6 @@ stdenv.mkDerivation rec { ] ++ lib.optionals javaSupport [ "-DHDF4_BUILD_JAVA=ON" "-DJAVA_HOME=${jdk}" - "-DJAVA_AWT_LIBRARY=${javabase}/libawt.so" - "-DJAVA_JVM_LIBRARY=${javabase}/server/libjvm.so" ] ++ lib.optionals szipSupport [ "-DHDF4_ENABLE_SZIP_ENCODING=ON" "-DHDF4_ENABLE_SZIP_SUPPORT=ON" From 4a12c56ebdf3066692061f71376e22bcc48375c8 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Mon, 4 Jul 2022 14:01:23 +0800 Subject: [PATCH 04/17] hdfview: add support for darwin Copy HDFView.app to Applications folder. --- pkgs/tools/misc/hdfview/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/hdfview/default.nix b/pkgs/tools/misc/hdfview/default.nix index 6030913a2286..94acd6dcd947 100644 --- a/pkgs/tools/misc/hdfview/default.nix +++ b/pkgs/tools/misc/hdfview/default.nix @@ -37,7 +37,7 @@ stdenv.mkDerivation rec { installPhase = '' runHook preInstall - + '' + lib.optionalString stdenv.isLinux '' mkdir -p $out/bin $out/lib cp -a build/dist/HDFView/bin/HDFView $out/bin/ cp -a build/dist/HDFView/lib/app $out/lib/ @@ -45,7 +45,10 @@ stdenv.mkDerivation rec { mkdir -p $out/share/applications $out/share/icons/hicolor/32x32/apps cp src/HDFView.png $out/share/icons/hicolor/32x32/apps/ - + '' + lib.optionalString stdenv.isDarwin '' + mkdir -p $out/Applications + cp -a build/dist/HDFView.app $out/Applications/ + '' + '' runHook postInstall ''; @@ -53,6 +56,6 @@ stdenv.mkDerivation rec { description = "A visual tool for browsing and editing HDF4 and HDF5 files"; license = lib.licenses.free; # BSD-like homepage = "https://portal.hdfgroup.org/display/HDFVIEW/HDFView"; - platforms = lib.platforms.linux; + platforms = lib.platforms.linux ++ lib.platforms.darwin; }; } From f378595fd32b825dc9e53eb89da5676657606dbf Mon Sep 17 00:00:00 2001 From: "Kirill A. Korinsky" Date: Wed, 6 Jul 2022 01:23:24 +0200 Subject: [PATCH 05/17] jfsutils: keep include files and libfs.a --- pkgs/tools/filesystems/jfsutils/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/filesystems/jfsutils/default.nix b/pkgs/tools/filesystems/jfsutils/default.nix index 52b8fc4c3c28..9b7b520ce3aa 100644 --- a/pkgs/tools/filesystems/jfsutils/default.nix +++ b/pkgs/tools/filesystems/jfsutils/default.nix @@ -5,7 +5,7 @@ stdenv.mkDerivation rec { version = "1.1.15"; src = fetchurl { - url = "http://jfs.sourceforge.net/project/pub/jfsutils-${version}.tar.gz"; + url = "mirror://sourceforge/jfs/jfsutils-${version}.tar.gz"; sha256 = "0kbsy2sk1jv4m82rxyl25gwrlkzvl3hzdga9gshkxkhm83v1aji4"; }; @@ -31,6 +31,14 @@ stdenv.mkDerivation rec { # `xchklog_buffer'; display.o:/build/jfsutils-1.1.15/fscklog/display.c:57: first defined here NIX_CFLAGS_COMPILE = "-fcommon"; + # this required for wipefreespace + postInstall = '' + mkdir -p $out/include + cp include/*.h $out/include + mkdir -p $out/lib + cp ./libfs/libfs.a $out/lib + ''; + meta = with lib; { description = "IBM JFS utilities"; homepage = "http://jfs.sourceforge.net"; From bf40759a3579135def7f5dc4d8aa0b10f1c03eda Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Tue, 5 Jul 2022 12:36:12 +0300 Subject: [PATCH 06/17] zint: init at 2.11.0 Fixes: #176559 --- pkgs/development/libraries/zint/default.nix | 51 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/development/libraries/zint/default.nix diff --git a/pkgs/development/libraries/zint/default.nix b/pkgs/development/libraries/zint/default.nix new file mode 100644 index 000000000000..e7663009c59d --- /dev/null +++ b/pkgs/development/libraries/zint/default.nix @@ -0,0 +1,51 @@ +{ lib +, stdenv +, fetchFromGitHub +, wrapQtAppsHook +, cmake +, qtbase +, qttools +, nix-update-script +}: + +stdenv.mkDerivation rec { + pname = "zint"; + version = "2.11.0"; + + src = fetchFromGitHub { + owner = "woo-j"; + repo = "zint"; + rev = version; + sha256 = "sha256-DtfyXBBEDcltGUAutHl/ksRTTYmS7Ll9kjfgD7NmBbA="; + }; + + outputs = [ "out" "dev" ]; + + nativeBuildInputs = [ cmake wrapQtAppsHook ]; + + buildInputs = [ qtbase qttools ]; + + postInstall = '' + install -Dm644 $src/zint-qt.desktop $out/share/applications/zint-qt.desktop + install -Dm644 $src/zint-qt.png $out/share/pixmaps/zint-qt.png + install -Dm644 $src/frontend_qt/images/scalable/zint-qt.svg $out/share/icons/hicolor/scalable/apps/zint-qt.svg + ''; + + passthru.updateScript = nix-update-script { + attrPath = pname; + }; + + meta = with lib; { + description = "A barcode generating tool and library"; + longDescription = '' + The Zint project aims to provide a complete cross-platform open source + barcode generating solution. The package currently consists of a Qt based + GUI, a CLI command line executable and a library with an API to allow + developers access to the capabilities of Zint. + ''; + homepage = "http://www.zint.org.uk"; + changelog = "https://github.com/woo-j/zint/blob/${version}/ChangeLog"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ azahi ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c79431daf6bc..8aa829a767e7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12228,6 +12228,8 @@ with pkgs; zinit = callPackage ../shells/zsh/zinit {} ; + zint = qt6Packages.callPackage ../development/libraries/zint { }; + zs-apc-spdu-ctl = callPackage ../tools/networking/zs-apc-spdu-ctl { }; zs-wait4host = callPackage ../tools/networking/zs-wait4host { }; From 651842bd856effbcdbbd888b704613547a1c89cb Mon Sep 17 00:00:00 2001 From: "Kirill A. Korinsky" Date: Wed, 6 Jul 2022 13:21:11 +0200 Subject: [PATCH 07/17] reiser4progs: share libreiser4misc.a.la --- pkgs/tools/filesystems/reiser4progs/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/filesystems/reiser4progs/default.nix b/pkgs/tools/filesystems/reiser4progs/default.nix index cef1af964b02..9f9b3bd5c2ed 100644 --- a/pkgs/tools/filesystems/reiser4progs/default.nix +++ b/pkgs/tools/filesystems/reiser4progs/default.nix @@ -21,6 +21,12 @@ stdenv.mkDerivation rec { substituteInPlace Makefile --replace ./run-ldconfig true ''; + # this required for wipefreespace + postInstall = '' + mkdir -p $out/lib + cp ./libmisc/.libs/libmisc.a $out/lib/libreiser4misc.a.la + ''; + meta = with lib; { inherit version; homepage = "https://sourceforge.net/projects/reiser4/"; From 9573c61a7ce2e4e98a8f16103f90566735b04200 Mon Sep 17 00:00:00 2001 From: "Kirill A. Korinsky" Date: Wed, 6 Jul 2022 13:22:08 +0200 Subject: [PATCH 08/17] wipefreespace: init at 2.5 --- .../filesystems/wipefreespace/default.nix | 54 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 56 insertions(+) create mode 100644 pkgs/tools/filesystems/wipefreespace/default.nix diff --git a/pkgs/tools/filesystems/wipefreespace/default.nix b/pkgs/tools/filesystems/wipefreespace/default.nix new file mode 100644 index 000000000000..885d64f7c41f --- /dev/null +++ b/pkgs/tools/filesystems/wipefreespace/default.nix @@ -0,0 +1,54 @@ +{ stdenv +, pkgs +, lib +, fetchurl +, e2fsprogs +, ntfs3g +, xfsprogs +, reiser4progs +, libaal +, jfsutils +, libuuid +, texinfo +}: + +stdenv.mkDerivation rec { + pname = "wipefreespace"; + version = "2.5"; + + src = fetchurl { + url = "mirror://sourceforge/project/wipefreespace/wipefreespace/${version}/wipefreespace-${version}.tar.gz"; + hash = "sha256-wymV6G4Et5TCoIztZfdb3xuzjdBHFyB5OmI4EcsJKwQ="; + }; + + nativeBuildInputs = [ + texinfo + ]; + + # missed: Reiser3 FAT12/16/32 MinixFS HFS+ OCFS + buildInputs = [ + e2fsprogs + ntfs3g + xfsprogs + reiser4progs + libaal + jfsutils + libuuid + ]; + + strictDeps = true; + + preConfigure = '' + export PATH=$PATH:${xfsprogs}/bin + export CFLAGS=-I${jfsutils}/include + export LDFLAGS="-L${jfsutils}/lib -L${reiser4progs}/lib" + ''; + + meta = with lib; { + description = "A program which will securely wipe the free space"; + homepage = "https://wipefreespace.sourceforge.io"; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ catap ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3770016107c5..27e40a7d132e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11971,6 +11971,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Foundation IOBluetooth; }; + wipefreespace = callPackage ../tools/filesystems/wipefreespace {}; + woeusb = callPackage ../tools/misc/woeusb { }; woeusb-ng = callPackage ../tools/misc/woeusb-ng { }; From f33e04326c4c8f92c5a6b08b6e0fb1df258b0c24 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 6 Jul 2022 17:35:33 -0400 Subject: [PATCH 09/17] cirrus-cli: init at 0.81.1 --- .../cirrus-cli/default.nix | 34 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/tools/continuous-integration/cirrus-cli/default.nix diff --git a/pkgs/development/tools/continuous-integration/cirrus-cli/default.nix b/pkgs/development/tools/continuous-integration/cirrus-cli/default.nix new file mode 100644 index 000000000000..5b5d13164bf0 --- /dev/null +++ b/pkgs/development/tools/continuous-integration/cirrus-cli/default.nix @@ -0,0 +1,34 @@ +{ lib +, fetchFromGitHub +, buildGoModule +}: + +buildGoModule rec { + pname = "cirrus-cli"; + version = "0.81.1"; + + src = fetchFromGitHub { + owner = "cirruslabs"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-qbo7QGPvPLalKbiApkpTtPSeIh1SjqEuKXBIuHJJBB8="; + }; + + vendorSha256 = "sha256-XVGFJv9TYjuwVubTcFVI2b+M2ZDE1Jv4u/dxowcLL2s="; + + ldflags = [ + "-X github.com/cirruslabs/cirrus-cli/internal/version.Version=v${version}" + "-X github.com/cirruslabs/cirrus-cli/internal/version.Commit=v${version}" + ]; + + # tests fail on read-only filesystem + doCheck = false; + + meta = with lib; { + description = "CLI for executing Cirrus tasks locally and in any CI"; + homepage = "https://github.com/cirruslabs/cirrus-cli"; + license = licenses.agpl3Only; + maintainers = with maintainers; [ techknowlogick ]; + mainProgram = "cirrus"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0c4dbe02f8ff..4e28cf2bd261 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4860,6 +4860,8 @@ with pkgs; citrix_workspace = citrix_workspace_22_05_0; + cirrus-cli = callPackage ../development/tools/continuous-integration/cirrus-cli { }; + inherit (callPackage ../applications/networking/remote/citrix-workspace { }) citrix_workspace_21_01_0 citrix_workspace_21_03_0 From 06189dc2f4b60927673c64e11313417c0bd7833a Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 7 Jul 2022 10:45:58 +0000 Subject: [PATCH 10/17] =?UTF-8?q?xdg-desktop-portal-gnome:=2042.1=20?= =?UTF-8?q?=E2=86=92=2042.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/compare/42.1...42.3 --- .../libraries/xdg-desktop-portal-gnome/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/xdg-desktop-portal-gnome/default.nix b/pkgs/development/libraries/xdg-desktop-portal-gnome/default.nix index d0f50dee4d58..199994038b5b 100644 --- a/pkgs/development/libraries/xdg-desktop-portal-gnome/default.nix +++ b/pkgs/development/libraries/xdg-desktop-portal-gnome/default.nix @@ -18,11 +18,11 @@ stdenv.mkDerivation rec { pname = "xdg-desktop-portal-gnome"; - version = "42.1"; + version = "42.3"; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; - sha256 = "doW2aVzZi+gjgXECDByXE8RkfSaAAGyYzo5N+FgxLNI="; + sha256 = "TtEFpmfkYyVGcQPcc0bSAj+uwdXsFTvRcxbak49TrOA="; }; nativeBuildInputs = [ @@ -55,6 +55,7 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Backend implementation for xdg-desktop-portal for the GNOME desktop environment"; + homepage = "https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome"; maintainers = teams.gnome.members; platforms = platforms.linux; license = licenses.lgpl21Plus; From 69fe24c8581f36d070495488f909776aa2e22215 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 7 Jul 2022 12:48:56 +0000 Subject: [PATCH 11/17] electron-cash: 4.2.7 -> 4.2.10 --- pkgs/applications/misc/electron-cash/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/electron-cash/default.nix b/pkgs/applications/misc/electron-cash/default.nix index 7fe091cf7732..a6545db64cad 100644 --- a/pkgs/applications/misc/electron-cash/default.nix +++ b/pkgs/applications/misc/electron-cash/default.nix @@ -3,13 +3,13 @@ python3Packages.buildPythonApplication rec { pname = "electron-cash"; - version = "4.2.7"; + version = "4.2.10"; src = fetchFromGitHub { owner = "Electron-Cash"; repo = "Electron-Cash"; - rev = version; - sha256 = "sha256-m8a3x5fPSrnrCH30MToT3aKtX35nFUbeerR7ubWgOOI="; + rev = "refs/tags/${version}"; + sha256 = "sha256-m13wJlNBG3BxOdKUyd3qmIhFBM7263FzMKr5lfD1tys="; }; propagatedBuildInputs = with python3Packages; [ From eb3e42ea5f36d0932baad06a2e5358010c9ca60c Mon Sep 17 00:00:00 2001 From: ajs124 Date: Mon, 4 Jul 2022 03:46:24 +0200 Subject: [PATCH 12/17] element-web: remove unused nodejs buildInput --- .../networking/instant-messengers/element/element-web.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/applications/networking/instant-messengers/element/element-web.nix b/pkgs/applications/networking/instant-messengers/element/element-web.nix index 0049ccd6a33d..3b4394604598 100644 --- a/pkgs/applications/networking/instant-messengers/element/element-web.nix +++ b/pkgs/applications/networking/instant-messengers/element/element-web.nix @@ -7,7 +7,6 @@ , jq , yarn , fixup_yarn_lock -, nodejs , jitsi-meet , conf ? { } }: From a4802cfcbf6f96b9dec4e6f64f14e7a04956e129 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Mon, 4 Jul 2022 13:31:01 +0200 Subject: [PATCH 13/17] element-desktop: use nodejs 16 (default) for dependencies --- .../instant-messengers/element/keytar/default.nix | 6 +++--- .../instant-messengers/element/seshat/default.nix | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/element/keytar/default.nix b/pkgs/applications/networking/instant-messengers/element/keytar/default.nix index 9d46657e0ab5..550d01695ca0 100644 --- a/pkgs/applications/networking/instant-messengers/element/keytar/default.nix +++ b/pkgs/applications/networking/instant-messengers/element/keytar/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, nodejs-14_x, python3, callPackage, removeReferencesTo +{ lib, stdenv, fetchFromGitHub, nodejs, python3, callPackage, removeReferencesTo , fixup_yarn_lock, yarn, pkg-config, libsecret, xcbuild, Security, AppKit, fetchYarnDeps }: let @@ -15,12 +15,12 @@ in stdenv.mkDerivation rec { sha256 = pinData.srcHash; }; - nativeBuildInputs = [ nodejs-14_x python3 yarn pkg-config ] + nativeBuildInputs = [ nodejs python3 yarn pkg-config ] ++ lib.optional stdenv.isDarwin xcbuild; buildInputs = lib.optionals (!stdenv.isDarwin) [ libsecret ] ++ lib.optionals stdenv.isDarwin [ Security AppKit ]; - npm_config_nodedir = nodejs-14_x; + npm_config_nodedir = nodejs; yarnOfflineCache = fetchYarnDeps { yarnLock = ./yarn.lock; diff --git a/pkgs/applications/networking/instant-messengers/element/seshat/default.nix b/pkgs/applications/networking/instant-messengers/element/seshat/default.nix index 3c4ac2f52ae1..97d6a7d5204a 100644 --- a/pkgs/applications/networking/instant-messengers/element/seshat/default.nix +++ b/pkgs/applications/networking/instant-messengers/element/seshat/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, rustPlatform, fetchFromGitHub, callPackage, sqlcipher, nodejs-14_x, python3, yarn, fixup_yarn_lock, CoreServices, fetchYarnDeps, removeReferencesTo }: +{ lib, stdenv, rustPlatform, fetchFromGitHub, callPackage, sqlcipher, nodejs, python3, yarn, fixup_yarn_lock, CoreServices, fetchYarnDeps, removeReferencesTo }: let pinData = lib.importJSON ./pin.json; @@ -16,10 +16,10 @@ in rustPlatform.buildRustPackage rec { sourceRoot = "source/seshat-node/native"; - nativeBuildInputs = [ nodejs-14_x python3 yarn ]; + nativeBuildInputs = [ nodejs python3 yarn ]; buildInputs = [ sqlcipher ] ++ lib.optional stdenv.isDarwin CoreServices; - npm_config_nodedir = nodejs-14_x; + npm_config_nodedir = nodejs; yarnOfflineCache = fetchYarnDeps { yarnLock = src + "/seshat-node/yarn.lock"; From 1ed9ba08f1e83a5fdcebcffa0aff2d5b4452c9b1 Mon Sep 17 00:00:00 2001 From: Yarny0 <41838844+Yarny0@users.noreply.github.com> Date: Tue, 10 May 2022 20:19:39 +0200 Subject: [PATCH 14/17] tsm-client: fix patching rpath with autoPatchelf Since commit https://github.com/NixOS/nixpkgs/commit/7b9fd5d1c9802131ca0a01ff08a3ff64379d2df4 tsm-client no longer produces working binaries (discovered with bisection). Instead, calling the command line client `dsmc` just produces the error > error while loading shared libraries: libtsmxerces-depdom.so.28: cannot open shared object file: No such file or directory Output of `ldd $out/dsmc` > linux-vdso.so.1 (0x00007ffd89f70000) > libgsk8ssl_64.so => /nix/store/i21g0x44g336ag8rkx0dgndb9v4w2xhk-tsm-client-8.1.13.3-unwrapped/local/ibm/gsk8_64/lib64/libgsk8ssl_64.so (0x0000791c8eb34000) > libgsk8iccs_64.so => /nix/store/i21g0x44g336ag8rkx0dgndb9v4w2xhk-tsm-client-8.1.13.3-unwrapped/local/ibm/gsk8_64/lib64/libgsk8iccs_64.so (0x0000791c8e9b7000) > libgsk8km_64.so => /nix/store/i21g0x44g336ag8rkx0dgndb9v4w2xhk-tsm-client-8.1.13.3-unwrapped/local/ibm/gsk8_64/lib64/libgsk8km_64.so (0x0000791c8e791000) > libxmlutil-8.1.13.0.so => /nix/store/i21g0x44g336ag8rkx0dgndb9v4w2xhk-tsm-client-8.1.13.3-unwrapped/opt/tivoli/tsm/client/api/bin64/libxmlutil-8.1.13.0.so (0x0000791c8e675000) > libcrypt.so.1 => /nix/store/qjgj2642srlbr59wwdihnn66sw97ming-glibc-2.33-123/lib/libcrypt.so.1 (0x0000791c8e639000) > libpthread.so.0 => /nix/store/qjgj2642srlbr59wwdihnn66sw97ming-glibc-2.33-123/lib/libpthread.so.0 (0x0000791c8e619000) > libdl.so.2 => /nix/store/qjgj2642srlbr59wwdihnn66sw97ming-glibc-2.33-123/lib/libdl.so.2 (0x0000791c8e614000) > libstdc++.so.6 => /nix/store/ndnqiz3nnifj1blhg9q626xlmkqq1nmh-gcc-10.3.0-lib/lib/libstdc++.so.6 (0x0000791c8e43f000) > libgpfs.so => /nix/store/i21g0x44g336ag8rkx0dgndb9v4w2xhk-tsm-client-8.1.13.3-unwrapped/opt/tivoli/tsm/client/api/bin64/libgpfs.so (0x0000791c8e22a000) > libdmapi.so => /nix/store/i21g0x44g336ag8rkx0dgndb9v4w2xhk-tsm-client-8.1.13.3-unwrapped/opt/tivoli/tsm/client/api/bin64/libdmapi.so (0x0000791c8e020000) > librt.so.1 => /nix/store/qjgj2642srlbr59wwdihnn66sw97ming-glibc-2.33-123/lib/librt.so.1 (0x0000791c8e015000) > libm.so.6 => /nix/store/qjgj2642srlbr59wwdihnn66sw97ming-glibc-2.33-123/lib/libm.so.6 (0x0000791c8ded4000) > libgcc_s.so.1 => /nix/store/ndnqiz3nnifj1blhg9q626xlmkqq1nmh-gcc-10.3.0-lib/lib/libgcc_s.so.1 (0x0000791c8deba000) > libc.so.6 => /nix/store/qjgj2642srlbr59wwdihnn66sw97ming-glibc-2.33-123/lib/libc.so.6 (0x0000791c8dce5000) > libgsk8cms_64.so => /nix/store/i21g0x44g336ag8rkx0dgndb9v4w2xhk-tsm-client-8.1.13.3-unwrapped/local/ibm/gsk8_64/lib64/libgsk8cms_64.so (0x0000791c8d78d000) > /nix/store/4s21k8k7p1mfik0b33r2spq5hq7774k1-glibc-2.33-108/lib/ld-linux-x86-64.so.2 => /nix/store/qjgj2642srlbr59wwdihnn66sw97ming-glibc-2.33-123/lib64/ld-linux-x86-64.so.2 (0x0000791c8f074000) > libtsmxerces-depdom.so.28 => not found > libtsmxerces-c.so.28 => not found Output of `ldd $out/lib/libtsmxerces-depdom.so.28` > linux-vdso.so.1 (0x00007fff69388000) > libpthread.so.0 => /nix/store/qjgj2642srlbr59wwdihnn66sw97ming-glibc-2.33-123/lib/libpthread.so.0 (0x000078f150454000) > libtsmxerces-c.so.28 => not found > libstdc++.so.6 => /nix/store/ndnqiz3nnifj1blhg9q626xlmkqq1nmh-gcc-10.3.0-lib/lib/libstdc++.so.6 (0x000078f15027f000) > libm.so.6 => /nix/store/qjgj2642srlbr59wwdihnn66sw97ming-glibc-2.33-123/lib/libm.so.6 (0x000078f15013e000) > libgcc_s.so.1 => /nix/store/ndnqiz3nnifj1blhg9q626xlmkqq1nmh-gcc-10.3.0-lib/lib/libgcc_s.so.1 (0x000078f150124000) > libc.so.6 => /nix/store/qjgj2642srlbr59wwdihnn66sw97ming-glibc-2.33-123/lib/libc.so.6 (0x000078f14ff4d000) > /nix/store/qjgj2642srlbr59wwdihnn66sw97ming-glibc-2.33-123/lib64/ld-linux-x86-64.so.2 (0x000078f150601000) The commit given above rewrote the `autoPatchelfHook`. The new hook still calls `patchelf` to actually modify binary files, but the discovery of shared libraries apparently got changed. Thorough investigation of all `patchelf` calls in the old and new autoPatchelfHook showed that all files are treated equally up the the files * $out/opt/tivoli/tsm/client/api/bin64/libtsmxerces-depdom.so.28.0 * $out/opt/tivoli/tsm/client/api/bin64/libxmlutil-8.1.13.0.so where the new autoPatchelf implementation replaced `$out/lib` with `$out/opt/tivoli/tsm/client/api/bin64` in the rpath. I failed to see *why* the new algorithm does that, or if that might be considered a bug. The `tsm-client` package has some confusing symlink structure which certainly might confuse `autoPatchelfHook`. The following ideas to "restore" the old behaviour of `autoPatchelfHook` failed to produce a working package: * add "$out" or "${placeholder "out"}" to `runtimeDependencies` * use `addAutoPatchelfSearchPath` with `$out/lib` or another so-file-containing directory The commit at hand fixes the issue by directly adding `$out/lib` to the rpath of all shared libraries in that directory. This has to be done *after* `autoPatchelf` got executed. To accomplish this, we disable auto-calling `autoPatchelf` (it would run after `postFixup`) and instead call it manually in `postFixup`, just before we patch the rpath by hand. --- pkgs/tools/backup/tsm-client/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/tools/backup/tsm-client/default.nix b/pkgs/tools/backup/tsm-client/default.nix index eb80f33bcd7a..6c37967fa1a4 100644 --- a/pkgs/tools/backup/tsm-client/default.nix +++ b/pkgs/tools/backup/tsm-client/default.nix @@ -160,6 +160,16 @@ let ln --symbolic --force --no-target-directory "$out/$(cut -b 7- <<< "$target")" "$link" done ''; + + # since 7b9fd5d1c9802131ca0a01ff08a3ff64379d2df4 + # autopatchelf misses to add $out/lib to rpath; + # we have to call autopatchelf manually as it would + # run too late and overwrite our rpath otherwise + dontAutoPatchelf = true; + postFixup = '' + autoPatchelf $out + patchelf --add-rpath $out/lib $out/lib/* + ''; }; binPath = lib.makeBinPath ([ acl gnugrep procps ] From 4f4aa9685a7860a140100f31bd8c2108d65526d6 Mon Sep 17 00:00:00 2001 From: Yarny0 <41838844+Yarny0@users.noreply.github.com> Date: Thu, 7 Jul 2022 19:11:21 +0200 Subject: [PATCH 15/17] tsm-client: 8.1.14.0 -> 8.1.15.0 IBM's "Authorized Program Analysis Report"s (something like release notes): https://www.ibm.com/support/pages/node/6590857 README: https://www.ibm.com/support/pages/node/6593819 Security Bulletins: https://www.ibm.com/support/pages/node/6596379 (CVE-2021-35550, CVE-2021-35603) https://www.ibm.com/support/pages/node/6596741 (CVE-2022-22478, CVE-2022-22474) https://www.ibm.com/support/pages/node/6596399 (CVE-2022-0778) --- pkgs/tools/backup/tsm-client/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/backup/tsm-client/default.nix b/pkgs/tools/backup/tsm-client/default.nix index 6c37967fa1a4..18da00055279 100644 --- a/pkgs/tools/backup/tsm-client/default.nix +++ b/pkgs/tools/backup/tsm-client/default.nix @@ -107,10 +107,10 @@ let unwrapped = stdenv.mkDerivation rec { name = "tsm-client-${version}-unwrapped"; - version = "8.1.14.0"; + version = "8.1.15.0"; src = fetchurl { url = mkSrcUrl version; - sha256 = "1iczc4w8rwzqnw01r89kwxcdr7pnwh3nqr3a0q8ncrxrhsy3qwn0"; + hash = "sha512-K98irjGvN2QejwbOoRhnHkYdFX3ZQ8hv+v2Gb2/pnr9AE1uj6h0lEXQu2cOEHbk7jMtGwpglzofCF7yUyT/tcw=="; }; inherit meta passthru; From 3e65be6910588fd20fe20cdcae5bcc4833995805 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 7 Jul 2022 19:36:20 +0000 Subject: [PATCH 16/17] bugdom: 1.3.1 -> 1.3.2 --- pkgs/games/bugdom/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/games/bugdom/default.nix b/pkgs/games/bugdom/default.nix index d1cadd04be05..75bcad2f0db1 100644 --- a/pkgs/games/bugdom/default.nix +++ b/pkgs/games/bugdom/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "bugdom"; - version = "1.3.1"; + version = "1.3.2"; src = fetchFromGitHub { owner = "jorio"; repo = pname; rev = version; - sha256 = "sha256-rhbsVgAkDdRJxbCCzJbsy5TbVdmP7MFqz+7nELiN4Yw="; + sha256 = "sha256-pgms2mipW1zol35LVCuU5+7mN7CBiVGFvu1CJ3CrGU0="; fetchSubmodules = true; }; From 134c7be40b4764a4f57ff546d5d594f20e3e9f3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Sun, 26 Jun 2022 21:26:03 +1000 Subject: [PATCH 17/17] reaper: add support for pipewire-jack --- pkgs/applications/audio/reaper/default.nix | 10 ++++++---- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/audio/reaper/default.nix b/pkgs/applications/audio/reaper/default.nix index d186755eccea..d3c0508aef97 100644 --- a/pkgs/applications/audio/reaper/default.nix +++ b/pkgs/applications/audio/reaper/default.nix @@ -11,8 +11,10 @@ , xdg-utils , which -, jackSupport ? true, libjack2 -, pulseaudioSupport ? config.pulseaudio or true, libpulseaudio +, jackSupport ? true +, jackLibrary +, pulseaudioSupport ? config.pulseaudio or true +, libpulseaudio }: stdenv.mkDerivation rec { @@ -43,7 +45,7 @@ stdenv.mkDerivation rec { runtimeDependencies = [ gtk3 # libSwell needs libgdk-3.so.0 ] - ++ lib.optional jackSupport libjack2 + ++ lib.optional jackSupport jackLibrary ++ lib.optional pulseaudioSupport libpulseaudio; dontBuild = true; @@ -79,6 +81,6 @@ stdenv.mkDerivation rec { sourceProvenance = with sourceTypes; [ binaryNativeCode ]; license = licenses.unfree; platforms = [ "x86_64-linux" "aarch64-linux" ]; - maintainers = with maintainers; [ jfrankenau ilian orivej uniquepointer ]; + maintainers = with maintainers; [ jfrankenau ilian orivej uniquepointer viraptor ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 45a89043efa6..e6887e194fc3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29577,7 +29577,9 @@ with pkgs; rdup = callPackage ../tools/backup/rdup { }; - reaper = callPackage ../applications/audio/reaper { }; + reaper = callPackage ../applications/audio/reaper { + jackLibrary = libjack2; # Another option is "pipewire.jack". + }; recapp = callPackage ../applications/video/recapp { };