From 7bb2feb4fca6e5ec42adbf3a0f5b6cb012dcedd3 Mon Sep 17 00:00:00 2001 From: Ryan Horiguchi Date: Sun, 3 Apr 2022 15:03:49 +0200 Subject: [PATCH 01/54] vscode-extensions.adpyke.codesnap: init 1.3.4 --- .../editors/vscode/extensions/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/applications/editors/vscode/extensions/default.nix b/pkgs/applications/editors/vscode/extensions/default.nix index a5c8dcfb50f5..1ee9595d6287 100644 --- a/pkgs/applications/editors/vscode/extensions/default.nix +++ b/pkgs/applications/editors/vscode/extensions/default.nix @@ -67,6 +67,18 @@ let }; }; + adpyke.codesnap = buildVscodeMarketplaceExtension { + mktplcRef = { + name = "codesnap"; + publisher = "adpyke"; + version = "1.3.4"; + sha256 = "sha256-dR6qODSTK377OJpmUqG9R85l1sf9fvJJACjrYhSRWgQ="; + }; + meta = { + license = lib.licenses.mit; + }; + }; + alefragnani.project-manager = buildVscodeMarketplaceExtension { mktplcRef = { name = "project-manager"; From f136b6a73010431bbd869e9488b84b55464428dd Mon Sep 17 00:00:00 2001 From: Matt Whiteley Date: Mon, 4 Apr 2022 16:42:04 -0700 Subject: [PATCH 02/54] zoom.us: darwin support --- .../instant-messengers/zoom-us/default.nix | 47 +++++++++++++++++-- 1 file changed, 43 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix index 4aa9dbc9b10c..19974f885765 100644 --- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix +++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix @@ -2,6 +2,8 @@ , lib , fetchurl , makeWrapper +, xar +, cpio # Dynamic libraries , alsa-lib , atk @@ -28,8 +30,24 @@ }: let - version = "5.9.6.2225"; + inherit (stdenv.hostPlatform) system; + throwSystem = throw "Unsupported system: ${system}"; + + version = { + aarch64-darwin = "5.10.1.5839"; + x86_64-darwin = "5.10.1.5839"; + x86_64-linux = "5.9.6.2225"; + }.${system} or throwSystem; + srcs = { + aarch64-darwin = fetchurl { + url = "https://zoom.us/client/${version}/Zoom.pkg?archType=arm64"; + sha256 = "0jg5f9hvb67hhfnifpx5fzz65fcijldy1znlia6pqflxwci3m5rq"; + }; + x86_64-darwin = fetchurl { + url = "https://zoom.us/client/${version}/Zoom.pkg"; + sha256 = "1p83691bid8kz5mw09x6l9zvjglfszi5vbhfmbbpiqhiqcxlfz83"; + }; x86_64-linux = fetchurl { url = "https://zoom.us/client/${version}/zoom_x86_64.pkg.tar.xz"; sha256 = "0rynpw2fjn9j75f34rk0rgqn9wzyzgzmwh1a3xcx7hqingv45k53"; @@ -71,21 +89,42 @@ stdenv.mkDerivation rec { src = srcs.${stdenv.hostPlatform.system}; - dontUnpack = true; + unpackPhase = lib.optionalString stdenv.isDarwin '' + xar -xf $src + zcat < zoomus.pkg/Payload | cpio -i + ''; nativeBuildInputs = [ makeWrapper + ] + ++ lib.optionals stdenv.isDarwin [ + xar + cpio ]; - installPhase = '' + installPhase = { + aarch64-darwin = '' + runHook preInstall + mkdir -p $out/Applications/zoom.us.app + cp -R . $out/Applications/zoom.us.app + runHook postInstall + ''; + x86_64-darwin = '' + runHook preInstall + mkdir -p $out/Applications/zoom.us.app + cp -R . $out/Applications/zoom.us.app + runHook postInstall + ''; + x86_64-linux = '' runHook preInstall mkdir $out tar -C $out -xf $src mv $out/usr/* $out/ runHook postInstall ''; + }.${stdenv.hostPlatform.system}; - postFixup = '' + postFixup = lib.optionalString stdenv.isLinux '' # Desktop File substituteInPlace $out/share/applications/Zoom.desktop \ --replace "Exec=/usr/bin/zoom" "Exec=$out/bin/zoom" From 5b44ce3367f58f7985ee9dfdc24edde595154f11 Mon Sep 17 00:00:00 2001 From: Matt Whiteley Date: Tue, 5 Apr 2022 09:39:31 -0700 Subject: [PATCH 03/54] The Linux tarball doesn't have a top level directory which is already dealt with in `installPhase` --- .../networking/instant-messengers/zoom-us/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix index 19974f885765..b98cbe37f628 100644 --- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix +++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix @@ -89,6 +89,7 @@ stdenv.mkDerivation rec { src = srcs.${stdenv.hostPlatform.system}; + dontUnpack = if stdenv.isLinux then true else null; unpackPhase = lib.optionalString stdenv.isDarwin '' xar -xf $src zcat < zoomus.pkg/Payload | cpio -i From aef5702d2bf2b4ed8e56cc42260e586fd5f82285 Mon Sep 17 00:00:00 2001 From: Matt Whiteley Date: Tue, 5 Apr 2022 11:09:39 -0700 Subject: [PATCH 04/54] Don't duplicate `installPhase` on both Darwin platforms. --- .../instant-messengers/zoom-us/default.nix | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix index b98cbe37f628..02a8dc17f3f3 100644 --- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix +++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix @@ -103,27 +103,18 @@ stdenv.mkDerivation rec { cpio ]; - installPhase = { - aarch64-darwin = '' + installPhase = if stdenv.isDarwin then '' runHook preInstall mkdir -p $out/Applications/zoom.us.app cp -R . $out/Applications/zoom.us.app runHook postInstall - ''; - x86_64-darwin = '' - runHook preInstall - mkdir -p $out/Applications/zoom.us.app - cp -R . $out/Applications/zoom.us.app - runHook postInstall - ''; - x86_64-linux = '' + '' else '' runHook preInstall mkdir $out tar -C $out -xf $src mv $out/usr/* $out/ runHook postInstall ''; - }.${stdenv.hostPlatform.system}; postFixup = lib.optionalString stdenv.isLinux '' # Desktop File From 33bf05f46a6214eb2ad2d379909ba2192689aef4 Mon Sep 17 00:00:00 2001 From: Wanja Hentze Date: Thu, 21 Apr 2022 15:07:57 +0200 Subject: [PATCH 05/54] openjdk: 11.0.12+7 -> 11.0.15.+10 Fixes several security vulnerabilities, see https://openjdk.java.net/groups/vulnerability/advisories/2022-04-19 --- pkgs/development/compilers/openjdk/11.nix | 13 ++++++---- .../openjdk/fix-library-path-jdk11.patch | 24 ++++++++++++++++--- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/pkgs/development/compilers/openjdk/11.nix b/pkgs/development/compilers/openjdk/11.nix index 8c45bece9adc..1a74a78fc6c4 100644 --- a/pkgs/development/compilers/openjdk/11.nix +++ b/pkgs/development/compilers/openjdk/11.nix @@ -11,8 +11,8 @@ let major = "11"; minor = "0"; - update = "12"; - build = "7"; + update = "15"; + build = "10"; openjdk = stdenv.mkDerivation rec { pname = "openjdk" + lib.optionalString headless "-headless"; @@ -22,7 +22,7 @@ let owner = "openjdk"; repo = "jdk${major}u"; rev = "jdk-${version}"; - sha256 = "0s8g6gj5vhm7hbp05cqaxasjrkwr41fm634qim8q6slklm4pkkli"; + sha256 = "le2JDxPJPSuga4JxLJNRZwCaodptSb2kh4TsJXumTXs="; }; nativeBuildInputs = [ pkg-config autoconf unzip ]; @@ -40,7 +40,6 @@ let ./currency-date-range-jdk10.patch ./increase-javadoc-heap.patch ./fix-library-path-jdk11.patch - ./fix-glibc-2.34.patch ] ++ lib.optionals (!headless && enableGnome2) [ ./swing-use-gtk-jdk10.patch ]; @@ -61,13 +60,17 @@ let "--with-zlib=system" "--with-lcms=system" "--with-stdc++lib=dynamic" + "--disable-warnings-as-errors" ] ++ lib.optional stdenv.isx86_64 "--with-jvm-features=zgc" ++ lib.optional headless "--enable-headless-only" ++ lib.optional (!headless && enableJavaFX) "--with-import-modules=${openjfx}"; separateDebugInfo = true; - NIX_CFLAGS_COMPILE = "-Wno-error"; + # Workaround for + # `cc1plus: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]` + # when building jtreg + NIX_CFLAGS_COMPILE = "-Wformat"; NIX_LDFLAGS = toString (lib.optionals (!headless) [ "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic" diff --git a/pkgs/development/compilers/openjdk/fix-library-path-jdk11.patch b/pkgs/development/compilers/openjdk/fix-library-path-jdk11.patch index 21263dd68926..ce30edb7f1d9 100644 --- a/pkgs/development/compilers/openjdk/fix-library-path-jdk11.patch +++ b/pkgs/development/compilers/openjdk/fix-library-path-jdk11.patch @@ -1,16 +1,31 @@ +From 83f97773ea99fe2191a49e551ea43d51c9a765cd Mon Sep 17 00:00:00 2001 +Subject: [PATCH] strip some hard-coded default paths for libs and extensions + +--- + src/hotspot/os/linux/os_linux.cpp | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + diff --git a/src/hotspot/os/linux/os_linux.cpp b/src/hotspot/os/linux/os_linux.cpp -index 0dbe03349e..847d56778d 100644 +index 476b1c2175..2695ed2301 100644 --- a/src/hotspot/os/linux/os_linux.cpp +++ b/src/hotspot/os/linux/os_linux.cpp -@@ -326,13 +326,13 @@ void os::init_system_properties_values() { +@@ -417,20 +417,20 @@ void os::init_system_properties_values() { // ... // 7: The default directories, normally /lib and /usr/lib. #if defined(AMD64) || (defined(_LP64) && defined(SPARC)) || defined(PPC64) || defined(S390) - #define DEFAULT_LIBPATH "/usr/lib64:/lib64:/lib:/usr/lib" ++ #define DEFAULT_LIBPATH "" + #else + #if defined(AARCH64) + // Use 32-bit locations first for AARCH64 (a 64-bit architecture), since some systems + // might not adhere to the FHS and it would be a change in behaviour if we used + // DEFAULT_LIBPATH of other 64-bit architectures which prefer the 64-bit paths. +- #define DEFAULT_LIBPATH "/lib:/usr/lib:/usr/lib64:/lib64" + #define DEFAULT_LIBPATH "" #else - #define DEFAULT_LIBPATH "/lib:/usr/lib" + #define DEFAULT_LIBPATH "" + #endif // AARCH64 #endif // Base path of extensions installed on the system. @@ -19,7 +34,7 @@ index 0dbe03349e..847d56778d 100644 #define EXTENSIONS_DIR "/lib/ext" // Buffer that fits several sprintfs. -@@ -392,13 +392,13 @@ void os::init_system_properties_values() { +@@ -490,13 +490,13 @@ void os::init_system_properties_values() { strlen(v) + 1 + sizeof(SYS_EXT_DIR) + sizeof("/lib/") + sizeof(DEFAULT_LIBPATH) + 1, mtInternal); @@ -35,3 +50,6 @@ index 0dbe03349e..847d56778d 100644 Arguments::set_ext_dirs(buf); FREE_C_HEAP_ARRAY(char, buf); +-- +2.35.1 + From aca95cc45983012212129c8ba824479a7b149ded Mon Sep 17 00:00:00 2001 From: Wanja Hentze Date: Thu, 21 Apr 2022 15:30:59 +0200 Subject: [PATCH 06/54] openjdk: 17.0.1+12 -> 17.0.3.+7 Fixes several security vulnerabilities, see https://openjdk.java.net/groups/vulnerability/advisories/2022-04-19 --- pkgs/development/compilers/openjdk/17.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/openjdk/17.nix b/pkgs/development/compilers/openjdk/17.nix index 757fe8f101ed..de12711894f7 100644 --- a/pkgs/development/compilers/openjdk/17.nix +++ b/pkgs/development/compilers/openjdk/17.nix @@ -11,8 +11,8 @@ let version = { feature = "17"; - interim = ".0.1"; - build = "12"; + interim = ".0.3"; + build = "7"; }; openjdk = stdenv.mkDerivation { @@ -23,7 +23,7 @@ let owner = "openjdk"; repo = "jdk${version.feature}u"; rev = "jdk-${version.feature}${version.interim}+${version.build}"; - sha256 = "1l1jgbz8q7zq66npfg88r0l5xga427vrz35iys09j44b6qllrldd"; + sha256 = "qxiKz8HCNZXFdfgfiA16q5z0S65cZE/u7e+QxLlplWo="; }; nativeBuildInputs = [ pkg-config autoconf unzip ]; From 804ee6ef179bad4911858bbf087125568c16c0dc Mon Sep 17 00:00:00 2001 From: Ingo Blechschmidt Date: Sun, 17 Apr 2022 18:56:28 +0200 Subject: [PATCH 07/54] texlive: improve reproducibility Co-authored-by: Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> --- pkgs/tools/typesetting/tex/texlive/combine.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/typesetting/tex/texlive/combine.nix b/pkgs/tools/typesetting/tex/texlive/combine.nix index d4c9d0cde80b..8686502a1345 100644 --- a/pkgs/tools/typesetting/tex/texlive/combine.nix +++ b/pkgs/tools/typesetting/tex/texlive/combine.nix @@ -225,7 +225,7 @@ in (buildEnv { perl `type -P mktexlsr.pl` --sort ./share/texmf ${bin.texlinks}/bin/texlinks "$out/bin" && wrapBin - perl `type -P fmtutil.pl` --sys --all | grep '^fmtutil' # too verbose + FORCE_SOURCE_DATE=1 perl `type -P fmtutil.pl` --sys --all | grep '^fmtutil' # too verbose #${bin.texlinks}/bin/texlinks "$out/bin" && wrapBin # do we need to regenerate format links? # Disable unavailable map files @@ -233,6 +233,9 @@ in (buildEnv { # Regenerate the map files (this is optional) perl `type -P updmap.pl` --sys --force + # sort entries to improve reproducibility + [[ -f "$TEXMFSYSCONFIG"/web2c/updmap.cfg ]] && sort -o "$TEXMFSYSCONFIG"/web2c/updmap.cfg "$TEXMFSYSCONFIG"/web2c/updmap.cfg + perl `type -P mktexlsr.pl` --sort ./share/texmf-* # to make sure '' + # install (wrappers for) scripts, based on a list from upstream texlive @@ -299,7 +302,12 @@ in (buildEnv { ) fi '' - + bin.cleanBrokenLinks + + bin.cleanBrokenLinks + + # Get rid of all log files. They are not needed, but take up space + # and render the build unreproducible by their embedded timestamps. + '' + find $TEXMFSYSVAR/web2c -name '*.log' -delete + '' ; }).overrideAttrs (_: { allowSubstitutes = true; }) # TODO: make TeX fonts visible by fontconfig: it should be enough to install an appropriate file From ef57e2fb8ddb4f9cf290af15a3aa11f0c52ffb49 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sat, 23 Apr 2022 14:35:52 -0400 Subject: [PATCH 08/54] common-updater-scripts/list-git-tags: prefer src.meta.homepage --- pkgs/common-updater/scripts/list-git-tags | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/common-updater/scripts/list-git-tags b/pkgs/common-updater/scripts/list-git-tags index 176e647eb2ea..86b4949f055d 100755 --- a/pkgs/common-updater/scripts/list-git-tags +++ b/pkgs/common-updater/scripts/list-git-tags @@ -31,7 +31,7 @@ done # By default we set url to src.url or src.meta.homepage if [[ -z "$url" ]]; then url="$(nix-instantiate $systemArg --eval -E \ - "with import ./. {}; $UPDATE_NIX_ATTR_PATH.src.url or $UPDATE_NIX_ATTR_PATH.src.meta.homepage" \ + "with import ./. {}; $UPDATE_NIX_ATTR_PATH.src.meta.homepage or $UPDATE_NIX_ATTR_PATH.src.url" \ | tr -d '"')" fi From f14a57c95b9256b079076d8137eee634e16ba0fa Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sat, 23 Apr 2022 14:47:54 -0400 Subject: [PATCH 09/54] gitUpdater: update comment for url --- pkgs/common-updater/git-updater.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/common-updater/git-updater.nix b/pkgs/common-updater/git-updater.nix index edeb2dfb2c65..b68f4a29011d 100644 --- a/pkgs/common-updater/git-updater.nix +++ b/pkgs/common-updater/git-updater.nix @@ -10,8 +10,8 @@ , rev-prefix ? "" , odd-unstable ? false , patchlevel-unstable ? false -# explicit url is useful when git protocol is used only for tags listing -# while actual release is referred by tarball +# an explicit url is needed when src.meta.homepage or src.url don't +# point to a git repo (eg. when using fetchurl, fetchzip, ...) , url ? null }: From be590c34c62ff4c3a65064bf4f620ee1d07722fa Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sat, 23 Apr 2022 15:07:16 -0400 Subject: [PATCH 10/54] mirakurun: use gitUpdater --- pkgs/applications/video/mirakurun/default.nix | 6 ++---- pkgs/applications/video/mirakurun/update.nix | 10 +++------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/pkgs/applications/video/mirakurun/default.nix b/pkgs/applications/video/mirakurun/default.nix index 53f1467ee8eb..d0d52ade25ad 100644 --- a/pkgs/applications/video/mirakurun/default.nix +++ b/pkgs/applications/video/mirakurun/default.nix @@ -6,9 +6,8 @@ { lib , stdenvNoCC , bash -, common-updater-scripts , fetchFromGitHub -, genericUpdater +, gitUpdater , jq , makeWrapper , mkYarnPackage @@ -80,8 +79,7 @@ stdenvNoCC.mkDerivation rec { inherit pname version - common-updater-scripts - genericUpdater + gitUpdater writers jq yarn diff --git a/pkgs/applications/video/mirakurun/update.nix b/pkgs/applications/video/mirakurun/update.nix index 18a4d0ab2562..6fd13f81b87a 100644 --- a/pkgs/applications/video/mirakurun/update.nix +++ b/pkgs/applications/video/mirakurun/update.nix @@ -2,8 +2,7 @@ , version , homepage , lib -, common-updater-scripts -, genericUpdater +, gitUpdater , writers , jq , yarn @@ -11,15 +10,12 @@ }: let - updater = genericUpdater { + updater = gitUpdater { inherit pname version; attrPath = lib.toLower pname; # exclude prerelease versions - versionLister = writers.writeBash "list-mirakurun-versions" '' - ${common-updater-scripts}/bin/list-git-tags --url=${homepage} \ - | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+$' - ''; + ignoredVersions = "-"; }; updateScript = builtins.elemAt updater 0; updateArgs = map (lib.escapeShellArg) (builtins.tail updater); From 122b290dbe9b1365708e5872088fe3e42c79156b Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sat, 23 Apr 2022 15:11:35 -0400 Subject: [PATCH 11/54] epgstation: use gitUpdater --- pkgs/applications/video/epgstation/default.nix | 6 ++---- pkgs/applications/video/epgstation/update.nix | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/video/epgstation/default.nix b/pkgs/applications/video/epgstation/default.nix index a8ec353d788a..b89193617274 100644 --- a/pkgs/applications/video/epgstation/default.nix +++ b/pkgs/applications/video/epgstation/default.nix @@ -1,8 +1,7 @@ { lib , stdenv , fetchFromGitHub -, common-updater-scripts -, genericUpdater +, gitUpdater , writers , makeWrapper , bash @@ -130,8 +129,7 @@ let inherit pname version - common-updater-scripts - genericUpdater + gitUpdater writers jq yq; diff --git a/pkgs/applications/video/epgstation/update.nix b/pkgs/applications/video/epgstation/update.nix index 5eb23be6c52b..387fbe0db62d 100644 --- a/pkgs/applications/video/epgstation/update.nix +++ b/pkgs/applications/video/epgstation/update.nix @@ -2,19 +2,17 @@ , version , homepage , lib -, common-updater-scripts -, genericUpdater +, gitUpdater , writers , jq , yq }: let - updater = genericUpdater { + updater = gitUpdater { inherit pname version; attrPath = lib.toLower pname; rev-prefix = "v"; - versionLister = "${common-updater-scripts}/bin/list-git-tags --url=${homepage}"; }; updateScript = builtins.elemAt updater 0; updateArgs = map (lib.escapeShellArg) (builtins.tail updater); From b70e50558e5639fc3e09eef25381573d576bad45 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sat, 23 Apr 2022 15:16:41 -0400 Subject: [PATCH 12/54] paperwork: fix updateScript --- pkgs/applications/office/paperwork/paperwork-gtk.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/office/paperwork/paperwork-gtk.nix b/pkgs/applications/office/paperwork/paperwork-gtk.nix index f80f40929a19..81fc8c075f1c 100644 --- a/pkgs/applications/office/paperwork/paperwork-gtk.nix +++ b/pkgs/applications/office/paperwork/paperwork-gtk.nix @@ -138,7 +138,7 @@ python3Packages.buildPythonApplication rec { passthru.updateScript = writeScript "update.sh" '' #!/usr/bin/env nix-shell #!nix-shell -i bash -p curl common-updater-scripts - version=$(list-git-tags https://gitlab.gnome.org/World/OpenPaperwork/paperwork.git | sed 's/^v//' | sort -V | tail -n1) + version=$(list-git-tags | sed 's/^v//' | sort -V | tail -n1) update-source-version paperwork "$version" --file=pkgs/applications/office/paperwork/src.nix docs_version="$(curl https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/raw/$version/paperwork-gtk/src/paperwork_gtk/model/help/screenshot.sh | grep TEST_DOCS_TAG= | cut -d'"' -f2)" update-source-version paperwork.sample_docs "$docs_version" --file=pkgs/applications/office/paperwork/src.nix --version-key=rev From 59cfe6e376f6b67593acf4d93c0cea240f7ffbd0 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sat, 23 Apr 2022 15:22:48 -0400 Subject: [PATCH 13/54] rebar3: remove explicit url passed to list-git-tags --- pkgs/development/tools/build-managers/rebar3/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/build-managers/rebar3/default.nix b/pkgs/development/tools/build-managers/rebar3/default.nix index 3ec37b89fd39..c7b6f72ac8ec 100644 --- a/pkgs/development/tools/build-managers/rebar3/default.nix +++ b/pkgs/development/tools/build-managers/rebar3/default.nix @@ -81,7 +81,7 @@ let (rebar3WithPlugins { globalPlugins = [rebar3-nix]; }) ] } - latest=$(list-git-tags --url=https://github.com/${owner}/${pname}.git | sed -n '/[\d\.]\+/p' | sort -V | tail -1) + latest=$(list-git-tags | sed -n '/[\d\.]\+/p' | sort -V | tail -1) if [ "$latest" != "${version}" ]; then nixpkgs="$(git rev-parse --show-toplevel)" nix_path="$nixpkgs/pkgs/development/tools/build-managers/rebar3" From 388b7857f4e6eb943f816a4fc261c81203672ac7 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sat, 23 Apr 2022 15:24:04 -0400 Subject: [PATCH 14/54] erlang-ls: remove explicit url passed to list-git-tags --- pkgs/development/beam-modules/erlang-ls/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/beam-modules/erlang-ls/default.nix b/pkgs/development/beam-modules/erlang-ls/default.nix index e27e65a08f7e..813ddebef43d 100644 --- a/pkgs/development/beam-modules/erlang-ls/default.nix +++ b/pkgs/development/beam-modules/erlang-ls/default.nix @@ -51,7 +51,7 @@ rebar3Relx { #! nix-shell -i bash -p common-updater-scripts coreutils git gnused gnutar gzip "rebar3WithPlugins { globalPlugins = [ beamPackages.rebar3-nix ]; }" set -ox errexit - latest=$(list-git-tags --url=https://github.com/${owner}/${repo}.git | sed -n '/[\d\.]\+/p' | sort -V | tail -1) + latest=$(list-git-tags | sed -n '/[\d\.]\+/p' | sort -V | tail -1) if [[ "$latest" != "${version}" ]]; then nixpkgs="$(git rev-parse --show-toplevel)" nix_path="$nixpkgs/pkgs/development/beam-modules/erlang-ls" From 320ce5c6d7094e4b3b6ad7739914499d318ec911 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sat, 23 Apr 2022 15:25:24 -0400 Subject: [PATCH 15/54] elvis-erlang: remove explicit url passed to list-git-tags --- pkgs/development/beam-modules/elvis-erlang/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/beam-modules/elvis-erlang/default.nix b/pkgs/development/beam-modules/elvis-erlang/default.nix index c4dda478c4a4..7b1454554196 100644 --- a/pkgs/development/beam-modules/elvis-erlang/default.nix +++ b/pkgs/development/beam-modules/elvis-erlang/default.nix @@ -24,7 +24,7 @@ in rebar3Relx rec { set -euo pipefail - latest=$(list-git-tags --url=https://github.com/${owner}/${repo}.git | sort -V | tail -1) + latest=$(list-git-tags | sort -V | tail -1) if [ "$latest" != "${version}" ]; then nixpkgs="$(git rev-parse --show-toplevel)" nix_path="$nixpkgs/pkgs/development/beam-modules/elvis-erlang" From 75904039f260c4d27aa9ed5de67b179ef8b67e14 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sat, 23 Apr 2022 15:28:58 -0400 Subject: [PATCH 16/54] libsForQt5.mlt: fix attrPath for updateScript --- pkgs/development/libraries/mlt/qt-5.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/mlt/qt-5.nix b/pkgs/development/libraries/mlt/qt-5.nix index 5c58aa4f8aec..11a63a3cd5ce 100644 --- a/pkgs/development/libraries/mlt/qt-5.nix +++ b/pkgs/development/libraries/mlt/qt-5.nix @@ -71,6 +71,7 @@ mkDerivation rec { passthru.updateScript = gitUpdater { inherit pname version; + attrPath = "libsForQt5.mlt"; rev-prefix = "v"; }; From 973b6e60b712baebb7029421e26969690de37292 Mon Sep 17 00:00:00 2001 From: Armeen Mahdian Date: Sun, 24 Apr 2022 17:10:31 -0500 Subject: [PATCH 17/54] rpm-ostree: switch to python3 --- pkgs/tools/misc/rpm-ostree/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/rpm-ostree/default.nix b/pkgs/tools/misc/rpm-ostree/default.nix index 2b7032929500..e7025217e34d 100644 --- a/pkgs/tools/misc/rpm-ostree/default.nix +++ b/pkgs/tools/misc/rpm-ostree/default.nix @@ -29,7 +29,7 @@ , bubblewrap , pcre , check -, python2 +, python3 , json_c , zchunk , libmodulemd @@ -50,6 +50,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ + python3 pkg-config which autoconf @@ -82,7 +83,6 @@ stdenv.mkDerivation rec { librepo pcre check - python2 # libdnf # vendored unstable branch # required by vendored libdnf From 18833d2d94f6c937edea83ead19d7dde8bc4bca6 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 25 Apr 2022 05:38:39 +0400 Subject: [PATCH 18/54] kotatogram-desktop: fix build with KF5.94 --- .../telegram/kotatogram-desktop/default.nix | 1 + .../telegram/kotatogram-desktop/kf594.patch | 57 +++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/kf594.patch diff --git a/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix b/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix index f46a918d3c61..d7dbff715bac 100644 --- a/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix +++ b/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix @@ -98,6 +98,7 @@ stdenv.mkDerivation rec { }; patches = [ + ./kf594.patch ./shortcuts-binary-path.patch # let it build with nixpkgs 10.12 sdk ./kotato-10.12-sdk.patch diff --git a/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/kf594.patch b/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/kf594.patch new file mode 100644 index 000000000000..0fa2d8bc8f6e --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/kf594.patch @@ -0,0 +1,57 @@ +diff --git a/Telegram/SourceFiles/platform/linux/linux_wayland_integration.cpp b/Telegram/SourceFiles/platform/linux/linux_wayland_integration.cpp +index 7641579aa..3c195e397 100644 +--- a/Telegram/SourceFiles/platform/linux/linux_wayland_integration.cpp ++++ b/Telegram/SourceFiles/platform/linux/linux_wayland_integration.cpp +@@ -9,10 +9,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL + + #include "base/platform/base_platform_info.h" + +-#include +-#include +-#include +-#include ++#include ++#include ++#include ++#include + + using namespace KWayland::Client; + +Submodule Telegram/lib_base contains modified content +diff --git a/Telegram/lib_base/base/platform/linux/base_linux_wayland_integration.cpp b/Telegram/lib_base/base/platform/linux/base_linux_wayland_integration.cpp +index 32f0de6..30a087f 100644 +--- a/Telegram/lib_base/base/platform/linux/base_linux_wayland_integration.cpp ++++ b/Telegram/lib_base/base/platform/linux/base_linux_wayland_integration.cpp +@@ -13,11 +13,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL + #include + #include + +-#include +-#include +-#include +-#include +-#include ++#include ++#include ++#include ++#include ++#include + + using namespace KWayland::Client; + +Submodule Telegram/lib_ui contains modified content +diff --git a/Telegram/lib_ui/ui/platform/linux/ui_linux_wayland_integration.cpp b/Telegram/lib_ui/ui/platform/linux/ui_linux_wayland_integration.cpp +index 01f1e80..163cb6a 100644 +--- a/Telegram/lib_ui/ui/platform/linux/ui_linux_wayland_integration.cpp ++++ b/Telegram/lib_ui/ui/platform/linux/ui_linux_wayland_integration.cpp +@@ -24,8 +24,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL + #include + #include + +-#include +-#include ++#include ++#include + + Q_DECLARE_METATYPE(QMargins); + From f15277040ca9b9b7f67a92904ec670112657c11d Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 25 Apr 2022 05:39:20 +0400 Subject: [PATCH 19/54] kotatogram-desktop: merge tg_owt post-patch commands --- .../telegram/kotatogram-desktop/tg_owt.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/tg_owt.nix b/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/tg_owt.nix index f49f5ef214ce..9146da94530c 100644 --- a/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/tg_owt.nix +++ b/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/tg_owt.nix @@ -63,12 +63,9 @@ stdenv.mkDerivation { postPatch = lib.optionalString stdenv.isLinux '' substituteInPlace src/modules/desktop_capture/linux/egl_dmabuf.cc \ - --replace '"libEGL.so.1"' '"${libGL}/lib/libEGL.so.1"' - substituteInPlace src/modules/desktop_capture/linux/egl_dmabuf.cc \ - --replace '"libGL.so.1"' '"${libGL}/lib/libGL.so.1"' - substituteInPlace src/modules/desktop_capture/linux/egl_dmabuf.cc \ - --replace '"libgbm.so.1"' '"${mesa}/lib/libgbm.so.1"' - substituteInPlace src/modules/desktop_capture/linux/egl_dmabuf.cc \ + --replace '"libEGL.so.1"' '"${libGL}/lib/libEGL.so.1"' \ + --replace '"libGL.so.1"' '"${libGL}/lib/libGL.so.1"' \ + --replace '"libgbm.so.1"' '"${mesa}/lib/libgbm.so.1"' \ --replace '"libdrm.so.2"' '"${libdrm}/lib/libdrm.so.2"' ''; From 6f77ffd7f2cb307d746f84db4d0d9708c644628a Mon Sep 17 00:00:00 2001 From: Loric Brevet Date: Sun, 24 Apr 2022 22:06:19 +0200 Subject: [PATCH 20/54] browserpass: 3.0.6 -> 3.0.10 --- pkgs/tools/security/browserpass/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/security/browserpass/default.nix b/pkgs/tools/security/browserpass/default.nix index 9aec14e0a418..ba96e2a70fe5 100644 --- a/pkgs/tools/security/browserpass/default.nix +++ b/pkgs/tools/security/browserpass/default.nix @@ -1,18 +1,18 @@ { lib, buildGoModule, fetchFromGitHub, makeWrapper, gnupg }: buildGoModule rec { pname = "browserpass"; - version = "3.0.6"; + version = "3.0.10"; src = fetchFromGitHub { owner = "browserpass"; repo = "browserpass-native"; rev = version; - sha256 = "0q3bsla07zjl6i69nj1axbkg2ia89pvh0jg6nlqgbm2kpzzbn0pz"; + sha256 = "8eAwUwcRTnhVDkQc3HsvTP0TqC4LfVrUelxdbJxe9t0="; }; nativeBuildInputs = [ makeWrapper ]; - vendorSha256 = "1wcbn0ip596f2dp68y6jmxgv20l0dgrcxg5cwclkawigj05416zj"; + vendorSha256 = "gWXcYyIp86b/Pn6vj7qBj/VZS9rTr4weVw0YWmg+36c="; doCheck = false; @@ -21,8 +21,8 @@ buildGoModule rec { # variables to be valid by default substituteInPlace Makefile \ --replace "PREFIX ?= /usr" "" - sed -i -e 's/SED :=.*/SED := sed/' Makefile - sed -i -e 's/INSTALL :=.*/INSTALL := install/' Makefile + sed -i -e 's/SED =.*/SED = sed/' Makefile + sed -i -e 's/INSTALL =.*/INSTALL = install/' Makefile ''; DESTDIR = placeholder "out"; From 434d86b2bc3f58bdf0e6a9f9f25917ce610f8fc7 Mon Sep 17 00:00:00 2001 From: Armeen Mahdian Date: Mon, 25 Apr 2022 09:10:40 -0500 Subject: [PATCH 21/54] libixp_hg: hg-2012-12-02 -> unstable-2022-04-04 --- pkgs/development/libraries/libixp-hg/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/libixp-hg/default.nix b/pkgs/development/libraries/libixp-hg/default.nix index 0aeef61dae9e..16b714cb7aeb 100644 --- a/pkgs/development/libraries/libixp-hg/default.nix +++ b/pkgs/development/libraries/libixp-hg/default.nix @@ -1,13 +1,14 @@ -{ lib, stdenv, fetchurl, unzip, txt2tags }: +{ lib, stdenv, fetchFromGitHub, unzip, txt2tags }: stdenv.mkDerivation rec { - rev = "148"; - version = "hg-2012-12-02"; pname = "libixp"; + version = "unstable-2022-04-04"; - src = fetchurl { - url = "https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/libixp/source-archive.zip"; - sha256 = "0kcdvdcrkw6q39v563ncis6d7ini64xbgn5fd3b4aa95fp9sj3is"; + src = fetchFromGitHub { + owner = "0intro"; + repo = "libixp"; + rev = "ca2acb2988e4f040022f0e2094c69ab65fa6ec53"; + hash = "sha256-S25DmXJ7fN0gXLV0IzUdz8hXPTYEHmaSG7Mnli6GQVc="; }; configurePhase = '' @@ -18,7 +19,7 @@ stdenv.mkDerivation rec { buildInputs = [ txt2tags ]; meta = { - homepage = "http://repo.cat-v.org/libixp/"; # see also https://libs.suckless.org/deprecated/libixp + homepage = "https://github.com/0intro/libixp"; description = "Portable, simple C-language 9P client and server libary"; maintainers = with lib.maintainers; [ kovirobi ]; license = lib.licenses.mit; From df760d5b58e043507495bf04073ce7e8b1edafbb Mon Sep 17 00:00:00 2001 From: Matt Whiteley Date: Mon, 25 Apr 2022 11:07:37 -0700 Subject: [PATCH 22/54] Update darwin versions and comment on difference to linux --- .../networking/instant-messengers/zoom-us/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix index 02a8dc17f3f3..cc875edf3b83 100644 --- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix +++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix @@ -33,9 +33,12 @@ let inherit (stdenv.hostPlatform) system; throwSystem = throw "Unsupported system: ${system}"; + # Zoom versions are released at different times for each platform and linux + # is stuck on 5.9.6 until https://github.com/NixOS/nixpkgs/pull/166085 is + # merged version = { - aarch64-darwin = "5.10.1.5839"; - x86_64-darwin = "5.10.1.5839"; + aarch64-darwin = "5.10.4.6592"; + x86_64-darwin = "5.10.4.6592"; x86_64-linux = "5.9.6.2225"; }.${system} or throwSystem; From 6ed76cba02c579466d67cda632a0954444796112 Mon Sep 17 00:00:00 2001 From: Matt Whiteley Date: Mon, 25 Apr 2022 11:13:04 -0700 Subject: [PATCH 23/54] dry up installPhase with shared runHooks --- .../instant-messengers/zoom-us/default.nix | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix index cc875edf3b83..6485c97df172 100644 --- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix +++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix @@ -106,16 +106,21 @@ stdenv.mkDerivation rec { cpio ]; - installPhase = if stdenv.isDarwin then '' + installPhase = '' runHook preInstall - mkdir -p $out/Applications/zoom.us.app - cp -R . $out/Applications/zoom.us.app - runHook postInstall - '' else '' - runHook preInstall - mkdir $out - tar -C $out -xf $src - mv $out/usr/* $out/ + ${rec { + aarch64-darwin = '' + mkdir -p $out/Applications/zoom.us.app + cp -R . $out/Applications/zoom.us.app + ''; + # darwin steps same on both architectures + x86_64-darwin = aarch64-darwin; + x86_64-linux = '' + mkdir $out + tar -C $out -xf $src + mv $out/usr/* $out/ + ''; + }.${stdenv.system}} runHook postInstall ''; From 37f9102a1deb4c14110db47c7f8444bba7b37759 Mon Sep 17 00:00:00 2001 From: Serge Belov Date: Tue, 29 Mar 2022 13:57:24 +1300 Subject: [PATCH 24/54] kacst: init at 2.01 --- pkgs/data/fonts/kacst/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/data/fonts/kacst/default.nix diff --git a/pkgs/data/fonts/kacst/default.nix b/pkgs/data/fonts/kacst/default.nix new file mode 100644 index 000000000000..38f85d2ad0fc --- /dev/null +++ b/pkgs/data/fonts/kacst/default.nix @@ -0,0 +1,22 @@ +{ fetchzip, lib }: + +let + version = "2.01"; +in +fetchzip { + name = "kacst-${version}"; + url = "mirror://debian/pool/main/f/fonts-kacst/fonts-kacst_${version}+mry.orig.tar.bz2"; + sha256 = "sha256-pIO58CXfmKYRKYJ1oI+tjTwlKBRnkZ/CpIM2Xa0CDA4="; + + postFetch = '' + mkdir -p $out/share/fonts + tar xjf $downloadedFile --strip-components=1 -C $out/share/fonts + ''; + + meta = with lib; { + description = "KACST Latin-Arabic TrueType fonts"; + license = licenses.gpl2Only; + maintainers = with lib.maintainers; [ serge ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 716a90be9ce7..ff9bfc373d71 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24272,6 +24272,8 @@ with pkgs; kanji-stroke-order-font = callPackage ../data/fonts/kanji-stroke-order-font {}; + kacst = callPackage ../data/fonts/kacst {}; + kawkab-mono-font = callPackage ../data/fonts/kawkab-mono {}; kde-rounded-corners = libsForQt5.callPackage ../data/themes/kwin-decorations/kde-rounded-corners { }; From ee533442b29f7d84d24bead654b2f7250d9918ed Mon Sep 17 00:00:00 2001 From: Serge Belov Date: Fri, 22 Apr 2022 10:54:45 +1000 Subject: [PATCH 25/54] maintainers: add serge --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 36d7ae48119f..c6c5db0c0d39 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -11316,6 +11316,12 @@ githubId = 307899; name = "Gurkan Gur"; }; + serge = { + email = "sb@canva.com"; + github = "serge-belov"; + githubId = 38824235; + name = "Serge Belov"; + }; sersorrel = { email = "ash@sorrel.sh"; github = "sersorrel"; From 4d12f939d4cd5e7cde66a5a92363d6cb61b7ca9a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 26 Apr 2022 01:53:07 +0000 Subject: [PATCH 26/54] cypress: 9.5.4 -> 9.6.0 --- pkgs/development/web/cypress/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/web/cypress/default.nix b/pkgs/development/web/cypress/default.nix index 0a726d18b1b4..b85a1f06b2bc 100644 --- a/pkgs/development/web/cypress/default.nix +++ b/pkgs/development/web/cypress/default.nix @@ -16,11 +16,11 @@ stdenv.mkDerivation rec { pname = "cypress"; - version = "9.5.4"; + version = "9.6.0"; src = fetchzip { url = "https://cdn.cypress.io/desktop/${version}/linux-x64/cypress.zip"; - sha256 = "F4BSIA3ImXwmmki8/FK0t08Gf5S8KMpXNNBIPPJQNsM="; + sha256 = "Mac6lmwQqbj9EPfpG0iLI8Qx04q7E0swmTqXx0J+Sdc="; }; # don't remove runtime deps From 7fadb8fb78260a2025d24b60b632289f608f8680 Mon Sep 17 00:00:00 2001 From: Alexander Nortung Date: Tue, 26 Apr 2022 10:41:25 +0200 Subject: [PATCH 27/54] session-desktop-appimage: 1.7.9 -> 1.8.4 --- .../instant-messengers/session-desktop-appimage/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/session-desktop-appimage/default.nix b/pkgs/applications/networking/instant-messengers/session-desktop-appimage/default.nix index 4518627fe2b8..0c11beb9ebc2 100644 --- a/pkgs/applications/networking/instant-messengers/session-desktop-appimage/default.nix +++ b/pkgs/applications/networking/instant-messengers/session-desktop-appimage/default.nix @@ -7,12 +7,12 @@ }: let - version = "1.7.9"; + version = "1.8.4"; pname = "session-desktop-appimage"; src = fetchurl { url = "https://github.com/oxen-io/session-desktop/releases/download/v${version}/session-desktop-linux-x86_64-${version}.AppImage"; - sha256 = "ca7754e59146633b71e66b02a90cff87e4f2574e57ff831ca4a5f983b7e2fbef"; + sha256 = "Az9NEsqU4ZcmuSno38zflT4M4lI6/4ShEh3FVTcyRJg="; }; appimage = appimageTools.wrapType2 { inherit version pname src; From 0f946e28754e1da24d373fe9c64b89b51acb3463 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 30 Mar 2022 19:55:20 +0200 Subject: [PATCH 28/54] ansible: prune old versions; restructure - Drop pkgs/tools/admin/ansible and move everything into top-level and throws into central aliases.nix - Drop the Ansible 2.8 throw - Remove Ansible 2.9/2.10, both will be EOL before the 22.05 release - Remove Ansible 2.11, it will go EOL during the 22.05 release - Expose the collections as `python3Packages.ansible` Closes: #157591 --- .../python-modules/ansible/base.nix | 88 ------------------- .../python-modules/ansible/core.nix | 15 +--- .../ansible/{collections.nix => default.nix} | 22 +++-- .../python-modules/ansible/legacy.nix | 55 ------------ pkgs/tools/admin/ansible/default.nix | 24 ----- pkgs/top-level/aliases.nix | 3 + pkgs/top-level/all-packages.nix | 8 +- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 4 +- 9 files changed, 24 insertions(+), 196 deletions(-) delete mode 100644 pkgs/development/python-modules/ansible/base.nix rename pkgs/development/python-modules/ansible/{collections.nix => default.nix} (81%) delete mode 100644 pkgs/development/python-modules/ansible/legacy.nix delete mode 100644 pkgs/tools/admin/ansible/default.nix diff --git a/pkgs/development/python-modules/ansible/base.nix b/pkgs/development/python-modules/ansible/base.nix deleted file mode 100644 index 173e620703a4..000000000000 --- a/pkgs/development/python-modules/ansible/base.nix +++ /dev/null @@ -1,88 +0,0 @@ -{ lib -, callPackage -, buildPythonPackage -, fetchPypi -, installShellFiles -, cryptography -, jinja2 -, junit-xml -, lxml -, ncclient -, packaging -, paramiko -, pexpect -, psutil -, pycrypto -, pyyaml -, requests -, scp -, windowsSupport ? false, pywinrm -, xmltodict -}: - -let - ansible-collections = callPackage ./collections.nix { - version = "3.4.0"; # must be < 4.0 - sha256 = "096rbgz730njk0pg8qnc27mmz110wqrw354ca9gasb7rqg0f4d6a"; - }; -in -buildPythonPackage rec { - pname = "ansible-base"; - version = "2.10.17"; - - src = fetchPypi { - inherit pname version; - sha256 = "sha256-75JYgsqNTDwszQkc3hmeDIaQJMytDQejN9zyB7/zLzQ="; - }; - - # ansible_connection is already wrapped, so don't pass it through - # the python interpreter again, as it would break execution of - # connection plugins. - postPatch = '' - substituteInPlace lib/ansible/executor/task_executor.py \ - --replace "[python," "[" - ''; - - nativeBuildInputs = [ - installShellFiles - ]; - - propagatedBuildInputs = [ - # depend on ansible-collections instead of the other way around - ansible-collections - # from requirements.txt - cryptography - jinja2 - packaging - pyyaml - # optional dependencies - junit-xml - lxml - ncclient - paramiko - pexpect - psutil - pycrypto - requests - scp - xmltodict - ] ++ lib.optional windowsSupport pywinrm; - - postInstall = '' - installManPage docs/man/man1/*.1 - ''; - - # internal import errors, missing dependencies - doCheck = false; - - passthru = { - collections = ansible-collections; - }; - - meta = with lib; { - description = "Radically simple IT automation"; - homepage = "https://www.ansible.com"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ hexa ]; - }; -} diff --git a/pkgs/development/python-modules/ansible/core.nix b/pkgs/development/python-modules/ansible/core.nix index 7b00ac9b2c4d..49ae39feba7b 100644 --- a/pkgs/development/python-modules/ansible/core.nix +++ b/pkgs/development/python-modules/ansible/core.nix @@ -3,6 +3,7 @@ , buildPythonPackage , fetchPypi , installShellFiles +, ansible , cryptography , jinja2 , junit-xml @@ -21,12 +22,6 @@ , xmltodict }: -let - ansible-collections = callPackage ./collections.nix { - version = "5.6.0"; - sha256 = "sha256-rNMHMUNBVNo3bO7rQW7hVBzfuOo8ZIAjpVo0yz7K+fM="; - }; -in buildPythonPackage rec { pname = "ansible-core"; version = "2.12.5"; @@ -49,8 +44,8 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - # depend on ansible-collections instead of the other way around - ansible-collections + # depend on ansible instead of the other way around + ansible # from requirements.txt cryptography jinja2 @@ -77,10 +72,6 @@ buildPythonPackage rec { # internal import errors, missing dependencies doCheck = false; - passthru = { - collections = ansible-collections; - }; - meta = with lib; { description = "Radically simple IT automation"; homepage = "https://www.ansible.com"; diff --git a/pkgs/development/python-modules/ansible/collections.nix b/pkgs/development/python-modules/ansible/default.nix similarity index 81% rename from pkgs/development/python-modules/ansible/collections.nix rename to pkgs/development/python-modules/ansible/default.nix index 427e76a979cb..1d2bb9505a27 100644 --- a/pkgs/development/python-modules/ansible/collections.nix +++ b/pkgs/development/python-modules/ansible/default.nix @@ -1,4 +1,5 @@ { lib +, pythonOlder , buildPythonPackage , fetchPypi , jsonschema @@ -11,25 +12,30 @@ , textfsm , ttp , xmltodict + +# optionals , withJunos ? false , withNetbox ? false - -, version -, sha256 }: -buildPythonPackage rec { +let pname = "ansible"; - inherit version; + version = "5.6.0"; +in +buildPythonPackage { + inherit pname version; format = "setuptools"; + disabled = pythonOlder "3.8"; + src = fetchPypi { - inherit pname version sha256; + inherit pname version; + sha256 = "sha256-rNMHMUNBVNo3bO7rQW7hVBzfuOo8ZIAjpVo0yz7K+fM="; }; postPatch = '' - # make ansible-base depend on ansible-collection, not the other way around - sed -Ei '/ansible-(base|core)/d' setup.py + # we make ansible-core depend on ansible, not the other way around + sed -Ei '/ansible-core/d' setup.py ''; propagatedBuildInputs = lib.unique ([ diff --git a/pkgs/development/python-modules/ansible/legacy.nix b/pkgs/development/python-modules/ansible/legacy.nix deleted file mode 100644 index 50662b43f32c..000000000000 --- a/pkgs/development/python-modules/ansible/legacy.nix +++ /dev/null @@ -1,55 +0,0 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pycrypto -, paramiko -, jinja2 -, pyyaml -, httplib2 -, six -, netaddr -, dnspython -, jmespath -, dopy -, ncclient -, windowsSupport ? false -, pywinrm -}: - -buildPythonPackage rec { - pname = "ansible"; - version = "2.9.27"; - - src = fetchPypi { - inherit pname version; - sha256 = "sha256-R5FZ5Qs72Qkg0GvFlBDDpR0/m+m04QKeEdHkotBwVzY="; - }; - - prePatch = '' - # ansible-connection is wrapped, so make sure it's not passed - # through the python interpreter. - sed -i "s/\[python, /[/" lib/ansible/executor/task_executor.py - ''; - - postInstall = '' - for m in docs/man/man1/*; do - install -vD $m -t $out/share/man/man1 - done - ''; - - propagatedBuildInputs = [ - pycrypto paramiko jinja2 pyyaml httplib2 - six netaddr dnspython jmespath dopy ncclient - ] ++ lib.optional windowsSupport pywinrm; - - # dificult to test - doCheck = false; - - meta = with lib; { - homepage = "https://www.ansible.com"; - description = "Radically simple IT automation"; - license = [ licenses.gpl3 ] ; - maintainers = with maintainers; [ joamaki costrouc hexa ]; - platforms = platforms.linux ++ platforms.darwin; - }; -} diff --git a/pkgs/tools/admin/ansible/default.nix b/pkgs/tools/admin/ansible/default.nix deleted file mode 100644 index 6be403b9e534..000000000000 --- a/pkgs/tools/admin/ansible/default.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ python3Packages, fetchFromGitHub }: - -rec { - ansible = ansible_2_12; - - ansible_2_12 = python3Packages.toPythonApplication python3Packages.ansible-core; - - ansible_2_11 = python3Packages.toPythonApplication (python3Packages.ansible-core.overridePythonAttrs (old: rec { - pname = "ansible-core"; - version = "2.11.6"; - - src = python3Packages.fetchPypi { - inherit pname version; - sha256 = "sha256-k9UCg8fFtHbev4PcCJs/Z5uTmouae11ijSjar7s9MDo="; - }; - })); - - ansible_2_10 = python3Packages.toPythonApplication python3Packages.ansible-base; - - # End of support 2021/10/02, End of life 2021/12/31 - ansible_2_9 = python3Packages.toPythonApplication python3Packages.ansible; - - ansible_2_8 = throw "Ansible 2.8 went end of life on 2021/01/03 and has subsequently been dropped"; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 48af07f99239..fcfce41aac13 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -74,6 +74,9 @@ mapAliases ({ amuleGui = throw "amuleGui was renamed to amule-gui"; # Added 2022-02-11 amsn = throw "amsn has been removed due to being unmaintained"; # Added 2020-12-09 angelfish = libsForQt5.plasmaMobileGear.angelfish; # Added 2021-10-06 + ansible_2_11 = throw "Ansible 2.11 goes end of life in 2022/11 and can't be supported throughout the 22.05 release cycle"; # Added 2022-03-30 + ansible_2_10 = throw "Ansible 2.10 went end of life in 2022/05 and has subsequently been dropped"; # Added 2022-03-30 + ansible_2_9 = throw "Ansible 2.9 went end of life in 2022/05 and has subsequently been dropped"; # Added 2022-03-30 antimicro = throw "antimicro has been removed as it was broken, see antimicrox instead"; # Added 2020-08-06 antimicroX = antimicrox; # Added 2021-10-31 ardour_5 = throw "ardour_5 has been removed. see https://github.com/NixOS/nixpkgs/issues/139549"; # Added 2021-09-28 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index db85ec622476..b8b441b511f0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14661,12 +14661,8 @@ with pkgs; autoadb = callPackage ../misc/autoadb { }; - inherit (callPackage ../tools/admin/ansible { }) - ansible - ansible_2_8 - ansible_2_9 - ansible_2_10 - ansible_2_11; + ansible = ansible_2_12; + ansible_2_12 = python3Packages.toPythonApplication python3Packages.ansible-core; ansible-lint = with python3.pkgs; toPythonApplication ansible-lint; diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 9d912ee5e601..d1635ed3b8cc 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -34,6 +34,7 @@ in mapAliases ({ aioh2 = throw "aioh2 has been removed because it is abandoned and broken."; # Added 2022-03-30 + ansible-base = throw "ansible-base has been removed, because it is end of life"; # added 2022-03-30 anyjson = throw "anyjson has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18 asyncio-nats-client = nats-py; # added 2022-02-08 bitcoin-price-api = throw "bitcoin-price-api has been removed, it was using setuptools 2to3 translation feautre, which has been removed in setuptools 58"; # added 2022-02-15 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d90f18b8ceea..82eb66648714 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -513,9 +513,7 @@ in { ansi2html = callPackage ../development/python-modules/ansi2html { }; - ansible = callPackage ../development/python-modules/ansible/legacy.nix { }; - - ansible-base = callPackage ../development/python-modules/ansible/base.nix { }; + ansible = callPackage ../development/python-modules/ansible { }; ansible-compat = callPackage ../development/python-modules/ansible-compat { }; From 7fb99b7216002dfbd8bf1b5d5bdf4a829e1a1650 Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Tue, 26 Apr 2022 11:15:05 +0200 Subject: [PATCH 29/54] python3Packages.labgrid: add packaging module Add missing packaging module, fixes the following backtrace while trying to use labgrid-client: Traceback (most recent call last): File "/nix/store/izj1dw63bqh47bq10v1b2d7qqg9al7f7-python3.9-labgrid-0.4.1/bin/.labgrid-client-wrapped", line 6, in from labgrid.remote.client import main File "/nix/store/izj1dw63bqh47bq10v1b2d7qqg9al7f7-python3.9-labgrid-0.4.1/lib/python3.9/site-packages/labgrid/__init__.py", line 1, in from .target import Target File "/nix/store/izj1dw63bqh47bq10v1b2d7qqg9al7f7-python3.9-labgrid-0.4.1/lib/python3.9/site-packages/labgrid/target.py", line 9, in from .driver import Driver File "/nix/store/izj1dw63bqh47bq10v1b2d7qqg9al7f7-python3.9-labgrid-0.4.1/lib/python3.9/site-packages/labgrid/driver/__init__.py", line 4, in from .serialdriver import SerialDriver File "/nix/store/izj1dw63bqh47bq10v1b2d7qqg9al7f7-python3.9-labgrid-0.4.1/lib/python3.9/site-packages/labgrid/driver/serialdriver.py", line 5, in from packaging import version ModuleNotFoundError: No module named 'packaging' --- pkgs/development/python-modules/labgrid/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/labgrid/default.nix b/pkgs/development/python-modules/labgrid/default.nix index c95acdf68e30..2032eb33d60c 100644 --- a/pkgs/development/python-modules/labgrid/default.nix +++ b/pkgs/development/python-modules/labgrid/default.nix @@ -6,6 +6,7 @@ , jinja2 , lib , mock +, packaging , pexpect , psutil , pyserial @@ -44,6 +45,7 @@ buildPythonPackage rec { attrs autobahn jinja2 + packaging pexpect pyserial pyudev From 198793be2dd136b1ee7a67119d7ba4808389c00a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 26 Apr 2022 11:22:05 +0200 Subject: [PATCH 30/54] python3Packages.pytest-ansible: mark broken with ansible>=2.10 --- pkgs/development/python-modules/pytest-ansible/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/pytest-ansible/default.nix b/pkgs/development/python-modules/pytest-ansible/default.nix index 8285996170a2..ee8d7caf779a 100644 --- a/pkgs/development/python-modules/pytest-ansible/default.nix +++ b/pkgs/development/python-modules/pytest-ansible/default.nix @@ -40,5 +40,7 @@ buildPythonPackage rec { description = "Plugin for py.test to simplify calling ansible modules from tests or fixtures"; license = licenses.mit; maintainers = [ maintainers.costrouc ]; + # https://github.com/ansible-community/pytest-ansible/blob/v2.2.4/setup.py#L124 + broken = lib.versionAtLeast ansible.version "2.10"; }; } From 813330fa92cd8a9e5c8b38fd9f2d020334566e24 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 26 Apr 2022 11:24:04 +0200 Subject: [PATCH 31/54] kargo: use ansible-core --- pkgs/tools/misc/kargo/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/misc/kargo/default.nix b/pkgs/tools/misc/kargo/default.nix index 34b93403487c..91fcbf43ed88 100644 --- a/pkgs/tools/misc/kargo/default.nix +++ b/pkgs/tools/misc/kargo/default.nix @@ -12,7 +12,7 @@ buildPythonApplication rec { }; propagatedBuildInputs = [ - ansible + ansible-core boto cffi cryptography From 19b2755900038866fe20888e4503573059816136 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 26 Apr 2022 11:27:47 +0200 Subject: [PATCH 32/54] python3Packages.ansible-runner: use ansible-core --- pkgs/development/python-modules/ansible-runner/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/ansible-runner/default.nix b/pkgs/development/python-modules/ansible-runner/default.nix index 706cde06b8b1..ded3205f47b6 100644 --- a/pkgs/development/python-modules/ansible-runner/default.nix +++ b/pkgs/development/python-modules/ansible-runner/default.nix @@ -1,6 +1,6 @@ { lib , stdenv -, ansible +, ansible-core , buildPythonPackage , fetchPypi , mock @@ -32,7 +32,7 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - ansible + ansible-core psutil pexpect python-daemon @@ -41,7 +41,7 @@ buildPythonPackage rec { ]; checkInputs = [ - ansible # required to place ansible CLI onto the PATH in tests + ansible-core # required to place ansible CLI onto the PATH in tests pytestCheckHook pytest-mock pytest-timeout From 12c596725d142c64e364c32456eb0d7cd1d39485 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 26 Apr 2022 11:29:10 +0200 Subject: [PATCH 33/54] python3Packages.ansible-compat: use ansible-core --- pkgs/development/python-modules/ansible-compat/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ansible-compat/default.nix b/pkgs/development/python-modules/ansible-compat/default.nix index 97766cdd3aa0..743ebab42f1e 100644 --- a/pkgs/development/python-modules/ansible-compat/default.nix +++ b/pkgs/development/python-modules/ansible-compat/default.nix @@ -1,7 +1,7 @@ { lib , buildPythonPackage , fetchPypi -, ansible +, ansible-core , flaky , pytest-mock , pytestCheckHook @@ -35,7 +35,7 @@ buildPythonPackage rec { ''; checkInputs = [ - ansible + ansible-core flaky pytest-mock pytestCheckHook From 45ec327c04e358363d2aa4882aa365c703857357 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 26 Apr 2022 10:34:31 +0000 Subject: [PATCH 34/54] python310Packages.svdtools: 0.1.21 -> 0.1.22 --- pkgs/development/python-modules/svdtools/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/svdtools/default.nix b/pkgs/development/python-modules/svdtools/default.nix index 03db4b6356e2..3e79479e9f19 100644 --- a/pkgs/development/python-modules/svdtools/default.nix +++ b/pkgs/development/python-modules/svdtools/default.nix @@ -11,13 +11,13 @@ buildPythonPackage rec { pname = "svdtools"; - version = "0.1.21"; + version = "0.1.22"; disabled = pythonOlder "3.8"; src = fetchPypi { inherit version pname; - sha256 = "0qc94haqkj4dbhify1l3x0ji1dx34m79nfnsk1c7l1kl2zjvz6bz"; + sha256 = "sha256-5zMuCFCvh7BXr9BbyyDhWw1Lt/Fomv0SALiPJQbxJNQ="; }; # remove upon next release From 7e2dc25cd1150e63a98d1c1dd83313b8286e487a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 26 Apr 2022 10:48:26 +0000 Subject: [PATCH 35/54] python310Packages.boxx: 0.9.11 -> 0.10.0 --- pkgs/development/python-modules/boxx/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/boxx/default.nix b/pkgs/development/python-modules/boxx/default.nix index 964bf2dd8127..b141e7fce397 100644 --- a/pkgs/development/python-modules/boxx/default.nix +++ b/pkgs/development/python-modules/boxx/default.nix @@ -18,11 +18,11 @@ buildPythonPackage rec { pname = "boxx"; - version = "0.9.11"; + version = "0.10.0"; src = fetchPypi { inherit pname version; - sha256 = "sha256-xB/bCSIzT0JF5ZPWqSn3P8soBJnzDTfCyan+iOrfWzw="; + sha256 = "sha256-1Q6wCloOCfyDmvC8VbK6GgfnxuliJ6Ze7UEvsNFBVa0="; }; propagatedBuildInputs = [ From debfa6723c4affb080fcf1ce74d166aba5414f50 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 26 Apr 2022 13:29:51 +0200 Subject: [PATCH 36/54] python3Packages.boxx: disable on older Python releases --- pkgs/development/python-modules/boxx/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/boxx/default.nix b/pkgs/development/python-modules/boxx/default.nix index b141e7fce397..10032f0ae58f 100644 --- a/pkgs/development/python-modules/boxx/default.nix +++ b/pkgs/development/python-modules/boxx/default.nix @@ -13,16 +13,20 @@ , pyopengl , seaborn , pytorch +, pythonOlder , torchvision }: buildPythonPackage rec { pname = "boxx"; version = "0.10.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-1Q6wCloOCfyDmvC8VbK6GgfnxuliJ6Ze7UEvsNFBVa0="; + hash = "sha256-1Q6wCloOCfyDmvC8VbK6GgfnxuliJ6Ze7UEvsNFBVa0="; }; propagatedBuildInputs = [ @@ -37,19 +41,22 @@ buildPythonPackage rec { seaborn ]; - pythonImportsCheck = [ "boxx" ]; checkInputs = [ xvfb-run pytorch torchvision ]; + pythonImportsCheck = [ + "boxx" + ]; + checkPhase = '' xvfb-run ${python.interpreter} -m unittest ''; meta = with lib; { - description = "Tool-box for efficient build and debug in Python. Especially for Scientific Computing and Computer Vision."; + description = "Tool-box for efficient build and debug for Scientific Computing and Computer Vision"; homepage = "https://github.com/DIYer22/boxx"; license = licenses.mit; maintainers = with maintainers; [ lucasew ]; From 7fe8c7fd43743178c7681e87b5cddfef774b85c8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 26 Apr 2022 13:36:02 +0200 Subject: [PATCH 37/54] python3Packages.svdtools: remove stale substituteInPlace --- .../python-modules/svdtools/default.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/svdtools/default.nix b/pkgs/development/python-modules/svdtools/default.nix index 3e79479e9f19..98b59c18bdc3 100644 --- a/pkgs/development/python-modules/svdtools/default.nix +++ b/pkgs/development/python-modules/svdtools/default.nix @@ -12,21 +12,15 @@ buildPythonPackage rec { pname = "svdtools"; version = "0.1.22"; + format = "setuptools"; disabled = pythonOlder "3.8"; src = fetchPypi { inherit version pname; - sha256 = "sha256-5zMuCFCvh7BXr9BbyyDhWw1Lt/Fomv0SALiPJQbxJNQ="; + hash = "sha256-5zMuCFCvh7BXr9BbyyDhWw1Lt/Fomv0SALiPJQbxJNQ="; }; - # remove upon next release - # see: https://github.com/stm32-rs/svdtools/pull/96 - prePatch = '' - substituteInPlace setup.py \ - --replace 'PyYAML ~= 5.3' 'PyYAML >= 5.3' - ''; - propagatedBuildInputs = [ braceexpand click @@ -34,9 +28,13 @@ buildPythonPackage rec { lxml ]; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ + pytestCheckHook + ]; - pythonImportsCheck = [ "svdtools" ]; + pythonImportsCheck = [ + "svdtools" + ]; meta = with lib; { description = "Python package to handle vendor-supplied, often buggy SVD files"; From ec2c6af0f1a5a09c202ca9436bcdad8d80f86034 Mon Sep 17 00:00:00 2001 From: Armeen Mahdian Date: Mon, 25 Apr 2022 09:11:00 -0500 Subject: [PATCH 38/54] wmii: hg-2012-12-09 -> unstable-2022-04-04 --- .../window-managers/wmii-hg/default.nix | 46 ------------ .../window-managers/wmii/default.nix | 72 +++++++++++++++++++ .../{libixp-hg => libixp}/default.nix | 2 +- pkgs/top-level/aliases.nix | 2 + pkgs/top-level/all-packages.nix | 4 +- 5 files changed, 77 insertions(+), 49 deletions(-) delete mode 100644 pkgs/applications/window-managers/wmii-hg/default.nix create mode 100644 pkgs/applications/window-managers/wmii/default.nix rename pkgs/development/libraries/{libixp-hg => libixp}/default.nix (97%) diff --git a/pkgs/applications/window-managers/wmii-hg/default.nix b/pkgs/applications/window-managers/wmii-hg/default.nix deleted file mode 100644 index 6759e15ee833..000000000000 --- a/pkgs/applications/window-managers/wmii-hg/default.nix +++ /dev/null @@ -1,46 +0,0 @@ -{ lib, stdenv, fetchurl, unzip, pkg-config, libixp_hg, txt2tags, dash, python2, which -, libX11 , libXrender, libXext, libXinerama, libXrandr, libXft }: - -stdenv.mkDerivation rec { - rev = "2823"; - version = "hg-2012-12-09"; - pname = "wmii"; - - src = fetchurl { - url = "https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/wmii/source-archive.zip"; - sha256 = "1wmkq14zvmfrmydl8752xz852cy7agrx3qp4fy2cc5asb2r9abaz"; - }; - - # for dlopen-ing - patchPhase = '' - substituteInPlace lib/libstuff/x11/xft.c --replace "libXft.so" "$(pkg-config --variable=libdir xft)/libXft.so.2" - substituteInPlace cmd/wmii.sh.sh --replace "\$(which which)" "${which}/bin/which" - ''; - - configurePhase = '' - for file in $(grep -lr '#!.*sh'); do - sed -i 's|#!.*sh|#!${dash}/bin/dash|' $file - done - - cat <> config.mk - PREFIX = $out - LIBIXP = ${libixp_hg}/lib/libixp.a - BINSH = ${dash}/bin/dash - EOF - ''; - - nativeBuildInputs = [ pkg-config unzip ]; - buildInputs = [ libixp_hg txt2tags dash python2 which - libX11 libXrender libXext libXinerama libXrandr libXft ]; - - # For some reason including mercurial in buildInputs did not help - makeFlags = [ "WMII_HGVERSION=hg${rev}" ]; - - meta = { - homepage = "https://suckless.org/"; # https://wmii.suckless.org/ does not exist anymore - description = "A small window manager controlled by a 9P filesystem"; - maintainers = with lib.maintainers; [ kovirobi ]; - license = lib.licenses.mit; - platforms = with lib.platforms; linux; - }; -} diff --git a/pkgs/applications/window-managers/wmii/default.nix b/pkgs/applications/window-managers/wmii/default.nix new file mode 100644 index 000000000000..11f669da37a6 --- /dev/null +++ b/pkgs/applications/window-managers/wmii/default.nix @@ -0,0 +1,72 @@ +{ lib, stdenv +, fetchFromGitHub +, dash +, libX11 +, libXext +, libXft +, libXinerama +, libXrandr +, libXrender +, libixp +, pkg-config +, txt2tags +, unzip +, which +}: + +stdenv.mkDerivation rec { + pname = "wmii"; + version = "unstable-2022-04-04"; + + src = fetchFromGitHub { + owner = "0intro"; + repo = "wmii"; + rev = "ff120c7fee6e1b3a30a4a800074394327fb1da9d"; + hash = "sha256-KEmWnobpT/5TdgT2HGPCpG1duz9Q6Z6PFSEBs2Ce+7g="; + }; + + # for dlopen-ing + postPatch = '' + substituteInPlace lib/libstuff/x11/xft.c --replace "libXft.so" "$(pkg-config --variable=libdir xft)/libXft.so.2" + substituteInPlace cmd/wmii.sh.sh --replace "\$(which which)" "${which}/bin/which" + ''; + + postConfigure = '' + for file in $(grep -lr '#!.*sh'); do + sed -i 's|#!.*sh|#!${dash}/bin/dash|' $file + done + + cat <> config.mk + PREFIX = $out + LIBIXP = ${libixp}/lib/libixp.a + BINSH = ${dash}/bin/dash + EOF + ''; + + # Remove optional python2 functionality + postInstall = '' + rm -rf $out/lib/python* $out/etc/wmii-hg/python + ''; + + nativeBuildInputs = [ pkg-config unzip ]; + buildInputs = [ + dash + libX11 + libXext + libXft + libXinerama + libXrandr + libXrender + libixp + txt2tags + which + ]; + + meta = { + homepage = "https://github.com/0intro/wmii"; + description = "A small, scriptable window manager, with a 9P filesystem interface and an acme-like layout"; + maintainers = with lib.maintainers; [ kovirobi ]; + license = lib.licenses.mit; + platforms = with lib.platforms; linux; + }; +} diff --git a/pkgs/development/libraries/libixp-hg/default.nix b/pkgs/development/libraries/libixp/default.nix similarity index 97% rename from pkgs/development/libraries/libixp-hg/default.nix rename to pkgs/development/libraries/libixp/default.nix index 16b714cb7aeb..255f4ef30569 100644 --- a/pkgs/development/libraries/libixp-hg/default.nix +++ b/pkgs/development/libraries/libixp/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { hash = "sha256-S25DmXJ7fN0gXLV0IzUdz8hXPTYEHmaSG7Mnli6GQVc="; }; - configurePhase = '' + postConfigure = '' sed -i -e "s|^PREFIX.*=.*$|PREFIX = $out|" config.mk ''; diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 437fd6b8abac..c20f08ed4eed 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -647,6 +647,7 @@ mapAliases ({ libgroove = throw "libgroove has been removed, because it depends on an outdated and insecure version of ffmpeg"; # Added 2022-01-21 libgumbo = throw "'libgumbo' has been renamed to/replaced by 'gumbo'"; # Converted to throw 2022-02-22 libintlOrEmpty = lib.optional (!stdenv.isLinux || stdenv.hostPlatform.libc != "glibc") gettext; # Added 2018-03-14 + libixp_hg = libixp; libjpeg_drop = libjpeg_original; # Added 2020-06-05 libjson_rpc_cpp = throw "'libjson_rpc_cpp' has been renamed to/replaced by 'libjson-rpc-cpp'"; # Converted to throw 2022-02-22 libkml = throw "libkml has been removed from nixpkgs, as it's abandoned and no package needed it"; # Added 2021-11-09 @@ -1358,6 +1359,7 @@ mapAliases ({ winpdb = throw "winpdb has been removed: abandoned by upstream"; # Added 2022-04-22 winusb = throw "'winusb' has been renamed to/replaced by 'woeusb'"; # Converted to throw 2022-02-22 wireguard = throw "'wireguard' has been renamed to/replaced by 'wireguard-tools'"; # Converted to throw 2022-02-22 + wmii_hg = wmii; wxmupen64plus = throw "wxmupen64plus was removed because the upstream disappeared"; # Added 2022-01-31 ### X ### diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bfed559ece1e..ef809e7d5f20 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19329,7 +19329,7 @@ with pkgs; libxsmm = callPackage ../development/libraries/libxsmm { }; - libixp_hg = callPackage ../development/libraries/libixp-hg { }; + libixp = callPackage ../development/libraries/libixp { }; libwpe = callPackage ../development/libraries/libwpe { }; @@ -30402,7 +30402,7 @@ with pkgs; wmderlandc = callPackage ../applications/window-managers/wmderlandc { }; - wmii_hg = callPackage ../applications/window-managers/wmii-hg { }; + wmii = callPackage ../applications/window-managers/wmii { }; wofi = callPackage ../applications/misc/wofi { }; From ca3c297d867f59859ba464c5b818086385b76e8c Mon Sep 17 00:00:00 2001 From: Sandro Date: Tue, 26 Apr 2022 14:27:10 +0200 Subject: [PATCH 39/54] simpleitk: move headers to dev output (#170165) * simpleitk: move headers to dev output * fix typo --- pkgs/development/libraries/simpleitk/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/simpleitk/default.nix b/pkgs/development/libraries/simpleitk/default.nix index c38257dadb04..9573afda0b30 100644 --- a/pkgs/development/libraries/simpleitk/default.nix +++ b/pkgs/development/libraries/simpleitk/default.nix @@ -4,6 +4,8 @@ stdenv.mkDerivation rec { pname = "simpleitk"; version = "2.1.1"; + outputs = [ "out" "dev" ]; + src = fetchFromGitHub { owner = "SimpleITK"; repo = "SimpleITK"; From ab968d7dd0df4f13d7ff1ae6d4794950a55c63f7 Mon Sep 17 00:00:00 2001 From: DarkOnion0 Date: Sat, 23 Apr 2022 19:01:47 +0200 Subject: [PATCH 40/54] assaultcube: 1.2.0.2 -> 1.3.0.2 assaultcube: update meta field assaultcube: update nix expression assaultcube: reformat expression assaultcube: add hooks and update desktop item --- pkgs/games/assaultcube/default.nix | 80 ++++++++++++++++++++---------- 1 file changed, 53 insertions(+), 27 deletions(-) diff --git a/pkgs/games/assaultcube/default.nix b/pkgs/games/assaultcube/default.nix index 4a0951d0964c..7164e66feebf 100644 --- a/pkgs/games/assaultcube/default.nix +++ b/pkgs/games/assaultcube/default.nix @@ -1,42 +1,67 @@ -{ fetchFromGitHub, lib, stdenv, makeDesktopItem, openal, pkg-config, libogg, - libvorbis, SDL, SDL_image, makeWrapper, zlib, file, - client ? true, server ? true }: - -with lib; +{ lib +, stdenv +, fetchFromGitHub +, makeDesktopItem +, copyDesktopItems +, openal +, pkg-config +, libogg +, libvorbis +, SDL2 +, SDL2_image +, makeWrapper +, zlib +, file +, client ? true, server ? true +}: stdenv.mkDerivation rec { - - # master branch has legacy (1.2.0.2) protocol 1201 and gcc 6 fix. pname = "assaultcube"; - version = "unstable-2018-05-20"; + version = "1.3.0.2"; src = fetchFromGitHub { owner = "assaultcube"; repo = "AC"; - rev = "f58ea22b46b5013a520520670434b3c235212371"; - sha256 = "1vfn3d55vmmipdykrcfvgk6dddi9y95vlclsliirm7jdp20f15hd"; + rev = "v${version}"; + sha256 = "0qv339zw9q5q1y7bghca03gw7z4v89sl4lbr6h3b7siy08mcwiz9"; }; - nativeBuildInputs = [ makeWrapper pkg-config ]; + nativeBuildInputs = [ + makeWrapper + pkg-config + copyDesktopItems + ]; - buildInputs = [ file zlib ] ++ optionals client [ openal SDL SDL_image libogg libvorbis ]; + buildInputs = [ + file + zlib + ] ++ lib.optionals client [ + openal + SDL2 + SDL2_image + libogg + libvorbis + ]; - targets = (optionalString server "server") + (optionalString client " client"); + targets = (lib.optionalString server "server") + (lib.optionalString client " client"); makeFlags = [ "-C source/src" "CXX=${stdenv.cc.targetPrefix}c++" targets ]; - desktop = makeDesktopItem { - name = "AssaultCube"; - desktopName = "AssaultCube"; - comment = "A multiplayer, first-person shooter game, based on the CUBE engine. Fast, arcade gameplay."; - genericName = "First-person shooter"; - categories = [ "Game" "ActionGame" "Shooter" ]; - icon = "assaultcube.png"; - exec = pname; - }; + desktopItems = [ + (makeDesktopItem { + name = pname; + desktopName = "AssaultCube"; + comment = "A multiplayer, first-person shooter game, based on the CUBE engine. Fast, arcade gameplay."; + genericName = "First-person shooter"; + categories = [ "Game" "ActionGame" "Shooter" ]; + icon = "assaultcube"; + exec = pname; + }) + ]; gamedatadir = "/share/games/${pname}"; installPhase = '' + runHook preInstall bindir=$out/bin @@ -47,7 +72,6 @@ stdenv.mkDerivation rec { if (test -e source/src/ac_client) then cp source/src/ac_client $bindir mkdir -p $out/share/applications - cp ${desktop}/share/applications/* $out/share/applications install -Dpm644 packages/misc/icon.png $out/share/icons/assaultcube.png install -Dpm644 packages/misc/icon.png $out/share/pixmaps/assaultcube.png @@ -60,13 +84,15 @@ stdenv.mkDerivation rec { makeWrapper $out/bin/ac_server $out/bin/${pname}-server \ --chdir "$out/$gamedatadir" --add-flags "-Cconfig/servercmdline.txt" fi - ''; - meta = { + runHook postInstall + ''; + + meta = with lib; { description = "Fast and fun first-person-shooter based on the Cube fps"; homepage = "https://assault.cubers.net"; - maintainers = [ ]; platforms = platforms.linux; # should work on darwin with a little effort. - license = lib.licenses.unfree; + license = licenses.unfree; + maintainers = with maintainers; [ darkonion0 ]; }; } From 32a1b56a7435c49650d4461eea854b6bfae3b09f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 26 Apr 2022 14:43:51 +0200 Subject: [PATCH 41/54] vapoursynth: reduce with usage --- pkgs/development/libraries/vapoursynth/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/development/libraries/vapoursynth/default.nix b/pkgs/development/libraries/vapoursynth/default.nix index b78db1673168..6abc58494da6 100644 --- a/pkgs/development/libraries/vapoursynth/default.nix +++ b/pkgs/development/libraries/vapoursynth/default.nix @@ -4,8 +4,6 @@ , ApplicationServices }: -with lib; - stdenv.mkDerivation rec { pname = "vapoursynth"; version = "R58"; @@ -25,7 +23,7 @@ stdenv.mkDerivation rec { buildInputs = [ zimg libass (python3.withPackages (ps: with ps; [ sphinx cython ])) - ] ++ optionals stdenv.isDarwin [ libiconv ApplicationServices ]; + ] ++ lib.optionals stdenv.isDarwin [ libiconv ApplicationServices ]; enableParallelBuilding = true; @@ -58,5 +56,4 @@ stdenv.mkDerivation rec { platforms = platforms.x86_64; maintainers = with maintainers; [ rnhmjoj sbruder tadeokondrak ]; }; - } From 67db991f17d459a81f2e312233c6af0394e45b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 26 Apr 2022 14:44:04 +0200 Subject: [PATCH 42/54] vapoursynth: fix nix search version parsing --- pkgs/development/libraries/vapoursynth/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/vapoursynth/default.nix b/pkgs/development/libraries/vapoursynth/default.nix index 6abc58494da6..0d990b983635 100644 --- a/pkgs/development/libraries/vapoursynth/default.nix +++ b/pkgs/development/libraries/vapoursynth/default.nix @@ -6,12 +6,12 @@ stdenv.mkDerivation rec { pname = "vapoursynth"; - version = "R58"; + version = "58"; src = fetchFromGitHub { owner = "vapoursynth"; repo = "vapoursynth"; - rev = version; + rev = "R${version}"; sha256 = "sha256-LIjNfyfpyvE+Ec6f4aGzRA4ZGoWPFhjtUw4yrenDsUQ="; }; From 74d938f11966446d25585821d96551f7f84b086d Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Tue, 26 Apr 2022 10:21:52 -0300 Subject: [PATCH 43/54] hcloud: fix version ldflag --- pkgs/development/tools/hcloud/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/hcloud/default.nix b/pkgs/development/tools/hcloud/default.nix index 4d7197937d70..e311a4b8107c 100644 --- a/pkgs/development/tools/hcloud/default.nix +++ b/pkgs/development/tools/hcloud/default.nix @@ -15,7 +15,7 @@ buildGoModule rec { ldflags = [ "-s" "-w" - "-X github.com/hetznercloud/cli/cli.Version=${version}" + "-X github.com/hetznercloud/cli/internal/version.Version=${version}" ]; nativeBuildInputs = [ installShellFiles ]; From 3c0367bcc2e5356657fb598254437ba3f1deb690 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Mon, 18 Apr 2022 11:47:38 +0200 Subject: [PATCH 44/54] wp4nix: init at 1.0.0 --- pkgs/development/tools/wp4nix/default.nix | 30 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/tools/wp4nix/default.nix diff --git a/pkgs/development/tools/wp4nix/default.nix b/pkgs/development/tools/wp4nix/default.nix new file mode 100644 index 000000000000..967459e91b74 --- /dev/null +++ b/pkgs/development/tools/wp4nix/default.nix @@ -0,0 +1,30 @@ +{ lib, buildGoModule, fetchFromGitLab, nix, subversion }: + +buildGoModule rec { + pname = "wp4nix"; + version = "1.0.0"; + + src = fetchFromGitLab { + domain = "git.helsinki.tools"; + owner = "helsinki-systems"; + repo = "wp4nix"; + rev = "v${version}"; + sha256 = "sha256-WJteeFUMr684yZEtUP13MqRjJ1UAeo48AzOPdLEE65w="; + }; + + vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo="; + + postPatch = '' + substituteInPlace main.go --replace nix-hash ${nix}/bin/nix-hash + substituteInPlace svn.go --replace '"svn"' '"${subversion}/bin/svn"' + ''; + + meta = with lib; { + description = "Packaging helper for Wordpress themes and plugins"; + homepage = "https://git.helsinki.tools/helsinki-systems/wp4nix"; + license = licenses.mit; + maintainers = with maintainers; [ onny ]; + platforms = platforms.linux; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 615bf750169f..515e1f5575f5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30143,6 +30143,8 @@ with pkgs; wrapThunderbird = callPackage ../applications/networking/mailreaders/thunderbird/wrapper.nix { }; + wp4nix = callPackage ../development/tools/wp4nix { }; + wp-cli = callPackage ../development/tools/wp-cli { }; wsjtx = qt5.callPackage ../applications/radio/wsjtx { }; From 3211c5f62879e7a66925292c6a765f9cb9a5573b Mon Sep 17 00:00:00 2001 From: Matt Whiteley Date: Tue, 26 Apr 2022 07:34:52 -0700 Subject: [PATCH 45/54] false preferred over null on dontUnpack --- .../networking/instant-messengers/zoom-us/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix index 6485c97df172..2bf4b54f6075 100644 --- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix +++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix @@ -92,7 +92,7 @@ stdenv.mkDerivation rec { src = srcs.${stdenv.hostPlatform.system}; - dontUnpack = if stdenv.isLinux then true else null; + dontUnpack = if stdenv.isLinux then true else false; unpackPhase = lib.optionalString stdenv.isDarwin '' xar -xf $src zcat < zoomus.pkg/Payload | cpio -i From fae6e0ddb013f16227add2356ddf4270e7f3745a Mon Sep 17 00:00:00 2001 From: Matt Whiteley Date: Tue, 26 Apr 2022 07:44:11 -0700 Subject: [PATCH 46/54] throw unsupported system in installPhase --- .../networking/instant-messengers/zoom-us/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix index 2bf4b54f6075..6d547a3220ef 100644 --- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix +++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix @@ -120,7 +120,7 @@ stdenv.mkDerivation rec { tar -C $out -xf $src mv $out/usr/* $out/ ''; - }.${stdenv.system}} + }.${stdenv.system} or throwSystem} runHook postInstall ''; From f2ff2227a980e531d10fe4e219a19f0fa609f942 Mon Sep 17 00:00:00 2001 From: Matt Whiteley Date: Tue, 26 Apr 2022 08:34:44 -0700 Subject: [PATCH 47/54] Remove unnecessary conditional --- .../networking/instant-messengers/zoom-us/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix index 6d547a3220ef..37c349819070 100644 --- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix +++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix @@ -92,7 +92,7 @@ stdenv.mkDerivation rec { src = srcs.${stdenv.hostPlatform.system}; - dontUnpack = if stdenv.isLinux then true else false; + dontUnpack = stdenv.isLinux; unpackPhase = lib.optionalString stdenv.isDarwin '' xar -xf $src zcat < zoomus.pkg/Payload | cpio -i From d5b4effe828646683d9020bca361bc8a29e817d1 Mon Sep 17 00:00:00 2001 From: Matt Whiteley Date: Tue, 26 Apr 2022 08:35:48 -0700 Subject: [PATCH 48/54] update comment --- .../networking/instant-messengers/zoom-us/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix index 37c349819070..4d3676dd1b81 100644 --- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix +++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix @@ -35,7 +35,7 @@ let # Zoom versions are released at different times for each platform and linux # is stuck on 5.9.6 until https://github.com/NixOS/nixpkgs/pull/166085 is - # merged + # resolved version = { aarch64-darwin = "5.10.4.6592"; x86_64-darwin = "5.10.4.6592"; From 38aec67f6a93a654688c713da89d6f76afdd3948 Mon Sep 17 00:00:00 2001 From: Matt Whiteley Date: Tue, 26 Apr 2022 08:38:13 -0700 Subject: [PATCH 49/54] fix missing throwSystem on src --- .../networking/instant-messengers/zoom-us/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix index 4d3676dd1b81..528d5ef1689b 100644 --- a/pkgs/applications/networking/instant-messengers/zoom-us/default.nix +++ b/pkgs/applications/networking/instant-messengers/zoom-us/default.nix @@ -90,7 +90,7 @@ stdenv.mkDerivation rec { pname = "zoom"; inherit version; - src = srcs.${stdenv.hostPlatform.system}; + src = srcs.${system} or throwSystem; dontUnpack = stdenv.isLinux; unpackPhase = lib.optionalString stdenv.isDarwin '' @@ -120,7 +120,7 @@ stdenv.mkDerivation rec { tar -C $out -xf $src mv $out/usr/* $out/ ''; - }.${stdenv.system} or throwSystem} + }.${system} or throwSystem} runHook postInstall ''; From 725c990db09b4c887b2cce157cfc78ae8d69c64d Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Tue, 26 Apr 2022 11:10:54 -0500 Subject: [PATCH 50/54] barrier: pick up new commit to fix compilation This fixes #170103. Details about the compilation error are in the issue. In brief, a header that used to be inferred now needs to be explicitly added. --- pkgs/applications/misc/barrier/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/barrier/default.nix b/pkgs/applications/misc/barrier/default.nix index 63a04d181156..66ad4046d1fb 100644 --- a/pkgs/applications/misc/barrier/default.nix +++ b/pkgs/applications/misc/barrier/default.nix @@ -1,6 +1,7 @@ { lib, fetchFromGitHub, cmake, curl, xorg, avahi, qtbase, mkDerivation, openssl, wrapGAppsHook, - avahiWithLibdnssdCompat ? avahi.override { withLibdnssdCompat = true; } + avahiWithLibdnssdCompat ? avahi.override { withLibdnssdCompat = true; }, + fetchpatch }: mkDerivation rec { @@ -15,6 +16,16 @@ mkDerivation rec { fetchSubmodules = true; }; + patches = [ + # This patch can be removed when a new version of barrier (greater than 2.4.0) + # is released, which will contain this commit. + (fetchpatch { + name = "add-missing-cstddef-header.patch"; + url = "https://github.com/debauchee/barrier/commit/4b12265ae5d324b942698a3177e1d8b1749414d7.patch"; + sha256 = "sha256-ajMxP7szBFi4h8cMT3qswfa3k/QiJ1FGI3q9fkCFQQk="; + }) + ]; + buildInputs = [ curl xorg.libX11 xorg.libXext xorg.libXtst avahiWithLibdnssdCompat qtbase ]; nativeBuildInputs = [ cmake wrapGAppsHook ]; From 97c0c426746c36e2d656663f47fe6c978c2b93ae Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Tue, 26 Apr 2022 12:26:53 -0400 Subject: [PATCH 51/54] corerad: 1.1.2 -> 1.2.0 Signed-off-by: Matt Layher --- pkgs/tools/networking/corerad/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/corerad/default.nix b/pkgs/tools/networking/corerad/default.nix index 360cc96b707b..6c7ebf6de09d 100644 --- a/pkgs/tools/networking/corerad/default.nix +++ b/pkgs/tools/networking/corerad/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "corerad"; - version = "1.1.2"; + version = "1.2.0"; src = fetchFromGitHub { owner = "mdlayher"; repo = "corerad"; rev = "v${version}"; - sha256 = "sha256-1v7jAYLIflXIKY0zltzkre4sNv9qqWxFGWrQuOBr2s0="; + sha256 = "sha256-CNDotCRxKBtg/RsrBa00r3vRKBIIZ4xqpdXkImI44QI="; }; - vendorSha256 = "sha256-oS9nI1BELDLFksN+NbLT1Eklg67liOvcRbxtGdYGJJA="; + vendorSha256 = "sha256-w15dRxIBzDN5i4RNEDuSfCHHb4wc4fw1B2wjlTk40iE="; # Since the tarball pulled from GitHub doesn't contain git tag information, # we fetch the expected tag's timestamp from a file in the root of the From 7665c2e599ee8247d662de92d9412931c626b053 Mon Sep 17 00:00:00 2001 From: squalus Date: Mon, 25 Apr 2022 20:48:28 -0700 Subject: [PATCH 52/54] vouch-proxy: 0.36.0 -> 0.37.0 --- pkgs/servers/vouch-proxy/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/vouch-proxy/default.nix b/pkgs/servers/vouch-proxy/default.nix index a8a773385db9..6cdc6380e84a 100644 --- a/pkgs/servers/vouch-proxy/default.nix +++ b/pkgs/servers/vouch-proxy/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "vouch-proxy"; - version = "0.36.0"; + version = "0.37.0"; src = fetchFromGitHub { owner = "vouch"; repo = "vouch-proxy"; rev = "v${version}"; - sha256 = "sha256-pgoxRzYc5PIrxnRwWpthFmpsxDfvWTmLT7upQVIFoQo="; + sha256 = "0rcc5b3v5d9v4y78z5fnjbn1k10xy8cpgxjhqc7j22k9wkic05mh"; }; - vendorSha256 = "sha256-ifH+420FIrib+zQtzzHtMMYd84BED+vgnRw4xToYIl4="; + vendorSha256 = "0pi230xcaf0wkphfn3s4h3riviihxlqwyb9lzfdvh8h5dpizxwc9"; ldflags = [ "-s" "-w" From e1d795764a13cc588492731973e4fcd8fe0eb4e8 Mon Sep 17 00:00:00 2001 From: Yuka Date: Tue, 26 Apr 2022 19:42:42 +0200 Subject: [PATCH 53/54] jitsi-meet-electron: 2022.1.1 -> 2022.3.1 (#170303) --- .../instant-messengers/jitsi-meet-electron/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/jitsi-meet-electron/default.nix b/pkgs/applications/networking/instant-messengers/jitsi-meet-electron/default.nix index 7dce1fd069d1..9625f8dcb2c3 100644 --- a/pkgs/applications/networking/instant-messengers/jitsi-meet-electron/default.nix +++ b/pkgs/applications/networking/instant-messengers/jitsi-meet-electron/default.nix @@ -9,11 +9,11 @@ stdenv.mkDerivation rec { pname = "jitsi-meet-electron"; - version = "2022.1.1"; + version = "2022.3.1"; src = fetchurl { url = "https://github.com/jitsi/jitsi-meet-electron/releases/download/v${version}/jitsi-meet-x86_64.AppImage"; - sha256 = "0x3fdqgjnsd570b7nszfx3h8l5c8x2kg32ig85n2a2g481c7xi6l"; + sha256 = "sha256-/5WpjmTLwQN73m7nHg4DKPbXIbD9WyJ+YBbFMD4ZDfg="; name = "${pname}-${version}.AppImage"; }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 42a7479dc920..3706cc3dc3fb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35187,7 +35187,7 @@ with pkgs; jami-daemon jami-libclient jami-client-gnome jami-client-qt; jitsi-meet-electron = callPackage ../applications/networking/instant-messengers/jitsi-meet-electron { - electron = electron_16; + electron = electron_17; }; zenstates = callPackage ../os-specific/linux/zenstates {}; From 1fbd921649561a3f811c8750b6b19cd6ce5cecc6 Mon Sep 17 00:00:00 2001 From: squalus Date: Tue, 26 Apr 2022 17:47:52 +0000 Subject: [PATCH 54/54] opensmtpd: support cross compile (#170379) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * opensmtpd: support cross compile * add comment to remember the linked PR Co-authored-by: Léo Gaspard --- pkgs/servers/mail/opensmtpd/cross_fix.diff | 13 +++++++++++++ pkgs/servers/mail/opensmtpd/default.nix | 1 + 2 files changed, 14 insertions(+) create mode 100644 pkgs/servers/mail/opensmtpd/cross_fix.diff diff --git a/pkgs/servers/mail/opensmtpd/cross_fix.diff b/pkgs/servers/mail/opensmtpd/cross_fix.diff new file mode 100644 index 000000000000..6f4c769954a9 --- /dev/null +++ b/pkgs/servers/mail/opensmtpd/cross_fix.diff @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index c215f3bf..f5aa25d8 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -67,7 +67,7 @@ AC_C_BIGENDIAN + AC_PROG_CPP + AC_PROG_INSTALL + AC_PROG_LIBTOOL +-AC_PATH_PROG([AR], [ar]) ++AC_PATH_TOOL([AR], [ar]) + AC_PATH_PROG([CAT], [cat]) + AC_PATH_PROG([CHMOD], [chmod]) + AC_PATH_PROG([CHOWN], [chown]) diff --git a/pkgs/servers/mail/opensmtpd/default.nix b/pkgs/servers/mail/opensmtpd/default.nix index 72d4ca760e7e..5f36b139781b 100644 --- a/pkgs/servers/mail/opensmtpd/default.nix +++ b/pkgs/servers/mail/opensmtpd/default.nix @@ -16,6 +16,7 @@ stdenv.mkDerivation rec { patches = [ ./proc_path.diff # TODO: upstream to OpenSMTPD, see https://github.com/NixOS/nixpkgs/issues/54045 + ./cross_fix.diff # TODO: remove when https://github.com/OpenSMTPD/OpenSMTPD/pull/1177 will have made it into a release ]; # See https://github.com/OpenSMTPD/OpenSMTPD/issues/885 for the `sh bootstrap`