From 1575eb8c3bc913a2a34f5377269869d6be1afe2c Mon Sep 17 00:00:00 2001 From: Hernan Lopez Vergara Date: Thu, 21 Apr 2022 16:45:28 +0200 Subject: [PATCH 01/45] yajl: fix url for fetching archive Accessing archive using current rev leads to an error saying that: the given path has multiple possibilities: #Git::Ref:0x00007f4cdbb09cd8, #Git::Ref:0x00007f4cdbb09008 Altering rev variable by adding the extra path resolves the problem --- pkgs/development/libraries/yajl/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/yajl/default.nix b/pkgs/development/libraries/yajl/default.nix index 645329f83cdb..022284b0b130 100644 --- a/pkgs/development/libraries/yajl/default.nix +++ b/pkgs/development/libraries/yajl/default.nix @@ -7,7 +7,7 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "lloyd"; repo = "yajl"; - rev = version; + rev = "refs/tags/${version}"; sha256 = "00yj06drb6izcxfxfqlhimlrb089kka0w0x8k27pyzyiq7qzcvml"; }; From 8419c3d260ab77169d3bb88508eba2fb467531f0 Mon Sep 17 00:00:00 2001 From: Pierre Thierry Date: Mon, 23 May 2022 18:20:14 +0200 Subject: [PATCH 02/45] maintainers: add kephasp --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index a102231919e4..ad7dd8b8d3d5 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -6601,6 +6601,12 @@ githubId = 2029444; name = "James Kent"; }; + kephasp = { + email = "pierre@nothos.net"; + github = "kephas"; + githubId = 762421; + name = "Pierre Thierry"; + }; ketzacoatl = { email = "ketzacoatl@protonmail.com"; github = "ketzacoatl"; From fe4fbbd5cd86cbd60fbb4e83a3751384431c2f1a Mon Sep 17 00:00:00 2001 From: Pierre Thierry Date: Mon, 23 May 2022 18:22:22 +0200 Subject: [PATCH 03/45] karate: init at 1.2.0 --- pkgs/development/tools/karate/default.nix | 37 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/tools/karate/default.nix diff --git a/pkgs/development/tools/karate/default.nix b/pkgs/development/tools/karate/default.nix new file mode 100644 index 000000000000..2dd409674019 --- /dev/null +++ b/pkgs/development/tools/karate/default.nix @@ -0,0 +1,37 @@ +{ lib, stdenvNoCC, fetchurl, jre, makeWrapper }: + +stdenvNoCC.mkDerivation rec { + pname = "karate"; + version = "1.2.0"; + + src = fetchurl { + url = "https://github.com/karatelabs/karate/releases/download/v${version}/karate-${version}.jar"; + sha256 = "69b9ba1cd9563cbad802471e7250dd46828df7ad176706577389dfe6e604e5ec"; + }; + dontUnpack = true; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + runHook preInstall + makeWrapper ${jre}/bin/java $out/bin/karate --add-flags "-jar $src" + runHook postInstall + ''; + + meta = with lib; { + description = "API Test Automation Made Simple"; + longDescription = '' + Karate is the only open-source tool to combine API + test-automation, mocks, performance-testing and even UI + automation into a single, unified framework. The BDD syntax + popularized by Cucumber is language-neutral, and easy for even + non-programmers. Assertions and HTML reports are built-in, and + you can run tests in parallel for speed. + ''; + homepage = "https://github.com/karatelabs/karate"; + changelog = "https://github.com/karatelabs/karate/releases/tag/v${version}"; + license = licenses.mit; + maintainers = [ maintainers.kephasp ]; + platforms = jre.meta.platforms; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 78d4ca310ee0..3dda9e9bf755 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15715,6 +15715,8 @@ with pkgs; kamid = callPackage ../servers/ftp/kamid { }; + karate = callPackage ../development/tools/karate { }; + kati = callPackage ../development/tools/build-managers/kati { }; kcat = callPackage ../development/tools/kcat { }; From 0c127705a0c5ead6c60973c6cb77ce10ce790a10 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 6 Jun 2022 10:00:29 +0200 Subject: [PATCH 04/45] binbloom: init at 2.0 --- pkgs/tools/security/binbloom/default.nix | 27 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/tools/security/binbloom/default.nix diff --git a/pkgs/tools/security/binbloom/default.nix b/pkgs/tools/security/binbloom/default.nix new file mode 100644 index 000000000000..0805e7b988d4 --- /dev/null +++ b/pkgs/tools/security/binbloom/default.nix @@ -0,0 +1,27 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +}: + +stdenv.mkDerivation rec { + pname = "binbloom"; + version = "2.0"; + + src = fetchFromGitHub { + owner = "quarkslab"; + repo = pname; + rev = "v${version}"; + hash = "sha256-UiKiDey/pHtJDr4UYqt+T/TneKig5tT8YU2u98Ttjmo="; + }; + + nativeBuildInputs = [ autoreconfHook ]; + + meta = with lib; { + description = "Raw binary firmware analysis software"; + homepage = "https://github.com/quarkslab/binbloom"; + license = licenses.asl20; + maintainers = with maintainers; [ erdnaxe ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2ce6d217dd35..2fed98b2c731 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -256,6 +256,8 @@ with pkgs; beyond-identity = callPackage ../tools/security/beyond-identity {}; + binbloom = callPackage ../tools/security/binbloom {}; + bingo = callPackage ../development/tools/bingo {}; bootstrap-studio = callPackage ../development/web/bootstrap-studio {}; From 50cec7d09370d2f8f0ff03dc94f504fa21103e9b Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sun, 26 Jun 2022 03:44:10 +0000 Subject: [PATCH 05/45] jsonnet-bundler: 0.4.0 -> 0.5.1 --- pkgs/development/tools/jsonnet-bundler/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/jsonnet-bundler/default.nix b/pkgs/development/tools/jsonnet-bundler/default.nix index 813c936cba3a..e627c9850503 100644 --- a/pkgs/development/tools/jsonnet-bundler/default.nix +++ b/pkgs/development/tools/jsonnet-bundler/default.nix @@ -2,19 +2,17 @@ buildGoModule rec { pname = "jsonnet-bundler"; - version = "0.4.0"; + version = "0.5.1"; src = fetchFromGitHub { owner = "jsonnet-bundler"; repo = "jsonnet-bundler"; rev = "v${version}"; - sha256 = "0pk6nf8r0wy7lnsnzyjd3vgq4b2kb3zl0xxn01ahpaqgmwpzajlk"; + sha256 = "sha256-vjb5wEiJw48s7FUarpA94ZauFC7iEgRDAkRTwRIZ8pA="; }; vendorSha256 = null; - subPackages = [ "cmd/jb" ]; - ldflags = [ "-s" "-w" "-X main.Version=${version}" ]; meta = with lib; { From d7956c52e1f56a7c180d2c290fa7b92d0e99f15a Mon Sep 17 00:00:00 2001 From: Romanos Skiadas Date: Tue, 28 Jun 2022 06:26:19 +0300 Subject: [PATCH 06/45] autorandr: WIP Fix distutils import warning Because autorandr still imports distutils, it produces a bunch of deprecation warnings. we need to add packaging to propagatedBuildInputs, but because this wasn't wrapped, the wrapper hook did not take care of adjusting the system path. The easiest way I could find to fix this was to actually wrap autorandr. Then I also had to add a patch to disable autorandr using sys.executable to fork itself in --batch mode. Otherwise it tries to use python to run the bash wrapper, which doesn't work. This should be fine in a nixpkgs environment, since nixpkgs sets the shebang explicitly. --- .../0001-don-t-use-sys.executable.patch | 33 +++++++++++++++++++ pkgs/tools/misc/autorandr/default.nix | 11 ++++--- 2 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 pkgs/tools/misc/autorandr/0001-don-t-use-sys.executable.patch diff --git a/pkgs/tools/misc/autorandr/0001-don-t-use-sys.executable.patch b/pkgs/tools/misc/autorandr/0001-don-t-use-sys.executable.patch new file mode 100644 index 000000000000..81879a8f834b --- /dev/null +++ b/pkgs/tools/misc/autorandr/0001-don-t-use-sys.executable.patch @@ -0,0 +1,33 @@ +From fdcc2f01441ec25104456022e6f8d3120709cede Mon Sep 17 00:00:00 2001 +From: Romanos Skiadas +Date: Tue, 28 Jun 2022 06:16:10 +0300 +Subject: [PATCH] don't use sys.executable + +This is required for forking self in a nixpkgs environment, +where arandr might be wrapped. In that case, the actual arandr command +will be a bash script, not python. +There is no real reason to keep this around, nixpkgs properly sets the +interpreter in the shebang anyway. +--- + autorandr.py | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git autorandr.py autorandr.py +index 35c15f6..1e84a2f 100755 +--- a/autorandr.py ++++ b/autorandr.py +@@ -1192,10 +1192,7 @@ def dispatch_call_to_sessions(argv): + os.chdir(pwent.pw_dir) + os.environ.clear() + os.environ.update(process_environ) +- if sys.executable != "" and sys.executable != None: +- os.execl(sys.executable, sys.executable, autorandr_binary, *argv[1:]) +- else: +- os.execl(autorandr_binary, autorandr_binary, *argv[1:]) ++ os.execl(autorandr_binary, autorandr_binary, *argv[1:]) + sys.exit(1) + os.waitpid(child_pid, 0) + +-- +2.36.1 + diff --git a/pkgs/tools/misc/autorandr/default.nix b/pkgs/tools/misc/autorandr/default.nix index bf54d6a445ef..7a9a30756ffc 100644 --- a/pkgs/tools/misc/autorandr/default.nix +++ b/pkgs/tools/misc/autorandr/default.nix @@ -1,25 +1,26 @@ -{ lib, stdenv +{ lib +, python3 , python3Packages , fetchFromGitHub , systemd , xrandr , installShellFiles }: -stdenv.mkDerivation rec { +python3.pkgs.buildPythonApplication rec { pname = "autorandr"; version = "1.12.1"; - buildInputs = [ python3Packages.python ]; - nativeBuildInputs = [ installShellFiles ]; + propagatedBuildInputs = [ python3Packages.packaging ]; - # no wrapper, as autorandr --batch does os.environ.clear() buildPhase = '' substituteInPlace autorandr.py \ --replace 'os.popen("xrandr' 'os.popen("${xrandr}/bin/xrandr' \ --replace '["xrandr"]' '["${xrandr}/bin/xrandr"]' ''; + patches = [ ./0001-don-t-use-sys.executable.patch ]; + outputs = [ "out" "man" ]; installPhase = '' From bb7867f1e5080de1dfff80e2f7d5a4be49889e23 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sat, 2 Jul 2022 16:12:16 +0200 Subject: [PATCH 07/45] vscode: simplify helper scripts This simplifies the following commit. - Remove `--` from `rm` because `$tmpDir` is guaranteed to never start with a `-`. We also don't use this pattern when removing tmpDirs at other places in nixpkgs. - Remove `unset tmpDir` because the variable `tmpDir` is never accessed after the exit handler is run. --- .../vscode/extensions/_maintainers/update-bin-srcs-lib.sh | 5 ++--- .../editors/vscode/extensions/cpptools/update_helper.sh | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/editors/vscode/extensions/_maintainers/update-bin-srcs-lib.sh b/pkgs/applications/editors/vscode/extensions/_maintainers/update-bin-srcs-lib.sh index e3d1e5fb1397..6a8968024c88 100755 --- a/pkgs/applications/editors/vscode/extensions/_maintainers/update-bin-srcs-lib.sh +++ b/pkgs/applications/editors/vscode/extensions/_maintainers/update-bin-srcs-lib.sh @@ -37,9 +37,8 @@ prefetchExtensionUnpacked() { 1>&2 echo "zipStorePath='$zipStorePath'" function rm_tmpdir() { - 1>&2 printf "rm -rf -- %q\n" "$tmpDir" - rm -rf -- "$tmpDir" - unset tmpDir + 1>&2 printf "rm -rf %q\n" "$tmpDir" + rm -rf "$tmpDir" trap - INT TERM HUP EXIT } function make_trapped_tmpdir() { diff --git a/pkgs/applications/editors/vscode/extensions/cpptools/update_helper.sh b/pkgs/applications/editors/vscode/extensions/cpptools/update_helper.sh index 00ef77553242..3c1d68de79cd 100755 --- a/pkgs/applications/editors/vscode/extensions/cpptools/update_helper.sh +++ b/pkgs/applications/editors/vscode/extensions/cpptools/update_helper.sh @@ -44,9 +44,7 @@ extStoreName="${extPublisher}-${extName}" function rm_tmpdir() { - #echo "Removing \`tmpDir='$tmpDir'\`" - rm -rf -- "$tmpDir" - unset tmpDir + rm -rf "$tmpDir" trap - INT TERM HUP EXIT } function make_trapped_tmpdir() { From 3f54dfa4755613dbd3098814a9ab07cb977ca347 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sat, 2 Jul 2022 12:51:12 +0200 Subject: [PATCH 08/45] treewide: fix bash exit handlers Transform exit handlers of the form trap cleanup EXIT [INT] [TERM] [QUIT] [HUP] [ERR] (where cleanup is idempotent) to trap cleanup EXIT This fixes a common bash antipattern. Each of the above signals causes the script to exit. For each signal, bash first handles the signal by running `cleanup` and then runs `cleanup` again when handling EXIT. (Exception: `vscode/*` prevents the second run of `cleanup` by removing the trap in cleanup`). Simplify the cleanup logic by just trapping exit, which is always run when the script exits due to any of the above signals. Note: In case of borgbackup, the exit handler is not idempotent, but just trapping EXIT guarantees that it's only run once. --- maintainers/scripts/rebuild-amount.sh | 2 +- nixos/modules/services/backup/borgbackup.nix | 4 +--- nixos/modules/services/web-apps/keycloak.nix | 2 +- .../vscode/extensions/_maintainers/update-bin-srcs-lib.sh | 3 +-- .../editors/vscode/extensions/cpptools/update_helper.sh | 3 +-- pkgs/build-support/fetchcvs/nix-prefetch-cvs | 6 ++---- 6 files changed, 7 insertions(+), 13 deletions(-) diff --git a/maintainers/scripts/rebuild-amount.sh b/maintainers/scripts/rebuild-amount.sh index bedd352db5f3..32810f6b98c0 100755 --- a/maintainers/scripts/rebuild-amount.sh +++ b/maintainers/scripts/rebuild-amount.sh @@ -35,7 +35,7 @@ toRemove=() cleanup() { rm -rf "${toRemove[@]}" } -trap cleanup EXIT SIGINT SIGQUIT ERR +trap cleanup EXIT MKTEMP='mktemp --tmpdir nix-rebuild-amount-XXXXXXXX' diff --git a/nixos/modules/services/backup/borgbackup.nix b/nixos/modules/services/backup/borgbackup.nix index 4c9ddfe4674b..7cf2c080f813 100644 --- a/nixos/modules/services/backup/borgbackup.nix +++ b/nixos/modules/services/backup/borgbackup.nix @@ -23,12 +23,10 @@ let on_exit() { exitStatus=$? - # Reset the EXIT handler, or else we're called again on 'exit' below - trap - EXIT ${cfg.postHook} exit $exitStatus } - trap 'on_exit' INT TERM QUIT EXIT + trap on_exit EXIT archiveName="${if cfg.archiveBaseName == null then "" else cfg.archiveBaseName + "-"}$(date ${cfg.dateFormat})" archiveSuffix="${optionalString cfg.appendFailedSuffix ".failed"}" diff --git a/nixos/modules/services/web-apps/keycloak.nix b/nixos/modules/services/web-apps/keycloak.nix index a1855e1c1a79..a4baad8e9213 100644 --- a/nixos/modules/services/web-apps/keycloak.nix +++ b/nixos/modules/services/web-apps/keycloak.nix @@ -569,7 +569,7 @@ in shopt -s inherit_errexit create_role="$(mktemp)" - trap 'rm -f "$create_role"' ERR EXIT + trap 'rm -f "$create_role"' EXIT db_password="$(<"$CREDENTIALS_DIRECTORY/db_password")" echo "CREATE ROLE keycloak WITH LOGIN PASSWORD '$db_password' CREATEDB" > "$create_role" diff --git a/pkgs/applications/editors/vscode/extensions/_maintainers/update-bin-srcs-lib.sh b/pkgs/applications/editors/vscode/extensions/_maintainers/update-bin-srcs-lib.sh index 6a8968024c88..4b0ca54da362 100755 --- a/pkgs/applications/editors/vscode/extensions/_maintainers/update-bin-srcs-lib.sh +++ b/pkgs/applications/editors/vscode/extensions/_maintainers/update-bin-srcs-lib.sh @@ -39,11 +39,10 @@ prefetchExtensionUnpacked() { function rm_tmpdir() { 1>&2 printf "rm -rf %q\n" "$tmpDir" rm -rf "$tmpDir" - trap - INT TERM HUP EXIT } function make_trapped_tmpdir() { tmpDir=$(mktemp -d) - trap rm_tmpdir INT TERM HUP EXIT + trap rm_tmpdir EXIT } 1>&2 echo diff --git a/pkgs/applications/editors/vscode/extensions/cpptools/update_helper.sh b/pkgs/applications/editors/vscode/extensions/cpptools/update_helper.sh index 3c1d68de79cd..d7bd307c92a0 100755 --- a/pkgs/applications/editors/vscode/extensions/cpptools/update_helper.sh +++ b/pkgs/applications/editors/vscode/extensions/cpptools/update_helper.sh @@ -45,11 +45,10 @@ extStoreName="${extPublisher}-${extName}" function rm_tmpdir() { rm -rf "$tmpDir" - trap - INT TERM HUP EXIT } function make_trapped_tmpdir() { tmpDir=$(mktemp -d) - trap rm_tmpdir INT TERM HUP EXIT + trap rm_tmpdir EXIT } echo diff --git a/pkgs/build-support/fetchcvs/nix-prefetch-cvs b/pkgs/build-support/fetchcvs/nix-prefetch-cvs index f9ed8ffa066f..b6a169f8b531 100755 --- a/pkgs/build-support/fetchcvs/nix-prefetch-cvs +++ b/pkgs/build-support/fetchcvs/nix-prefetch-cvs @@ -21,13 +21,11 @@ fi mkTempDir() { tmpPath="$(mktemp -d "${TMPDIR:-/tmp}/nix-prefetch-cvs-XXXXXXXX")" - trap removeTempDir EXIT SIGINT SIGQUIT + trap removeTempDir EXIT } removeTempDir() { - if test -n "$tmpPath"; then - rm -rf "$tmpPath" || true - fi + rm -rf "$tmpPath" } From 80ba8111d4378be1fc78b413d56fecb0fcfa3399 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Mon, 4 Jul 2022 08:29:23 +0000 Subject: [PATCH 09/45] buildBazelPackage: allow custom impureEnvVars --- pkgs/build-support/build-bazel-package/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/build-bazel-package/default.nix b/pkgs/build-support/build-bazel-package/default.nix index 74486e2e1003..f379334786b6 100644 --- a/pkgs/build-support/build-bazel-package/default.nix +++ b/pkgs/build-support/build-bazel-package/default.nix @@ -58,7 +58,7 @@ in stdenv.mkDerivation (fBuildAttrs // { name = "${name}-deps.tar.gz"; inherit bazelFlags bazelBuildFlags bazelFetchFlags bazelTarget; - impureEnvVars = lib.fetchers.proxyImpureEnvVars; + impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ fFetchAttrs.impureEnvVars or []; nativeBuildInputs = fFetchAttrs.nativeBuildInputs or [] ++ [ bazel ]; From ab2bb95249236f6afe712926b395c1ac65a93447 Mon Sep 17 00:00:00 2001 From: Semion Nadezhdin Date: Thu, 7 Jul 2022 17:01:16 +0300 Subject: [PATCH 10/45] acpica-tools: repair installPhase for darwin Upstream degrades install to cp which is incompatible with -m 555 option. This change ensures INSTALLFLAGS is not applied on darwin. --- pkgs/tools/system/acpica-tools/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/system/acpica-tools/default.nix b/pkgs/tools/system/acpica-tools/default.nix index b34302bde580..bf42608411a8 100644 --- a/pkgs/tools/system/acpica-tools/default.nix +++ b/pkgs/tools/system/acpica-tools/default.nix @@ -32,7 +32,8 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; # We can handle stripping ourselves. - INSTALLFLAGS = "-m 555"; + # Unless we are on Darwin. Upstream makefiles degrade coreutils install to cp if _APPLE is detected. + INSTALLFLAGS = lib.optionals (!stdenv.isDarwin) "-m 555"; installFlags = [ "PREFIX=${placeholder "out"}" ]; @@ -41,6 +42,6 @@ stdenv.mkDerivation rec { description = "ACPICA Tools"; license = with licenses; [ iasl gpl2Only bsd3 ]; maintainers = with maintainers; [ tadfisher ]; - platforms = platforms.linux; + platforms = platforms.linux ++ platforms.darwin; }; } From 2cdbc00b2c3c74d0ad1b78d7e809d6c94cddad82 Mon Sep 17 00:00:00 2001 From: nanashi0x74 Date: Sun, 15 May 2022 19:29:05 +0200 Subject: [PATCH 11/45] flutter: use `dart pub` instead of deprecated pub command --- pkgs/development/compilers/flutter/flutter.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/flutter/flutter.nix b/pkgs/development/compilers/flutter/flutter.nix index 43538ede339e..28a78c3e3060 100644 --- a/pkgs/development/compilers/flutter/flutter.nix +++ b/pkgs/development/compilers/flutter/flutter.nix @@ -61,7 +61,7 @@ let # path is relative otherwise it's replaced by /build/flutter pushd "$FLUTTER_TOOLS_DIR" - ${dart}/bin/pub get --offline + ${dart}/bin/dart pub get --offline popd local revision="$(cd "$FLUTTER_ROOT"; git rev-parse HEAD)" From 04699b7b7e30b53d8eeb4817f9aa69bf6baeff51 Mon Sep 17 00:00:00 2001 From: nanashi0x74 Date: Sun, 15 May 2022 19:36:01 +0200 Subject: [PATCH 12/45] flutter: 2.10.1->3.0.4 --- pkgs/development/compilers/flutter/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/development/compilers/flutter/default.nix b/pkgs/development/compilers/flutter/default.nix index acff9dd030eb..4529d2adc1aa 100644 --- a/pkgs/development/compilers/flutter/default.nix +++ b/pkgs/development/compilers/flutter/default.nix @@ -4,24 +4,25 @@ let getPatches = dir: let files = builtins.attrNames (builtins.readDir dir); in map (f: dir + ("/" + f)) files; - version = "2.10.1"; + version = "3.0.4"; channel = "stable"; filename = "flutter_linux_${version}-${channel}.tar.xz"; # Decouples flutter derivation from dart derivation, # use specific dart version to not need to bump dart derivation when bumping flutter. - dartVersion = "2.16.2"; + dartVersion = "2.17.5"; dartSourceBase = "https://storage.googleapis.com/dart-archive/channels"; dartForFlutter = dart.override { version = dartVersion; sources = { "${dartVersion}-x86_64-linux" = fetchurl { url = "${dartSourceBase}/stable/release/${dartVersion}/sdk/dartsdk-linux-x64-release.zip"; - sha256 = "sha256-egrYd7B4XhkBiHPIFE2zopxKtQ58GqlogAKA/UeiXnI="; + sha256 = "sha256-AFJGeiPsjUZSO+DykmOIFETg2jIohg62tp3ghZrKJFk="; }; }; }; -in { +in +{ inherit mkFlutter; stable = mkFlutter rec { inherit version; @@ -29,7 +30,7 @@ in { pname = "flutter"; src = fetchurl { url = "https://storage.googleapis.com/flutter_infra_release/releases/${channel}/linux/${filename}"; - sha256 = "sha256-rSfwcglDV2rvJl10j7FByAWmghd2FYxrlkgYnvRO54Y="; + sha256 = "sha256-vh3QjLGFBN321DUET9XhYqSkILjEj+ZqAALu/mxY+go="; }; patches = getPatches ./patches; }; From 02e10382d53894fdac31b6ac02c6eca3194cbdc0 Mon Sep 17 00:00:00 2001 From: nanashi0x74 Date: Fri, 10 Jun 2022 01:22:10 +0200 Subject: [PATCH 13/45] flutter: patch git version check --- .../compilers/flutter/patches/git-dir.patch | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 pkgs/development/compilers/flutter/patches/git-dir.patch diff --git a/pkgs/development/compilers/flutter/patches/git-dir.patch b/pkgs/development/compilers/flutter/patches/git-dir.patch new file mode 100644 index 000000000000..0c736f945ea9 --- /dev/null +++ b/pkgs/development/compilers/flutter/patches/git-dir.patch @@ -0,0 +1,102 @@ +diff --git a/dev/bots/prepare_package.dart b/dev/bots/prepare_package.dart +index 468a91a954..5def6897ce 100644 +--- a/dev/bots/prepare_package.dart ++++ b/dev/bots/prepare_package.dart +@@ -525,7 +525,7 @@ class ArchiveCreator { + + Future _runGit(List args, {Directory? workingDirectory}) { + return _processRunner.runProcess( +- ['git', ...args], ++ ['git', '--git-dir', '.git', ...args], + workingDirectory: workingDirectory ?? flutterRoot, + ); + } +diff --git a/packages/flutter_tools/lib/src/commands/downgrade.dart b/packages/flutter_tools/lib/src/commands/downgrade.dart +index bb0eb428a9..4a2a48bb5e 100644 +--- a/packages/flutter_tools/lib/src/commands/downgrade.dart ++++ b/packages/flutter_tools/lib/src/commands/downgrade.dart +@@ -118,7 +118,7 @@ class DowngradeCommand extends FlutterCommand { + // Detect unknown versions. + final ProcessUtils processUtils = _processUtils!; + final RunResult parseResult = await processUtils.run([ +- 'git', 'describe', '--tags', lastFlutterVersion, ++ 'git', '--git-dir', '.git', 'describe', '--tags', lastFlutterVersion, + ], workingDirectory: workingDirectory); + if (parseResult.exitCode != 0) { + throwToolExit('Failed to parse version for downgrade:\n${parseResult.stderr}'); +@@ -191,7 +191,7 @@ class DowngradeCommand extends FlutterCommand { + continue; + } + final RunResult parseResult = await _processUtils!.run([ +- 'git', 'describe', '--tags', sha, ++ 'git', '--git-dir', '.git', 'describe', '--tags', sha, + ], workingDirectory: workingDirectory); + if (parseResult.exitCode == 0) { + buffer.writeln('Channel "${getNameForChannel(channel)}" was previously on: ${parseResult.stdout}.'); +diff --git a/packages/flutter_tools/lib/src/version.dart b/packages/flutter_tools/lib/src/version.dart +index f2068a6ca2..99b161689e 100644 +--- a/packages/flutter_tools/lib/src/version.dart ++++ b/packages/flutter_tools/lib/src/version.dart +@@ -106,7 +106,7 @@ class FlutterVersion { + String? channel = _channel; + if (channel == null) { + final String gitChannel = _runGit( +- 'git rev-parse --abbrev-ref --symbolic @{u}', ++ 'git --git-dir .git rev-parse --abbrev-ref --symbolic @{u}', + globals.processUtils, + _workingDirectory, + ); +@@ -114,7 +114,7 @@ class FlutterVersion { + if (slash != -1) { + final String remote = gitChannel.substring(0, slash); + _repositoryUrl = _runGit( +- 'git ls-remote --get-url $remote', ++ 'git --git-dir .git ls-remote --get-url $remote', + globals.processUtils, + _workingDirectory, + ); +@@ -326,7 +326,7 @@ class FlutterVersion { + /// the branch name will be returned as `'[user-branch]'`. + String getBranchName({ bool redactUnknownBranches = false }) { + _branch ??= () { +- final String branch = _runGit('git rev-parse --abbrev-ref HEAD', globals.processUtils); ++ final String branch = _runGit('git --git-dir .git rev-parse --abbrev-ref HEAD', globals.processUtils); + return branch == 'HEAD' ? channel : branch; + }(); + if (redactUnknownBranches || _branch!.isEmpty) { +@@ -359,7 +359,7 @@ class FlutterVersion { + /// wrapper that does that. + @visibleForTesting + static List gitLog(List args) { +- return ['git', '-c', 'log.showSignature=false', 'log'] + args; ++ return ['git', '-c', 'log.showSignature=false', '--git-dir', '.git', 'log'] + args; + } + + /// Gets the release date of the latest available Flutter version. +@@ -730,7 +730,7 @@ class GitTagVersion { + + static GitTagVersion determine(ProcessUtils processUtils, {String? workingDirectory, bool fetchTags = false, String gitRef = 'HEAD'}) { + if (fetchTags) { +- final String channel = _runGit('git rev-parse --abbrev-ref HEAD', processUtils, workingDirectory); ++ final String channel = _runGit('git --git-dir .git rev-parse --abbrev-ref HEAD', processUtils, workingDirectory); + if (channel == 'dev' || channel == 'beta' || channel == 'stable') { + globals.printTrace('Skipping request to fetchTags - on well known channel $channel.'); + } else { +@@ -739,7 +739,7 @@ class GitTagVersion { + } + // find all tags attached to the given [gitRef] + final List tags = _runGit( +- 'git tag --points-at $gitRef', processUtils, workingDirectory).trim().split('\n'); ++ 'git --git-dir .git tag --points-at $gitRef', processUtils, workingDirectory).trim().split('\n'); + + // Check first for a stable tag + final RegExp stableTagPattern = RegExp(r'^\d+\.\d+\.\d+$'); +@@ -760,7 +760,7 @@ class GitTagVersion { + // recent tag and number of commits past. + return parse( + _runGit( +- 'git describe --match *.*.* --long --tags $gitRef', ++ 'git --git-dir .git describe --match *.*.* --long --tags $gitRef', + processUtils, + workingDirectory, + ) From 43d2b91944bd628cf91aadddd18cb48768f8f37e Mon Sep 17 00:00:00 2001 From: nanashi0x74 Date: Fri, 24 Jun 2022 15:16:20 +0200 Subject: [PATCH 14/45] flutter: amend move-cache patch after update --- .../flutter/patches/move-cache.patch | 130 ++++++++++++++++++ 1 file changed, 130 insertions(+) diff --git a/pkgs/development/compilers/flutter/patches/move-cache.patch b/pkgs/development/compilers/flutter/patches/move-cache.patch index a81d2def242c..5cb7c71e9bd4 100644 --- a/pkgs/development/compilers/flutter/patches/move-cache.patch +++ b/pkgs/development/compilers/flutter/patches/move-cache.patch @@ -70,3 +70,133 @@ index defc86cc20..7fdf14d112 100644 } } +diff --git a/packages/flutter_tools/lib/src/artifacts.dart b/packages/flutter_tools/lib/src/artifacts.dart +index 2aac9686e8..32c4b98b88 100644 +--- a/packages/flutter_tools/lib/src/artifacts.dart ++++ b/packages/flutter_tools/lib/src/artifacts.dart +@@ -346,10 +346,10 @@ class CachedArtifacts implements Artifacts { + ) { + switch (artifact) { + case HostArtifact.engineDartSdkPath: +- final String path = _dartSdkPath(_cache); ++ final String path = _dartSdkPath(_fileSystem); + return _fileSystem.directory(path); + case HostArtifact.engineDartBinary: +- final String path = _fileSystem.path.join(_dartSdkPath(_cache), 'bin', _hostArtifactToFileName(artifact, _platform.isWindows)); ++ final String path = _fileSystem.path.join(_dartSdkPath(_fileSystem), 'bin', _hostArtifactToFileName(artifact, _platform.isWindows)); + return _fileSystem.file(path); + case HostArtifact.flutterWebSdk: + final String path = _getFlutterWebSdkPath(); +@@ -398,7 +398,7 @@ class CachedArtifacts implements Artifacts { + case HostArtifact.dart2jsSnapshot: + case HostArtifact.dartdevcSnapshot: + case HostArtifact.kernelWorkerSnapshot: +- final String path = _fileSystem.path.join(_dartSdkPath(_cache), 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows)); ++ final String path = _fileSystem.path.join(_dartSdkPath(_fileSystem), 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows)); + return _fileSystem.file(path); + case HostArtifact.iosDeploy: + final String artifactFileName = _hostArtifactToFileName(artifact, _platform.isWindows); +@@ -461,11 +461,13 @@ class CachedArtifacts implements Artifacts { + String _getAndroidArtifactPath(Artifact artifact, TargetPlatform platform, BuildMode mode) { + final String engineDir = _getEngineArtifactsPath(platform, mode)!; + switch (artifact) { ++ case Artifact.frontendServerSnapshotForEngineDartSdk: ++ assert(mode != BuildMode.debug, 'Artifact $artifact only available in non-debug mode.'); ++ return _fileSystem.path.join(engineDir, _artifactToFileName(artifact)); + case Artifact.genSnapshot: + assert(mode != BuildMode.debug, 'Artifact $artifact only available in non-debug mode.'); + final String hostPlatform = getNameForHostPlatform(getCurrentHostPlatform()); + return _fileSystem.path.join(engineDir, hostPlatform, _artifactToFileName(artifact)); +- case Artifact.frontendServerSnapshotForEngineDartSdk: + case Artifact.constFinder: + case Artifact.flutterFramework: + case Artifact.flutterMacOSFramework: +@@ -497,13 +499,13 @@ class CachedArtifacts implements Artifacts { + switch (artifact) { + case Artifact.genSnapshot: + case Artifact.flutterXcframework: ++ case Artifact.frontendServerSnapshotForEngineDartSdk: + final String artifactFileName = _artifactToFileName(artifact)!; + final String engineDir = _getEngineArtifactsPath(platform, mode)!; + return _fileSystem.path.join(engineDir, artifactFileName); + case Artifact.flutterFramework: + final String engineDir = _getEngineArtifactsPath(platform, mode)!; + return _getIosEngineArtifactPath(engineDir, environmentType, _fileSystem); +- case Artifact.frontendServerSnapshotForEngineDartSdk: + case Artifact.constFinder: + case Artifact.flutterMacOSFramework: + case Artifact.flutterMacOSPodspec: +@@ -594,14 +596,10 @@ class CachedArtifacts implements Artifacts { + // For script snapshots any gen_snapshot binary will do. Returning gen_snapshot for + // android_arm in profile mode because it is available on all supported host platforms. + return _getAndroidArtifactPath(artifact, TargetPlatform.android_arm, BuildMode.profile); +- case Artifact.frontendServerSnapshotForEngineDartSdk: +- return _fileSystem.path.join( +- _dartSdkPath(_cache), 'bin', 'snapshots', +- _artifactToFileName(artifact), +- ); + case Artifact.flutterTester: + case Artifact.vmSnapshotData: + case Artifact.isolateSnapshotData: ++ case Artifact.frontendServerSnapshotForEngineDartSdk: + case Artifact.icuData: + final String engineArtifactsPath = _cache.getArtifactDirectory('engine').path; + final String platformDirName = _enginePlatformDirectoryName(platform); +@@ -797,7 +795,7 @@ class CachedLocalEngineArtifacts implements LocalEngineArtifacts { + final String path = _fileSystem.path.join(_hostEngineOutPath, 'dart-sdk', 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows)); + return _fileSystem.file(path); + case HostArtifact.dartdevcSnapshot: +- final String path = _fileSystem.path.join(_dartSdkPath(_cache), 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows)); ++ final String path = _fileSystem.path.join(_dartSdkPath(_fileSystem), 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows)); + return _fileSystem.file(path); + case HostArtifact.kernelWorkerSnapshot: + final String path = _fileSystem.path.join(_hostEngineOutPath, 'dart-sdk', 'bin', 'snapshots', _hostArtifactToFileName(artifact, _platform.isWindows)); +@@ -922,9 +920,7 @@ class CachedLocalEngineArtifacts implements LocalEngineArtifacts { + case Artifact.windowsUwpCppClientWrapper: + return _fileSystem.path.join(_hostEngineOutPath, artifactFileName); + case Artifact.frontendServerSnapshotForEngineDartSdk: +- return _fileSystem.path.join( +- _hostEngineOutPath, 'dart-sdk', 'bin', 'snapshots', artifactFileName, +- ); ++ return _fileSystem.path.join(_hostEngineOutPath, 'gen', artifactFileName); + case Artifact.uwptool: + return _fileSystem.path.join(_hostEngineOutPath, artifactFileName); + } +@@ -1034,8 +1030,8 @@ class OverrideArtifacts implements Artifacts { + } + + /// Locate the Dart SDK. +-String _dartSdkPath(Cache cache) { +- return cache.getRoot().childDirectory('dart-sdk').path; ++String _dartSdkPath(FileSystem fileSystem) { ++ return fileSystem.path.join(Cache.flutterRoot!, 'bin', 'cache', 'dart-sdk'); + } + + class _TestArtifacts implements Artifacts { +diff --git a/packages/flutter_tools/test/general.shard/artifacts_test.dart b/packages/flutter_tools/test/general.shard/artifacts_test.dart +index d906511a15..adfdd4bb42 100644 +--- a/packages/flutter_tools/test/general.shard/artifacts_test.dart ++++ b/packages/flutter_tools/test/general.shard/artifacts_test.dart +@@ -153,10 +153,6 @@ void main() { + artifacts.getArtifactPath(Artifact.windowsUwpDesktopPath, platform: TargetPlatform.windows_uwp_x64, mode: BuildMode.release), + fileSystem.path.join('root', 'bin', 'cache', 'artifacts', 'engine', 'windows-uwp-x64-release'), + ); +- expect( +- artifacts.getArtifactPath(Artifact.frontendServerSnapshotForEngineDartSdk), +- fileSystem.path.join('root', 'bin', 'cache', 'dart-sdk', 'bin', 'snapshots', 'frontend_server.dart.snapshot') +- ); + }); + + testWithoutContext('precompiled web artifact paths are correct', () { +@@ -322,11 +318,6 @@ void main() { + artifacts.getHostArtifact(HostArtifact.engineDartSdkPath).path, + fileSystem.path.join('/out', 'host_debug_unopt', 'dart-sdk'), + ); +- expect( +- artifacts.getArtifactPath(Artifact.frontendServerSnapshotForEngineDartSdk), +- fileSystem.path.join('/out', 'host_debug_unopt', 'dart-sdk', 'bin', +- 'snapshots', 'frontend_server.dart.snapshot') +- ); + }); + + testWithoutContext('getEngineType', () { From 043de04db8a6b0391b3fefaaade160514d866946 Mon Sep 17 00:00:00 2001 From: nanashi0x74 Date: Wed, 6 Jul 2022 00:14:43 +0200 Subject: [PATCH 15/45] update hashes for fluffychat and firmware-updater --- .../networking/instant-messengers/fluffychat/default.nix | 2 +- pkgs/os-specific/linux/firmware/firmware-updater/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/fluffychat/default.nix b/pkgs/applications/networking/instant-messengers/fluffychat/default.nix index 565c44f72e92..d50e7118cc18 100644 --- a/pkgs/applications/networking/instant-messengers/fluffychat/default.nix +++ b/pkgs/applications/networking/instant-messengers/fluffychat/default.nix @@ -10,7 +10,7 @@ flutter.mkFlutterApp rec { pname = "fluffychat"; version = "1.2.0"; - vendorHash = "sha256-j5opwEFifa+DMG7Uziv4SWEPVokD6OSq8mSIr0AdDL0="; + vendorHash = "sha256-co+bnsVIyg42JpM9FimfGEjrd6A99GlBeow1Dgv7NBI="; src = fetchFromGitLab { owner = "famedly"; diff --git a/pkgs/os-specific/linux/firmware/firmware-updater/default.nix b/pkgs/os-specific/linux/firmware/firmware-updater/default.nix index 02b549dd9ea1..fb9d3a9a36c4 100644 --- a/pkgs/os-specific/linux/firmware/firmware-updater/default.nix +++ b/pkgs/os-specific/linux/firmware/firmware-updater/default.nix @@ -7,7 +7,7 @@ flutter.mkFlutterApp { pname = "firmware-updater"; version = "unstable"; - vendorHash = "sha256-L8am4vTx4KlMHUdIhrUsCxGc27vkolawS/9DyFCPOJQ="; + vendorHash = "sha256-3wVA9BLCnMijC0gOmskz+Hv7NQIGu/jhBDbWjmoq1Tc="; src = fetchFromGitHub { owner = "canonical"; From 4ff2e5d7e0c6337d46a1e089f9b653a19b9f7aa4 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Sun, 3 Jul 2022 22:29:30 +1000 Subject: [PATCH 16/45] restool: also depend on which The ls-main script uses `which`. It also has /bin/sh as its shebang, which means bash runs in Bourne-compatible mode and `which` is not a builtin. When the ls-* scripts are invoked from a user shell you don't notice the problem, because /run/current-system/sw/bin/which is on $PATH, but when they are invoked in a systemd service it would fail: .../bin/ls-addni: line 1054: which: command not found --- pkgs/os-specific/linux/restool/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/restool/default.nix b/pkgs/os-specific/linux/restool/default.nix index 83c7c93ffcd8..9b8ade24748c 100644 --- a/pkgs/os-specific/linux/restool/default.nix +++ b/pkgs/os-specific/linux/restool/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchgit, bash, coreutils, dtc, file, gawk, gnugrep, gnused }: +{ stdenv, lib, fetchgit, bash, coreutils, dtc, file, gawk, gnugrep, gnused, which }: stdenv.mkDerivation rec { pname = "restool"; @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ file ]; - buildInputs = [ bash coreutils dtc gawk gnugrep gnused ]; + buildInputs = [ bash coreutils dtc gawk gnugrep gnused which ]; makeFlags = [ "prefix=$(out)" From 744f00c6b108794bef7b3887d45c52778f1eddcf Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Sat, 23 Jul 2022 10:01:27 +1000 Subject: [PATCH 17/45] =?UTF-8?q?restool:=2020.12=20=E2=86=92=202.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream appears to have changed their versioning scheme. Instead of being tied to LSDK date-based versions, restool is versioned independently. There are no tags or releases following the new versioning scheme, so update the package to take the most recent commit (27 Oct 2021). This also matches the revision that Fedora has packaged as version 2.4. --- pkgs/os-specific/linux/restool/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/os-specific/linux/restool/default.nix b/pkgs/os-specific/linux/restool/default.nix index 9b8ade24748c..add68522e7f9 100644 --- a/pkgs/os-specific/linux/restool/default.nix +++ b/pkgs/os-specific/linux/restool/default.nix @@ -1,20 +1,23 @@ -{ stdenv, lib, fetchgit, bash, coreutils, dtc, file, gawk, gnugrep, gnused, which }: +{ stdenv, lib, fetchgit, bash, coreutils, dtc, file, gawk, gnugrep, gnused, pandoc, which }: stdenv.mkDerivation rec { pname = "restool"; - version = "20.12"; + version = "2.4"; src = fetchgit { url = "https://source.codeaurora.org/external/qoriq/qoriq-components/restool"; - rev = "LSDK-${version}"; - sha256 = "137xvvms3n4wwb5v2sv70vsib52s3s314306qa0mqpgxf9fb19zl"; + rev = "abd2f5b7181db9d03db9e6ccda0194923b73e9a2"; + sha256 = "sha256-ryTDyqSy39e8Omf7l8lK4mLWr8jccDhMVPldkVGSQVo="; }; - nativeBuildInputs = [ file ]; + nativeBuildInputs = [ file pandoc ]; buildInputs = [ bash coreutils dtc gawk gnugrep gnused which ]; + enableParallelBuilding = true; makeFlags = [ - "prefix=$(out)" + "prefix=" + "bindir_completion=/share/bash-completion/completions" + "DESTDIR=$(out)" "VERSION=${version}" ]; From 79d65a8851703f2111df9ea95632c68e7ac6dab4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 30 Jul 2022 14:30:51 +0000 Subject: [PATCH 18/45] bind: 9.18.4 -> 9.18.5 --- pkgs/servers/dns/bind/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix index c5fab10b245c..b8838b2bfcb5 100644 --- a/pkgs/servers/dns/bind/default.nix +++ b/pkgs/servers/dns/bind/default.nix @@ -8,11 +8,11 @@ stdenv.mkDerivation rec { pname = "bind"; - version = "9.18.4"; + version = "9.18.5"; src = fetchurl { url = "https://downloads.isc.org/isc/bind9/${version}/${pname}-${version}.tar.xz"; - sha256 = "sha256-8neuUBWaAMMA65JqnF1RlTA4qTa9gkLWkT37bqxCdh0="; + sha256 = "sha256-DO4HjXTwvcTsN0Q1Amsl3niS8mVAoYsioC73KKEdyuc="; }; outputs = [ "out" "lib" "dev" "man" "dnsutils" "host" ]; From 751df2de1f914e962761de7c0612c03ad13cec77 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 1 Aug 2022 06:08:34 +0000 Subject: [PATCH 19/45] pidgin: 2.14.8 -> 2.14.10 --- .../networking/instant-messengers/pidgin/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/pidgin/default.nix b/pkgs/applications/networking/instant-messengers/pidgin/default.nix index 01e138485461..84f8f327cad9 100644 --- a/pkgs/applications/networking/instant-messengers/pidgin/default.nix +++ b/pkgs/applications/networking/instant-messengers/pidgin/default.nix @@ -9,11 +9,11 @@ let unwrapped = stdenv.mkDerivation rec { pname = "pidgin"; - version = "2.14.8"; + version = "2.14.10"; src = fetchurl { url = "mirror://sourceforge/pidgin/pidgin-${version}.tar.bz2"; - sha256 = "1jjc15pfyw3012q5ffv7q4r88wv07ndqh0wakyxa2k0w4708b01z"; + sha256 = "sha256-RUsbkovGvLsYM1OvMPv95VlfIkWjQjoaRubJei3yKBA="; }; nativeBuildInputs = [ makeWrapper ]; From 29fb8273cc0518a27a54354f964f6d125916ecc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Reynier?= Date: Wed, 27 Jul 2022 17:57:00 +0200 Subject: [PATCH 20/45] fira-go: init at 1.001 --- pkgs/data/fonts/fira-go/default.nix | 34 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/data/fonts/fira-go/default.nix diff --git a/pkgs/data/fonts/fira-go/default.nix b/pkgs/data/fonts/fira-go/default.nix new file mode 100644 index 000000000000..2d5952523a60 --- /dev/null +++ b/pkgs/data/fonts/fira-go/default.nix @@ -0,0 +1,34 @@ +{ lib, fetchzip }: + +let + pname = "fira-go"; + version = "1.001"; + user = "bBoxType"; + repo = "FiraGo"; + rev = "9882ba0851f88ab904dc237f250db1d45641f45d"; +in +fetchzip { + name = "${pname}-${version}"; + + url = "https://github.com/${user}/${repo}/archive/${rev}.zip"; + + postFetch = '' + mkdir -p $out/share/fonts/opentype + mv $out/Fonts/FiraGO_OTF_1001/{Roman,Italic}/*.otf \ + $out/share/fonts/opentype + rm -r $out/{Fonts,'Technical Report PDF',OFL.txt,README.md,*.pdf} + ''; + + sha256 = "sha256-MDGRba1eao/yVzSuncJ/nvCG8cpdrI4roVPI1G9qCbU="; + + meta = with lib; { + homepage = "https://bboxtype.com/typefaces/FiraGO"; + description = '' + Font with the same glyph set as Fira Sans 4.3 and additionally + supports Arabic, Devenagari, Georgian, Hebrew and Thai + ''; + license = licenses.ofl; + maintainers = [ maintainers.loicreynier ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index aaf2fe0d66c9..54c3eb3e085d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24894,6 +24894,8 @@ with pkgs; fira-code = callPackage ../data/fonts/fira-code { }; fira-code-symbols = callPackage ../data/fonts/fira-code/symbols.nix { }; + fira-go = callPackage ../data/fonts/fira-go { }; + fira-mono = callPackage ../data/fonts/fira-mono { }; flat-remix-icon-theme = callPackage ../data/icons/flat-remix-icon-theme { From 976468d6627d9736a1000933cafe804319829837 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 6 Aug 2022 01:58:21 +0000 Subject: [PATCH 21/45] oil: 0.12.0 -> 0.12.3 --- pkgs/shells/oil/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/shells/oil/default.nix b/pkgs/shells/oil/default.nix index 57b5d085c340..8702e83cae90 100644 --- a/pkgs/shells/oil/default.nix +++ b/pkgs/shells/oil/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "oil"; - version = "0.12.0"; + version = "0.12.3"; src = fetchurl { url = "https://www.oilshell.org/download/oil-${version}.tar.xz"; - hash = "sha256-1zwGfM17SWWIvQ19cSbIfiLRaq+Ee1r94GPJWJEPoP8="; + hash = "sha256-M8gklc9crdVkQk9vzxO4tG809O0uHOPvvq1l1tzoPt8="; }; postPatch = '' From 8edb7f27c3730d41f4c3cbcb47ef3e76c23d89b7 Mon Sep 17 00:00:00 2001 From: Martino Fontana Date: Mon, 8 Aug 2022 18:35:28 +0200 Subject: [PATCH 22/45] caffeine-ng: don't double wrap --- pkgs/tools/X11/caffeine-ng/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/X11/caffeine-ng/default.nix b/pkgs/tools/X11/caffeine-ng/default.nix index 619bd55b6f45..5aab492c75e8 100644 --- a/pkgs/tools/X11/caffeine-ng/default.nix +++ b/pkgs/tools/X11/caffeine-ng/default.nix @@ -45,7 +45,6 @@ in buildPythonApplication rec { buildInputs = [ libappindicator-gtk3 libnotify - gobject-introspection gtk3 ]; @@ -60,6 +59,8 @@ in buildPythonApplication rec { ]; doCheck = false; # There are no tests. + dontWrapGApps = true; + strictDeps = false; postInstall = '' cp -r share $out/ @@ -69,10 +70,13 @@ in buildPythonApplication rec { ln -s $out/${python3.sitePackages}/etc $out/etc glib-compile-schemas --strict $out/share/glib-2.0/schemas + ''; + preFixup = '' gappsWrapperArgs+=( --prefix PATH : ${lib.makeBinPath [ procps xautolock xscreensaver xfce.xfconf xset ]} ) + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") ''; meta = with lib; { From f38a47d64a95881b889a7bbd91f61321ff84a856 Mon Sep 17 00:00:00 2001 From: Francesco Zanini Date: Tue, 9 Aug 2022 22:14:13 +0200 Subject: [PATCH 23/45] =?UTF-8?q?opentrack:=202.1.3=20=E2=86=92=202022.3.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #185520 --- pkgs/applications/misc/opentrack/default.nix | 109 +++++++++++-------- 1 file changed, 65 insertions(+), 44 deletions(-) diff --git a/pkgs/applications/misc/opentrack/default.nix b/pkgs/applications/misc/opentrack/default.nix index 009633f32734..34c6b3f712b5 100644 --- a/pkgs/applications/misc/opentrack/default.nix +++ b/pkgs/applications/misc/opentrack/default.nix @@ -1,58 +1,79 @@ -{ mkDerivation, lib, callPackage, fetchzip, fetchFromGitHub, cmake, pkg-config -, ninja, copyDesktopItems, qtbase, qttools, opencv4, procps, eigen, libXdmcp -, libevdev, makeDesktopItem, fetchurl }: +{ + mkDerivation, + lib, + callPackage, + fetchzip, + fetchFromGitHub, + cmake, + pkg-config, + ninja, + copyDesktopItems, + qtbase, + qttools, + opencv4, + procps, + eigen, + libXdmcp, + libevdev, + makeDesktopItem, + fetchurl, +}: let + version = "2022.3.0"; -let - version = "2.3.13"; - - aruco = callPackage ./aruco.nix { }; + aruco = callPackage ./aruco.nix {}; # license.txt inside the zip file is MIT xplaneSdk = fetchzip { url = "https://developer.x-plane.com/wp-content/plugins/code-sample-generation/sample_templates/XPSDK303.zip"; sha256 = "11wqjsr996c5qhiv2djsd55gc373a9qcq30dvc6rhzm0fys42zba"; }; +in + mkDerivation { + pname = "opentrack"; + inherit version; -in mkDerivation { - pname = "opentrack"; - inherit version; + src = fetchFromGitHub { + owner = "opentrack"; + repo = "opentrack"; + rev = "opentrack-${version}"; + sha256 = "sha256-8gpNORTJclYUYp57Vw/0YO3XC9Idurt0a79fhqx0+mo="; + }; - src = fetchFromGitHub { - owner = "opentrack"; - repo = "opentrack"; - rev = "opentrack-${version}"; - sha256 = "1s986lmm5l1pwbwvd1pfiq84n32s1q1dav7a0cbga4d1vcf0v1ay"; - }; + nativeBuildInputs = [cmake pkg-config ninja copyDesktopItems]; + buildInputs = [qtbase qttools opencv4 procps eigen libXdmcp libevdev aruco]; - nativeBuildInputs = [ cmake pkg-config ninja copyDesktopItems ]; - buildInputs = [ qtbase qttools opencv4 procps eigen libXdmcp libevdev aruco ]; + NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -march=native -O3"; + dontWrapQtApps = true; - NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -march=native -O3"; + cmakeFlags = [ + "-DCMAKE_BUILD_TYPE=RELEASE" + "-DSDK_ARUCO_LIBPATH=${aruco}/lib/libaruco.a" + "-DSDK_XPLANE=${xplaneSdk}" + ]; - cmakeFlags = [ - "-DCMAKE_BUILD_TYPE=RELEASE" - "-DSDK_ARUCO_LIBPATH=${aruco}/lib/libaruco.a" - "-DSDK_XPLANE=${xplaneSdk}" - ]; + postInstall = '' + wrapQtApp $out/bin/opentrack + ''; - desktopItems = [ - (makeDesktopItem rec { - name = "opentrack"; - exec = "opentrack"; - icon = fetchurl { - url = "https://github.com/opentrack/opentrack/raw/opentrack-${version}/gui/images/opentrack.png"; - sha256 = "0d114zk78f7nnrk89mz4gqn7yk3k71riikdn29w6sx99h57f6kgn"; - }; - desktopName = name; - genericName = "Head tracking software"; - categories = [ "Utility" ]; - }) - ]; + desktopItems = [ + (makeDesktopItem rec { + name = "opentrack"; + exec = "opentrack"; + icon = fetchurl { + url = "https://github.com/opentrack/opentrack/raw/opentrack-${version}/gui/images/opentrack.png"; + sha256 = "0d114zk78f7nnrk89mz4gqn7yk3k71riikdn29w6sx99h57f6kgn"; + }; + desktopName = name; + genericName = "Head tracking software"; + categories = ["Utility"]; + }) + ]; - meta = with lib; { - homepage = "https://github.com/opentrack/opentrack"; - description = "Head tracking software for MS Windows, Linux, and Apple OSX"; - license = licenses.isc; - maintainers = with maintainers; [ zaninime ]; - }; -} + meta = with lib; { + homepage = "https://github.com/opentrack/opentrack"; + description = "Head tracking software for MS Windows, Linux, and Apple OSX"; + changelog = "https://github.com/opentrack/opentrack/releases/tag/${version}"; + license = licenses.isc; + maintainers = with maintainers; [zaninime]; + }; + } From 13760b87d2067dec6afa76859f3e69027bc2e139 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 3 Aug 2022 17:45:14 +0200 Subject: [PATCH 24/45] jitsi-videobridge: fix update script Otherwise e.g. jitsi-videobridge2_2.2-18-gade06bf8 is seen as newer than jitsi-videobridge2_2.2-9-g8cded16e. --- pkgs/servers/jitsi-videobridge/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/jitsi-videobridge/update.sh b/pkgs/servers/jitsi-videobridge/update.sh index bee9c4aa6de2..8646e6573128 100755 --- a/pkgs/servers/jitsi-videobridge/update.sh +++ b/pkgs/servers/jitsi-videobridge/update.sh @@ -6,7 +6,7 @@ set -eu -o pipefail version="$(curl https://download.jitsi.org/stable/ | \ pup 'a[href] text{}' | \ awk -F'[_-]' '/jitsi-videobridge2/ {printf $3"-"$4"-"$5"\n"}' | \ - sort -u | \ + sort -Vu | \ tail -n 1)" update-source-version jitsi-videobridge "$version" From 99ddbdb9fdc521206f7c0063242cf67db2729c6d Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 3 Aug 2022 17:50:23 +0200 Subject: [PATCH 25/45] jitsi-meet-prosody: 1.0.6260 -> 1.0.6447 --- pkgs/misc/jitsi-meet-prosody/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/misc/jitsi-meet-prosody/default.nix b/pkgs/misc/jitsi-meet-prosody/default.nix index 66f2cdac3cc1..ceafad682ec8 100644 --- a/pkgs/misc/jitsi-meet-prosody/default.nix +++ b/pkgs/misc/jitsi-meet-prosody/default.nix @@ -2,10 +2,10 @@ stdenv.mkDerivation rec { pname = "jitsi-meet-prosody"; - version = "1.0.6260"; + version = "1.0.6447"; src = fetchurl { url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb"; - sha256 = "ZUfyEYAU4YEYXBoM+tEZ6SAhqlNcsmxnKw8WEv0gy7M="; + sha256 = "wmZV0jynaaZPLazdYhaKl9l5zPjgn12omoMfwEMqxSA="; }; dontBuild = true; From 73afec56918c41e848ab91ec670d6bb60dec7c6f Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 3 Aug 2022 17:50:38 +0200 Subject: [PATCH 26/45] jicofo: 1.0-900 -> 1.0-911 --- pkgs/servers/jicofo/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/jicofo/default.nix b/pkgs/servers/jicofo/default.nix index 916e72c90a38..2b30b6f63a0e 100644 --- a/pkgs/servers/jicofo/default.nix +++ b/pkgs/servers/jicofo/default.nix @@ -2,10 +2,10 @@ let pname = "jicofo"; - version = "1.0-900"; + version = "1.0-911"; src = fetchurl { url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb"; - sha256 = "tAuWhu1DdasOuLIz9/Ox1n1XcFWm5qnTVr6FpdKpwbE="; + sha256 = "YB66NYmonbVgKpzv2pyQv7r0hYKDeBAngxrE4yWPp0o="; }; in stdenv.mkDerivation { From ae318632bc9e6c8c6faf7bc72a9df338bd31ba94 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 3 Aug 2022 17:50:52 +0200 Subject: [PATCH 27/45] jitsi-videobridge: 2.2-9-g8cded16e -> 2.2-22-g42bc1b99 --- pkgs/servers/jitsi-videobridge/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/jitsi-videobridge/default.nix b/pkgs/servers/jitsi-videobridge/default.nix index 39629639ad81..53db8b7303a8 100644 --- a/pkgs/servers/jitsi-videobridge/default.nix +++ b/pkgs/servers/jitsi-videobridge/default.nix @@ -2,10 +2,10 @@ let pname = "jitsi-videobridge2"; - version = "2.2-9-g8cded16e"; + version = "2.2-22-g42bc1b99"; src = fetchurl { url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb"; - sha256 = "L9h+qYV/W2wPzycfDGC4AXpTl7wlulyt2KryA+Tb/YU="; + sha256 = "ZiIeD5NXHMurcoyVnD8RCGuOKRiUDU1AMH57A0s4tAs="; }; in stdenv.mkDerivation { From a33c768df94209409a01fde588b5bfd31c850281 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 3 Aug 2022 17:51:12 +0200 Subject: [PATCH 28/45] jitsi-meet: 1.0.6260 -> 1.0.6447 --- pkgs/servers/web-apps/jitsi-meet/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/web-apps/jitsi-meet/default.nix b/pkgs/servers/web-apps/jitsi-meet/default.nix index 579ffb1a6777..962fb979cfc4 100644 --- a/pkgs/servers/web-apps/jitsi-meet/default.nix +++ b/pkgs/servers/web-apps/jitsi-meet/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "jitsi-meet"; - version = "1.0.6260"; + version = "1.0.6447"; src = fetchurl { url = "https://download.jitsi.org/jitsi-meet/src/jitsi-meet-${version}.tar.bz2"; - sha256 = "Y1ELKdFdbnq20yUt4XoXmstJm8uI8EBGIFOvFWf+5Uw="; + sha256 = "5JEPKifti7qKx0lGk4qPJJlCX4QxMhBGJqTFYktoie8="; }; dontBuild = true; From 9a260b5b9f9b8e89ff810ee7d1805ee08bec295b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 13 Aug 2022 19:47:58 +0000 Subject: [PATCH 29/45] pgloader: 3.6.6 -> 3.6.7 --- pkgs/development/tools/pgloader/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/pgloader/default.nix b/pkgs/development/tools/pgloader/default.nix index 94bdb69c1568..339009a50eb3 100644 --- a/pkgs/development/tools/pgloader/default.nix +++ b/pkgs/development/tools/pgloader/default.nix @@ -1,11 +1,11 @@ { lib, stdenv, fetchurl, makeWrapper, sbcl_2_2_6, sqlite, freetds, libzip, curl, git, cacert, openssl }: stdenv.mkDerivation rec { pname = "pgloader"; - version = "3.6.6"; + version = "3.6.7"; src = fetchurl { - url = "https://github.com/dimitri/pgloader/releases/download/v3.6.6/pgloader-bundle-3.6.6.tgz"; - sha256 = "sha256-GDdWXY/O2xMsaIhaQIk+w8WQt9qevO8cDlgLGfNTVE0="; + url = "https://github.com/dimitri/pgloader/releases/download/v3.6.7/pgloader-bundle-3.6.7.tgz"; + sha256 = "sha256-JfF2el0vJjDAyB2l3H4dLgEIgnmXlrCUVYKDpj2jM1Y="; }; nativeBuildInputs = [ git makeWrapper ]; From 0dc9748c6fecc7abc0f26bda888c3f0019bae0d8 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 14 Aug 2022 04:20:00 +0000 Subject: [PATCH 30/45] starship: 1.9.1 -> 1.10.0 https://github.com/starship/starship/releases/tag/v1.10.0 --- pkgs/tools/misc/starship/default.nix | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/misc/starship/default.nix b/pkgs/tools/misc/starship/default.nix index 4f3603d6e6f0..7875f01f1f07 100644 --- a/pkgs/tools/misc/starship/default.nix +++ b/pkgs/tools/misc/starship/default.nix @@ -5,6 +5,8 @@ , installShellFiles , libiconv , libgit2 +, cmake +, fetchpatch , pkg-config , nixosTests , Security @@ -14,16 +16,17 @@ rustPlatform.buildRustPackage rec { pname = "starship"; - version = "1.9.1"; + version = "1.10.0"; src = fetchFromGitHub { owner = "starship"; repo = pname; rev = "v${version}"; - sha256 = "sha256-IujaGyAGYlBb4efaRb13rsPSD2gWAg5UgG10iMp9iQE="; + sha256 = "sha256-mumlnY9KGKdS3x4U84J4I8m5uMJI7SZR52aT6DPi/MM="; }; - nativeBuildInputs = [ installShellFiles pkg-config ]; + nativeBuildInputs = [ installShellFiles cmake ] + ++ lib.optionals stdenv.isLinux [ pkg-config ]; buildInputs = [ libgit2 ] ++ lib.optionals stdenv.isDarwin [ libiconv Security Foundation Cocoa ]; @@ -32,13 +35,21 @@ rustPlatform.buildRustPackage rec { buildFeatures = if stdenv.isDarwin then [ "battery" ] else [ "default" ]; postInstall = '' - for shell in bash fish zsh; do - STARSHIP_CACHE=$TMPDIR $out/bin/starship completions $shell > starship.$shell - installShellCompletion starship.$shell - done + installShellCompletion --cmd starship \ + --bash <($out/bin/starship completions bash) \ + --fish <($out/bin/starship completions fish) \ + --zsh <($out/bin/starship completions zsh) ''; - cargoSha256 = "sha256-HrSMNNrldwb6LMMuxdQ84iY+/o5L2qwe+Vz3ekQt1YQ="; + cargoPatches = [ + # Bump chrono dependency to fix panic when no timezone + (fetchpatch { + url = "https://github.com/starship/starship/commit/e652e8643310c3b41ce19ad05b8168abc29bb683.patch"; + sha256 = "sha256-iGYLJuptPMc45E7o+GXjIx7y2PxuO1mGM7xSopDBve0="; + }) + ]; + + cargoSha256 = "sha256-w7UCExSkgEY52D98SSe2EkuiwtjM6t0/uTiafrtEBaU="; preCheck = '' HOME=$TMPDIR From a3fb7cfc3ab8dd032b74accb767a8b02867bdf51 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 14 Aug 2022 06:58:22 +0000 Subject: [PATCH 31/45] cinny-desktop: 2.1.1 -> 2.1.2 --- .../networking/instant-messengers/cinny-desktop/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/cinny-desktop/default.nix b/pkgs/applications/networking/instant-messengers/cinny-desktop/default.nix index c6d135a02892..0da3d38e6759 100644 --- a/pkgs/applications/networking/instant-messengers/cinny-desktop/default.nix +++ b/pkgs/applications/networking/instant-messengers/cinny-desktop/default.nix @@ -11,11 +11,11 @@ stdenv.mkDerivation rec { name = "cinny-desktop"; - version = "2.1.1"; + version = "2.1.2"; src = fetchurl { url = "https://github.com/cinnyapp/cinny-desktop/releases/download/v${version}/Cinny_desktop-x86_64.deb"; - sha256 = "sha256-4jd+N3a+u+c+XLwgr8BvvdkVLzo+xTBKFdjiQeu7NJU="; + sha256 = "sha256-JLu6xAnUaeRTM/yj2Qsc7pXTRXCnvxx8NL2fDXyAUg0="; }; nativeBuildInputs = [ From 3a57080baad0f09d732fc288ffc7fe0e7626b728 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Sat, 13 Aug 2022 16:52:38 +0300 Subject: [PATCH 32/45] upbound: init at 0.12.2 --- pkgs/development/tools/upbound/default.nix | 32 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/tools/upbound/default.nix diff --git a/pkgs/development/tools/upbound/default.nix b/pkgs/development/tools/upbound/default.nix new file mode 100644 index 000000000000..e1ff9841353d --- /dev/null +++ b/pkgs/development/tools/upbound/default.nix @@ -0,0 +1,32 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "upbound"; + version = "0.12.2"; + + src = fetchFromGitHub { + owner = pname; + repo = "up"; + rev = "v${version}"; + sha256 = "sha256-tbYUxqDtMIlHJ+bIE9PDDhPTSQKaZYObuRFSyRkh8+Y="; + }; + + vendorSha256 = "sha256-EeGNH/ka9Mt0vVtZfizXdTqf1f3H1aM5GITUyp+2FxM="; + + subPackages = [ "cmd/docker-credential-up" "cmd/up" ]; + + ldflags = [ + "-s" + "-w" + "-X github.com/upbound/up/internal/version.version=v${version}" + ]; + + meta = with lib; { + description = + "CLI for interacting with Upbound Cloud, Upbound Enterprise, and Universal Crossplane (UXP)"; + homepage = "https://upbound.io"; + license = licenses.asl20; + maintainers = with maintainers; [ lucperkins ]; + mainProgram = "up"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 445e64d696ac..b6a92b946d94 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11639,6 +11639,8 @@ with pkgs; up = callPackage ../tools/misc/up { }; + upbound = callPackage ../development/tools/upbound { }; + upterm = callPackage ../tools/misc/upterm { }; upx = callPackage ../tools/compression/upx { }; From e4b89c06c398e3b89730bad725c838dc3ca27816 Mon Sep 17 00:00:00 2001 From: midchildan Date: Sun, 14 Aug 2022 17:08:52 +0900 Subject: [PATCH 33/45] sourcetrail: remove --- .../editors/vim/plugins/aliases.nix | 1 + .../editors/vim/plugins/generated.nix | 12 - .../editors/vim/plugins/vim-plugin-names | 1 - .../development/tools/sourcetrail/default.nix | 275 ------------------ .../sourcetrail/disable-failing-tests.patch | 48 --- .../tools/sourcetrail/disable-updates.patch | 13 - pkgs/development/tools/sourcetrail/java.nix | 28 -- pkgs/development/tools/sourcetrail/jedi.nix | 36 --- pkgs/development/tools/sourcetrail/parso.nix | 29 -- pkgs/development/tools/sourcetrail/python.nix | 72 ----- pkgs/top-level/aliases.nix | 2 + pkgs/top-level/all-packages.nix | 10 - 12 files changed, 3 insertions(+), 524 deletions(-) delete mode 100644 pkgs/development/tools/sourcetrail/default.nix delete mode 100644 pkgs/development/tools/sourcetrail/disable-failing-tests.patch delete mode 100644 pkgs/development/tools/sourcetrail/disable-updates.patch delete mode 100644 pkgs/development/tools/sourcetrail/java.nix delete mode 100644 pkgs/development/tools/sourcetrail/jedi.nix delete mode 100644 pkgs/development/tools/sourcetrail/parso.nix delete mode 100644 pkgs/development/tools/sourcetrail/python.nix diff --git a/pkgs/applications/editors/vim/plugins/aliases.nix b/pkgs/applications/editors/vim/plugins/aliases.nix index 955590cafe31..d7db61d42839 100644 --- a/pkgs/applications/editors/vim/plugins/aliases.nix +++ b/pkgs/applications/editors/vim/plugins/aliases.nix @@ -130,6 +130,7 @@ mapAliases (with prev; { unite = unite-vim; UltiSnips = ultisnips; vim-addon-vim2nix = vim2nix; + vim-sourcetrail = throw "vim-sourcetrail has been removed: abandoned by upstream"; # Added 2022-08-14 vimproc = vimproc-vim; vimshell = vimshell-vim; vinegar = vim-vinegar; diff --git a/pkgs/applications/editors/vim/plugins/generated.nix b/pkgs/applications/editors/vim/plugins/generated.nix index 38f9e8c10513..a6f5c1ba8ee0 100644 --- a/pkgs/applications/editors/vim/plugins/generated.nix +++ b/pkgs/applications/editors/vim/plugins/generated.nix @@ -11540,18 +11540,6 @@ final: prev: meta.homepage = "https://github.com/christoomey/vim-sort-motion/"; }; - vim-sourcetrail = buildVimPluginFrom2Nix { - pname = "vim-sourcetrail"; - version = "2021-02-16"; - src = fetchFromGitHub { - owner = "CoatiSoftware"; - repo = "vim-sourcetrail"; - rev = "c9c621a7ab81c52a661457ccf33a64fd7c56fd9d"; - sha256 = "192f69yz1hh2k0b2kcvfvv1jirjcvnbxvjkagmlkkqcg8w32nmlg"; - }; - meta.homepage = "https://github.com/CoatiSoftware/vim-sourcetrail/"; - }; - vim-speeddating = buildVimPluginFrom2Nix { pname = "vim-speeddating"; version = "2021-04-29"; diff --git a/pkgs/applications/editors/vim/plugins/vim-plugin-names b/pkgs/applications/editors/vim/plugins/vim-plugin-names index cb7a8c114daa..2dd0297e293d 100644 --- a/pkgs/applications/editors/vim/plugins/vim-plugin-names +++ b/pkgs/applications/editors/vim/plugins/vim-plugin-names @@ -969,7 +969,6 @@ https://github.com/honza/vim-snippets/,, https://github.com/jhradilek/vim-snippets/,,vim-docbk-snippets https://github.com/tomlion/vim-solidity/,, https://github.com/christoomey/vim-sort-motion/,, -https://github.com/CoatiSoftware/vim-sourcetrail/,, https://github.com/tpope/vim-speeddating/,, https://github.com/kbenzie/vim-spirv/,, https://github.com/mhinz/vim-startify/,, diff --git a/pkgs/development/tools/sourcetrail/default.nix b/pkgs/development/tools/sourcetrail/default.nix deleted file mode 100644 index 6ba4eecac480..000000000000 --- a/pkgs/development/tools/sourcetrail/default.nix +++ /dev/null @@ -1,275 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, callPackage, writeScript, fetchpatch, cmake -, wrapQtAppsHook, qt5, boost, llvmPackages, gcc, jdk, maven, pythonPackages -, coreutils, which, desktop-file-utils, shared-mime-info, imagemagick, libicns -}: - -let - # TODO: remove when version incompatibility issue with python3Packages.jedi is - # resolved - parso = pythonPackages.callPackage ./parso.nix { }; - jedi = pythonPackages.callPackage ./jedi.nix { inherit parso; }; - - pythonIndexer = - pythonPackages.callPackage ./python.nix { inherit jedi parso; }; - javaIndexer = callPackage ./java.nix { }; - - appPrefixDir = if stdenv.isDarwin then - "$out/Applications/Sourcetrail.app/Contents" - else - "$out/opt/sourcetrail"; - appBinDir = - if stdenv.isDarwin then "${appPrefixDir}/MacOS" else "${appPrefixDir}/bin"; - appResourceDir = if stdenv.isDarwin then - "${appPrefixDir}/Resources" - else - "${appPrefixDir}/share"; - - # Upstream script: - # https://github.com/CoatiSoftware/Sourcetrail/blob/master/script/update_java_indexer.sh - installJavaIndexer = writeScript "update_java_indexer.sh" '' - #!${stdenv.shell} - - cd "$(dirname "$0")/.." - dst="${appResourceDir}/data/java/lib" - - mkdir -p "$dst" - cp "${javaIndexer}/target/java-indexer-1.0.jar" "$dst/java-indexer.jar" - cp -r java_indexer/lib/*.jar "$dst" - ''; - - # Upstream script: - # https://github.com/CoatiSoftware/Sourcetrail/blob/master/script/download_python_indexer.sh - installPythonIndexer = writeScript "download_python_indexer.sh" '' - #!${stdenv.shell} - - mkdir -p ${appResourceDir}/data - ln -s "${pythonIndexer}/bin" "${appResourceDir}/data/python" - ''; -in stdenv.mkDerivation rec { - pname = "sourcetrail"; - # NOTE: skip 2020.4.35 https://github.com/CoatiSoftware/Sourcetrail/pull/1136 - version = "2020.2.43"; - - src = fetchFromGitHub { - owner = "CoatiSoftware"; - repo = "Sourcetrail"; - rev = version; - sha256 = "0jp9y86xzkcxikc1cn4f6gqgg6zdssck08677ldagw25p1zadvzw"; - }; - - patches = let - url = commit: - "https://github.com/CoatiSoftware/Sourcetrail/commit/${commit}.patch"; - in [ - ./disable-updates.patch - ./disable-failing-tests.patch # FIXME: 5 test cases failing due to sandbox - # TODO: remove on next release - (fetchpatch { - name = "fix-filecopy.patch"; - url = url "d079d1787c9e5cadcf41a003666dc0746cc1cda0"; - sha256 = "0mixy2a4s16kv2q89k7y4dv21wnv2zd86i4gdwn3xz977y8hf92b"; - }) - (fetchpatch { - name = "fix-broken-test.patch"; - url = url "85329174bac8a301733100dc4540258f977e2c5a"; - sha256 = "17l4417sbmkrgr6v3fbazlmkzl9774zrpjv2n9zwfrz52y30f7b9"; - }) - ]; - - nativeBuildInputs = [ - cmake - jdk - wrapQtAppsHook - desktop-file-utils - imagemagick - javaIndexer # the resulting jar file is copied by our install script - ] ++ lib.optional (stdenv.isDarwin) libicns - ++ lib.optionals doCheck testBinPath; - buildInputs = [ boost pythonIndexer shared-mime-info ] - ++ (with qt5; [ qtbase qtsvg ]) ++ (with llvmPackages; [ libclang llvm ]); - binPath = [ gcc jdk.jre maven which ]; - testBinPath = binPath ++ [ coreutils ]; - - cmakeFlags = [ - "-DBoost_USE_STATIC_LIBS=OFF" - "-DBUILD_CXX_LANGUAGE_PACKAGE=ON" - "-DBUILD_JAVA_LANGUAGE_PACKAGE=ON" - "-DBUILD_PYTHON_LANGUAGE_PACKAGE=ON" - ] ++ lib.optional stdenv.isLinux - "-DCMAKE_PREFIX_PATH=${llvmPackages.clang-unwrapped}" - ++ lib.optional stdenv.isDarwin - "-DClang_DIR=${llvmPackages.clang-unwrapped}"; - - postPatch = let - major = lib.versions.major version; - minor = lib.versions.minor version; - patch = lib.versions.patch version; - in '' - # Upstream script obtains it's version from git: - # https://github.com/CoatiSoftware/Sourcetrail/blob/master/cmake/version.cmake - cat > cmake/version.cmake < mavenPaths = utility::getMavenExecutablePathDetector()->getPaths(); - - REQUIRE(!mavenPaths.empty()); -diff --git a/src/test/UtilityMavenTestSuite.cpp b/src/test/UtilityMavenTestSuite.cpp -index f48fe2b6..363ef64a 100644 ---- a/src/test/UtilityMavenTestSuite.cpp -+++ b/src/test/UtilityMavenTestSuite.cpp -@@ -17,6 +17,7 @@ TEST_CASE("maven path detector is working") - - TEST_CASE("maven wrapper detects source directories of simple projects") - { -+ return; - std::shared_ptr mavenPathDetector = utility::getMavenExecutablePathDetector(); - REQUIRE(!mavenPathDetector->getPaths().empty()); - -@@ -41,6 +42,7 @@ TEST_CASE("maven wrapper detects source directories of simple projects") - - TEST_CASE("maven wrapper detects source and test directories of simple projects") - { -+ return; - std::shared_ptr mavenPathDetector = utility::getMavenExecutablePathDetector(); - REQUIRE(!mavenPathDetector->getPaths().empty()); - -@@ -65,6 +67,7 @@ TEST_CASE("maven wrapper detects source and test directories of simple projects" - - TEST_CASE("maven wrapper detects source directories of nested modules") - { -+ return; - std::shared_ptr mavenPathDetector = utility::getMavenExecutablePathDetector(); - REQUIRE(!mavenPathDetector->getPaths().empty()); - -@@ -101,6 +104,7 @@ TEST_CASE("maven wrapper detects source directories of nested modules") - - TEST_CASE("maven wrapper detects source and test directories of nested modules") - { -+ return; - std::shared_ptr mavenPathDetector = utility::getMavenExecutablePathDetector(); - REQUIRE(!mavenPathDetector->getPaths().empty()); - diff --git a/pkgs/development/tools/sourcetrail/disable-updates.patch b/pkgs/development/tools/sourcetrail/disable-updates.patch deleted file mode 100644 index 112af857c59e..000000000000 --- a/pkgs/development/tools/sourcetrail/disable-updates.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/lib/settings/ApplicationSettings.cpp b/src/lib/settings/ApplicationSettings.cpp -index 1be13ccd..db6098e1 100644 ---- a/src/lib/settings/ApplicationSettings.cpp -+++ b/src/lib/settings/ApplicationSettings.cpp -@@ -593,7 +593,7 @@ void ApplicationSettings::setUserToken(std::string token) - - bool ApplicationSettings::getAutomaticUpdateCheck() const - { -- return getValue("user/update_check/automatic", true); -+ return false; - } - - void ApplicationSettings::setAutomaticUpdateCheck(bool automaticUpdates) diff --git a/pkgs/development/tools/sourcetrail/java.nix b/pkgs/development/tools/sourcetrail/java.nix deleted file mode 100644 index 7e5bd75f84aa..000000000000 --- a/pkgs/development/tools/sourcetrail/java.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ lib, pkgs, javaPackages }: - -let - javaIndexer = javaPackages.mavenbuild { - name = "sourcetrail-java-indexer-${pkgs.sourcetrail.version}"; - src = pkgs.sourcetrail.src; - m2Path = "com/sourcetrail/java-indexer"; - - # This doesn't include all required dependencies. We still rely on binary - # copies of maven packages included in the source repo for building. - mavenDeps = with javaPackages; [ - mavenCompiler_3_2 - plexusCompilerApi_2_4 - plexusCompilerJavac_2_4 - plexusCompilerManager_2_4 - ]; - - meta = { - description = "Java indexer for Sourcetrail"; - sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; - }; - }; -in -javaIndexer.overrideAttrs (drv: { - postUnpack = '' - export sourceRoot=''${sourceRoot}/java_indexer - ''; -}) diff --git a/pkgs/development/tools/sourcetrail/jedi.nix b/pkgs/development/tools/sourcetrail/jedi.nix deleted file mode 100644 index 93650c9027a4..000000000000 --- a/pkgs/development/tools/sourcetrail/jedi.nix +++ /dev/null @@ -1,36 +0,0 @@ -# Taken from a past commit of nixpkgs - -{ lib, buildPythonPackage, fetchPypi, pytest, glibcLocales, tox, pytest-cov, parso }: - -buildPythonPackage rec { - pname = "jedi"; - - # TODO: Remove this package when version incompatibility issue with - # python3Packages.jedi is resolved. - # - # Upstream requirements: - # https://github.com/CoatiSoftware/SourcetrailPythonIndexer#requirements - version = "0.17.2"; - - src = fetchPypi { - inherit pname version; - sha256 = "86ed7d9b750603e4ba582ea8edc678657fb4007894a12bcf6f4bb97892f31d20"; - }; - - checkInputs = [ pytest glibcLocales tox pytest-cov ]; - - propagatedBuildInputs = [ parso ]; - - checkPhase = '' - LC_ALL="en_US.UTF-8" py.test test - ''; - - # tox required for tests: https://github.com/davidhalter/jedi/issues/808 - doCheck = false; - - meta = with lib; { - homepage = "https://github.com/davidhalter/jedi"; - description = "An autocompletion tool for Python that can be used for text editors"; - license = licenses.lgpl3Plus; - }; -} diff --git a/pkgs/development/tools/sourcetrail/parso.nix b/pkgs/development/tools/sourcetrail/parso.nix deleted file mode 100644 index bd5d5b86ac51..000000000000 --- a/pkgs/development/tools/sourcetrail/parso.nix +++ /dev/null @@ -1,29 +0,0 @@ -# Taken from a past commit of nixpkgs - -{ lib -, buildPythonPackage -, fetchPypi -, pytest -}: - -buildPythonPackage rec { - pname = "parso"; - - # TODO: Remove along with ./jedi.nix when version compatiblity issue is - # resolved. - version = "0.7.0"; - - src = fetchPypi { - inherit pname version; - sha256 = "908e9fae2144a076d72ae4e25539143d40b8e3eafbaeae03c1bfe226f4cdf12c"; - }; - - checkInputs = [ pytest ]; - - meta = { - description = "A Python Parser"; - homepage = "https://github.com/davidhalter/parso"; - license = lib.licenses.mit; - }; - -} diff --git a/pkgs/development/tools/sourcetrail/python.nix b/pkgs/development/tools/sourcetrail/python.nix deleted file mode 100644 index f9ea96463207..000000000000 --- a/pkgs/development/tools/sourcetrail/python.nix +++ /dev/null @@ -1,72 +0,0 @@ -{ stdenv, lib, fetchFromGitHub, wrapPython, python, jedi, parso, cmake, swig }: - -stdenv.mkDerivation rec { - pname = "SourcetrailPythonIndexer"; - version = "v1_db25_p5"; - - src = fetchFromGitHub { - owner = "CoatiSoftware"; - repo = pname; - rev = version; - sha256 = "01jaigxigq6dvfwq018gn9qw7i6p4jm0y71lqzschfv9vwf6ga45"; - fetchSubmodules = true; - }; - - nativeBuildInputs = [ wrapPython cmake swig ]; - buildInputs = [ python ]; - pythonPath = [ jedi parso ]; - - dontUseCmakeConfigure = true; - cmakeFlags = [ - "-DBUILD_BINDINGS_PYTHON=1" - "-DPYTHON_VERSION=${lib.versions.majorMinor python.version}" - ]; - - buildPhase = '' - pushd SourcetrailDB - cmake -Bbuild $cmakeFlags . - pushd build - make -j $NIX_BUILD_CORES - popd - popd - '' + lib.optionalString stdenv.isDarwin '' - pushd SourcetrailDB/build/bindings_python - cp _sourcetraildb.dylib _sourcetraildb.so - popd - ''; - - checkPhase = '' - buildPythonPath "$pythonPath" - - # FIXME: some tests are failing - # PYTHONPATH="$program_PYTHONPATH:SourcetrailDB/build/bindings_python" \ - # ${python}/bin/python test.py - PYTHONPATH="$program_PYTHONPATH:SourcetrailDB/build/bindings_python" \ - ${python}/bin/python test_shallow.py - ''; - - installPhase = '' - shopt -s extglob - mkdir -p $out/{bin,libexec} - - cp !(run).py $out/libexec # copy *.py excluding run.py (needs extglob) - cat <(echo '#!/usr/bin/env python') run.py > $out/libexec/run.py - chmod +x $out/libexec/run.py - ln -s $out/libexec/run.py $out/bin/SourcetrailPythonIndexer - - pushd SourcetrailDB/build/bindings_python - cp sourcetraildb.py $out/libexec - cp _sourcetraildb.so $out/libexec/_sourcetraildb.so - popd - - wrapPythonProgramsIn "$out/libexec" "$pythonPath" - ''; - - doCheck = true; - - meta = with lib; { - description = "Python indexer for Sourcetrail"; - homepage = "https://github.com/CoatiSoftware/SourcetrailPythonIndexer"; - license = licenses.gpl3; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 3ea7c71457a6..d69c6d8dcfd6 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1328,6 +1328,8 @@ mapAliases ({ source-han-serif-simplified-chinese = source-han-serif; source-han-serif-traditional-chinese = source-han-serif; + sourcetrail = throw "sourcetrail has been removed: abandoned by upstream"; # Added 2022-08-14 + spaceOrbit = throw "'spaceOrbit' has been renamed to/replaced by 'space-orbit'"; # Converted to throw 2022-02-22 spectral = neochat; # Added 2020-12-27 speech_tools = throw "'speech_tools' has been renamed to/replaced by 'speech-tools'"; # Converted to throw 2022-02-22 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9ff8d0d543c9..cc7d259174c4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30612,16 +30612,6 @@ with pkgs; spotify = callPackage ../applications/audio/spotify/wrapper.nix { }; - sourcetrail = let - llvmPackages = llvmPackages_10; - in libsForQt5.callPackage ../development/tools/sourcetrail { - stdenv = if stdenv.cc.isClang then llvmPackages.stdenv else stdenv; - jdk = jdk8; - pythonPackages = python3Packages; - inherit llvmPackages; - boost = boost16x; # Filesystem tests in the checkPhase fail with Boost 1.77 - }; - spotifywm = callPackage ../applications/audio/spotifywm { }; psst = callPackage ../applications/audio/psst { }; From 374734c52b6086478239143ebbdaf0d422ded711 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 14 Aug 2022 12:25:50 +0100 Subject: [PATCH 34/45] mutt: 2.2.6 -> 2.2.7 --- pkgs/applications/networking/mailreaders/mutt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/mailreaders/mutt/default.nix b/pkgs/applications/networking/mailreaders/mutt/default.nix index 4d7f62bde9af..cc3bba9528e9 100644 --- a/pkgs/applications/networking/mailreaders/mutt/default.nix +++ b/pkgs/applications/networking/mailreaders/mutt/default.nix @@ -19,12 +19,12 @@ stdenv.mkDerivation rec { pname = "mutt"; - version = "2.2.6"; + version = "2.2.7"; outputs = [ "out" "doc" "info" ]; src = fetchurl { url = "http://ftp.mutt.org/pub/mutt/${pname}-${version}.tar.gz"; - sha256 = "/6LZNRfPxgb+Adr/xfEuQgYqHBNNO5r3hITrxUMIiNM="; + sha256 = "6xOFj1i7Np9He/ZS2Q6baq3dDWEKy+o0VQSeXvrTbfE="; }; patches = lib.optional smimeSupport (fetchpatch { From 96958813c322ed90e67ffb0586b653d86bcc3f6f Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 14 Aug 2022 12:57:48 +0100 Subject: [PATCH 35/45] nano: 6.3 -> 6.4 Changes: https://lists.gnu.org/archive/html/info-gnu/2022-08/msg00001.html --- pkgs/applications/editors/nano/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix index 20b18814cb75..5d4d84e6fe9b 100644 --- a/pkgs/applications/editors/nano/default.nix +++ b/pkgs/applications/editors/nano/default.nix @@ -16,11 +16,11 @@ let in stdenv.mkDerivation rec { pname = "nano"; - version = "6.3"; + version = "6.4"; src = fetchurl { url = "mirror://gnu/nano/${pname}-${version}.tar.xz"; - sha256 = "61MtpJhWcnMLUA9oXbqriFpGbQj7v3QVgyuVgF5vhoc="; + sha256 = "QZmujKeKd5beVt4aQbgh3EeRLAMH6YFrVswxffNGYcA="; }; nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext; From 8180b124bf8690ff3455c7def3832cd68727fb3e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 14 Aug 2022 14:14:05 +0000 Subject: [PATCH 36/45] oh-my-zsh: 2022-07-26 -> 2022-08-10 --- pkgs/shells/zsh/oh-my-zsh/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/shells/zsh/oh-my-zsh/default.nix b/pkgs/shells/zsh/oh-my-zsh/default.nix index 36f2b04eabce..9ce36876e57b 100644 --- a/pkgs/shells/zsh/oh-my-zsh/default.nix +++ b/pkgs/shells/zsh/oh-my-zsh/default.nix @@ -5,15 +5,15 @@ , git, nix, nixfmt, jq, coreutils, gnused, curl, cacert, bash }: stdenv.mkDerivation rec { - version = "2022-07-26"; + version = "2022-08-10"; pname = "oh-my-zsh"; - rev = "bb6c14cdfd0b7d543d0d9c2e5f0c0a9409a82084"; + rev = "835a0a5d17765243cabee782acb5905a9aab33c3"; src = fetchFromGitHub { inherit rev; owner = "ohmyzsh"; repo = "ohmyzsh"; - sha256 = "jlQKnF5vZp7ARVXtV/WEnTIV0m5FwqTj83igDyMyTTQ="; + sha256 = "dPFoa5dgU5+A3wRJQShD42AkZ0n3mm3+6j4tzc7mucQ="; }; strictDeps = true; From 2a8ce2f681df5f145be67d97852b70b9f6ad4816 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 14 Aug 2022 16:36:47 +0000 Subject: [PATCH 37/45] oq: 1.3.2 -> 1.3.3 --- pkgs/development/tools/oq/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/oq/default.nix b/pkgs/development/tools/oq/default.nix index d8fcbdf424b3..fbbfd861a52e 100644 --- a/pkgs/development/tools/oq/default.nix +++ b/pkgs/development/tools/oq/default.nix @@ -8,13 +8,13 @@ crystal.buildCrystalPackage rec { pname = "oq"; - version = "1.3.2"; + version = "1.3.3"; src = fetchFromGitHub { owner = "Blacksmoke16"; repo = pname; rev = "v${version}"; - sha256 = "sha256-iGKyP3NrAnR3ISOBq+YR/vwarlnIY4u4ZwdqSBnBC7U="; + sha256 = "sha256-1IdOyfoGAsZ5bOEJoj9Ol3sxsiq18hfniqW1ATBEGc8="; }; nativeBuildInputs = [ makeWrapper ]; From 35980a2c246c12f084dcf724d997087498725424 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 14 Aug 2022 21:03:27 +0000 Subject: [PATCH 38/45] ticker: 4.5.2 -> 4.5.3 --- pkgs/applications/misc/ticker/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/ticker/default.nix b/pkgs/applications/misc/ticker/default.nix index 2ffa499f74a3..a5e46b6e34c8 100644 --- a/pkgs/applications/misc/ticker/default.nix +++ b/pkgs/applications/misc/ticker/default.nix @@ -5,13 +5,13 @@ buildGoModule rec { pname = "ticker"; - version = "4.5.2"; + version = "4.5.3"; src = fetchFromGitHub { owner = "achannarasappa"; repo = pname; rev = "v${version}"; - sha256 = "sha256-9Gy7G/uRFUBfXlUa6nIle1WIS5Yf9DJMM57hE0oEyLI="; + sha256 = "sha256-qrPBQuHwfwFI4PQXDikfo8hm64Sdg4czeeKWyD5HqNk="; }; vendorSha256 = "sha256-6bosJ2AlbLZ551tCNPmvNyyReFJG+iS3SYUFti2/CAw="; From 25b5181c2e28bb385bcfa29ece130397f03f63ae Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 14 Aug 2022 23:10:27 +0000 Subject: [PATCH 39/45] zola: 0.16.0 -> 0.16.1 --- pkgs/applications/misc/zola/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/zola/default.nix b/pkgs/applications/misc/zola/default.nix index 833b2e4c152c..9e28dbaa0b2d 100644 --- a/pkgs/applications/misc/zola/default.nix +++ b/pkgs/applications/misc/zola/default.nix @@ -15,16 +15,16 @@ rustPlatform.buildRustPackage rec { pname = "zola"; - version = "0.16.0"; + version = "0.16.1"; src = fetchFromGitHub { owner = "getzola"; repo = "zola"; rev = "v${version}"; - sha256 = "sha256-FrCpHavlHf4/g96G7cY0Rymxqi73XUCIAYp4cm//2Ic="; + sha256 = "sha256-VkR7fM2WeI1itGq5kl54CVLnNW+NxIodkVKeGv8HoaU="; }; - cargoSha256 = "sha256-c6SbQasgpOyqVninAo104oYo1CXpiECZvsB1gxrD7wM="; + cargoSha256 = "sha256-74QVFjDlT3ewx4sCK4/r5In0muqboBFEpMFBv2L5YaM="; nativeBuildInputs = [ cmake From 680f04a9930fa0b9572abda5a9429cb2b1c77655 Mon Sep 17 00:00:00 2001 From: P Date: Sun, 14 Aug 2022 18:48:03 -0600 Subject: [PATCH 40/45] dhallPackages.dhall-cloudformation: init at 0.9.64 (#183813) --- .../dhall-modules/dhall-cloudformation.nix | 14 ++++++++++++++ pkgs/top-level/dhall-packages.nix | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/development/dhall-modules/dhall-cloudformation.nix diff --git a/pkgs/development/dhall-modules/dhall-cloudformation.nix b/pkgs/development/dhall-modules/dhall-cloudformation.nix new file mode 100644 index 000000000000..e99fbc3b3177 --- /dev/null +++ b/pkgs/development/dhall-modules/dhall-cloudformation.nix @@ -0,0 +1,14 @@ +{ buildDhallGitHubPackage, Prelude }: + +let + version = "0.9.64"; + +in buildDhallGitHubPackage { + name = "cloudformation"; + owner = "jcouyang"; + repo = "dhall-aws-cloudformation"; + rev = version; + sha256 = "sha256-EDbMKHORYQOKoSrbErkUnsadDiYfK1ULbFhz3D5AcXc="; + file = "package.dhall"; + dependencies = [ Prelude ]; +} diff --git a/pkgs/top-level/dhall-packages.nix b/pkgs/top-level/dhall-packages.nix index 646f2b7e9d39..f43be56c59be 100644 --- a/pkgs/top-level/dhall-packages.nix +++ b/pkgs/top-level/dhall-packages.nix @@ -35,6 +35,8 @@ let lib = import ../development/dhall-modules/lib.nix { inherit lib; }; + dhall-cloudformation = callPackage ../development/dhall-modules/dhall-cloudformation.nix { }; + dhall-grafana = callPackage ../development/dhall-modules/dhall-grafana.nix { }; From cc45fa8d20190b7c591252bccbc9f4321b20eaf1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 15 Aug 2022 03:45:44 +0200 Subject: [PATCH 41/45] python3Packages.django-statici18n: 2.2.0 -> 2.3.1 --- .../django-statici18n/default.nix | 38 ++++++++++++++----- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/django-statici18n/default.nix b/pkgs/development/python-modules/django-statici18n/default.nix index db7d36c89933..8fcfa070d2d4 100644 --- a/pkgs/development/python-modules/django-statici18n/default.nix +++ b/pkgs/development/python-modules/django-statici18n/default.nix @@ -1,19 +1,39 @@ -{ lib, buildPythonPackage, fetchPypi, django, django-appconf }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, django +, django-appconf +, pytest-django +, pytestCheckHook +}: buildPythonPackage rec { pname = "django-statici18n"; - version = "2.2.0"; + version = "2.3.1"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - sha256 = "dbcdac190d93e0b4eabcab8875c8eb68795eceb442f926843ec5cbe1432fe628"; + src = fetchFromGitHub { + owner = "zyegfryed"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-2fFJJNdF0jspS7djDL8sToPTetzNR6pfNp5ohCNa30I="; }; - propagatedBuildInputs = [ django django-appconf ]; + propagatedBuildInputs = [ + django + django-appconf + ]; - # pypi package does not contains test harness - # source tarball requires setting up a config - doCheck = false; + pythonImportsCheck = [ + "statici18n" + ]; + + DJANGO_SETTINGS_MODULE = "tests.test_project.project.settings"; + + checkInputs = [ + pytest-django + pytestCheckHook + ]; meta = with lib; { description = "Helper for generating Javascript catalog to static files"; From 2a551f952089abe8493965db0579f953b25d12eb Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Tue, 2 Aug 2022 09:41:17 +0800 Subject: [PATCH 42/45] deluge: 2.0.5 -> 2.1.1 --- .../networking/p2p/deluge/default.nix | 138 +++++++++++------- pkgs/top-level/all-packages.nix | 11 +- 2 files changed, 92 insertions(+), 57 deletions(-) diff --git a/pkgs/applications/networking/p2p/deluge/default.nix b/pkgs/applications/networking/p2p/deluge/default.nix index c5966ae13f4d..b5bb12da0ec5 100644 --- a/pkgs/applications/networking/p2p/deluge/default.nix +++ b/pkgs/applications/networking/p2p/deluge/default.nix @@ -1,9 +1,8 @@ { lib , fetchurl -, fetchpatch , intltool , libtorrent-rasterbar -, pythonPackages +, python3Packages , gtk3 , glib , gobject-introspection @@ -11,62 +10,95 @@ , wrapGAppsHook }: -pythonPackages.buildPythonPackage rec { - pname = "deluge"; - version = "2.0.5"; +let + inherit (lib) optionals; - src = fetchurl { - url = "http://download.deluge-torrent.org/source/2.0/${pname}-${version}.tar.xz"; - sha256 = "sha256-xL0Eq/0hG2Uhi+A/PEbSb0QCSITeEOAYWfuFb91vJdg="; - }; + pypkgs = python3Packages; - propagatedBuildInputs = with pythonPackages; [ - twisted - Mako - chardet - pyxdg - pyopenssl - service-identity - libtorrent-rasterbar.dev - libtorrent-rasterbar.python - setuptools - setproctitle - pillow - rencode - six - zope_interface - dbus-python - pygobject3 - pycairo - gtk3 - gobject-introspection - librsvg - ]; + generic = { pname, withGUI }: + pypkgs.buildPythonPackage rec { + inherit pname; + version = "2.1.1"; - nativeBuildInputs = [ gobject-introspection intltool wrapGAppsHook glib ]; + src = fetchurl { + url = "http://download.deluge-torrent.org/source/${lib.versions.majorMinor version}/deluge-${version}.tar.xz"; + hash = "sha256-do3TGYAuQkN6s3lOvnW0lxQuCO1bD7JQO61izvRC3/c="; + }; - checkInputs = with pythonPackages; [ - pytestCheckHook - pytest-twisted - pytest-cov - mock - mccabe - pylint - ]; + propagatedBuildInputs = with pypkgs; [ + twisted + Mako + chardet + pyxdg + pyopenssl + service-identity + libtorrent-rasterbar.dev + libtorrent-rasterbar.python + setuptools + setproctitle + pillow + rencode + six + zope_interface + dbus-python + pycairo + librsvg + ] ++ optionals withGUI [ + gtk3 + gobject-introspection + pygobject3 + ]; - doCheck = false; # until pytest-twisted is packaged + nativeBuildInputs = [ + intltool + glib + ] ++ optionals withGUI [ + gobject-introspection + wrapGAppsHook + ]; - postInstall = '' - mkdir -p $out/share - cp -R deluge/ui/data/{icons,pixmaps} $out/share/ - install -Dm444 -t $out/share/applications deluge/ui/data/share/applications/deluge.desktop - ''; + checkInputs = with pypkgs; [ + pytestCheckHook + pytest-twisted + pytest-cov + mock + mccabe + pylint + ]; - meta = with lib; { - homepage = "https://deluge-torrent.org"; - description = "Torrent client"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ domenkozar ebzzry ]; - platforms = platforms.all; - }; + doCheck = false; # tests are not working at all + + postInstall = '' + install -Dm444 -t $out/lib/systemd/system packaging/systemd/*.service + '' + (if withGUI + then '' + mkdir -p $out/share + cp -R deluge/ui/data/{icons,pixmaps} $out/share/ + install -Dm444 -t $out/share/applications deluge/ui/data/share/applications/deluge.desktop + '' else '' + rm -r $out/bin/deluge-gtk + rm -r $out/lib/${python3Packages.python.libPrefix}/site-packages/deluge/ui/gtk3 + rm -r $out/share/{icons,man/man1/deluge-gtk*,pixmaps} + ''); + + postFixup = '' + for f in $out/lib/systemd/system/*; do + substituteInPlace $f --replace /usr/bin $out/bin + done + ''; + + meta = with lib; { + description = "Torrent client"; + homepage = "https://deluge-torrent.org"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ domenkozar ebzzry ]; + platforms = platforms.all; + }; + }; + +in +rec { + deluge-gtk = generic { pname = "deluge-gtk"; withGUI = true; }; + deluged = generic { pname = "deluged"; withGUI = false; }; + deluge = deluge-gtk; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 10af38ffe9cf..1677132b217d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5456,11 +5456,14 @@ with pkgs; ddrutility = callPackage ../tools/system/ddrutility { }; - deluge-2_x = callPackage ../applications/networking/p2p/deluge { - pythonPackages = python3Packages; + inherit (callPackages ../applications/networking/p2p/deluge { libtorrent-rasterbar = libtorrent-rasterbar-1_2_x.override { python = python3; }; - }; - deluge = deluge-2_x; + }) + deluge-gtk + deluged + deluge; + + deluge-2_x = deluge; desktop-file-utils = callPackage ../tools/misc/desktop-file-utils { }; From 58e5bd56d67b46208a6eef2539bb000b7a146580 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sun, 14 Aug 2022 21:20:55 -0700 Subject: [PATCH 43/45] default-crate-overrides.nix: add libevdev for evdev-rs --- pkgs/build-support/rust/default-crate-overrides.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/build-support/rust/default-crate-overrides.nix b/pkgs/build-support/rust/default-crate-overrides.nix index 9f88e8a067bc..f6383af44e82 100644 --- a/pkgs/build-support/rust/default-crate-overrides.nix +++ b/pkgs/build-support/rust/default-crate-overrides.nix @@ -27,6 +27,7 @@ , freetype , rdkafka , udev +, libevdev , ... }: @@ -65,6 +66,12 @@ in buildInputs = [ dbus ]; }; + evdev-sys = attrs: { + LIBGIT2_SYS_USE_PKG_CONFIG = true; + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ libevdev ]; + }; + expat-sys = attrs: { nativeBuildInputs = [ cmake ]; }; From 8a36e1472b53f7adfaa9267a13967094636401d2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 14 Aug 2022 00:35:10 +0000 Subject: [PATCH 44/45] swaynotificationcenter: 0.6.1 -> 0.6.3 --- pkgs/applications/misc/swaynotificationcenter/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/swaynotificationcenter/default.nix b/pkgs/applications/misc/swaynotificationcenter/default.nix index 5139fec338c3..42e6dba3da45 100644 --- a/pkgs/applications/misc/swaynotificationcenter/default.nix +++ b/pkgs/applications/misc/swaynotificationcenter/default.nix @@ -21,13 +21,13 @@ stdenv.mkDerivation rec { pname = "SwayNotificationCenter"; - version = "0.6.1"; + version = "0.6.3"; src = fetchFromGitHub { owner = "ErikReider"; repo = "SwayNotificationCenter"; rev = "v${version}"; - hash = "sha256-+vMlhBCLxvqfPRO2U9015srhY/2sd1DoV27kzNDjsqs="; + hash = "sha256-79Kda2Mi2r38f0J12bRm9wbHiZCy9+ojPDxwlFG8EYw="; }; nativeBuildInputs = [ gobject-introspection meson ninja pkg-config scdoc vala wrapGAppsHook ]; From 6737d2cfc8987d3b01c2fde5189d3313ef2248e9 Mon Sep 17 00:00:00 2001 From: Ferdinand Bachmann Date: Tue, 9 Aug 2022 14:18:12 +0200 Subject: [PATCH 45/45] pipectl: 0.3.0 -> 0.4.1 --- pkgs/tools/misc/pipectl/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/pipectl/default.nix b/pkgs/tools/misc/pipectl/default.nix index f65941e784b2..9ce250bef78e 100644 --- a/pkgs/tools/misc/pipectl/default.nix +++ b/pkgs/tools/misc/pipectl/default.nix @@ -2,20 +2,25 @@ , lib , fetchFromGitHub , cmake +, scdoc }: stdenv.mkDerivation rec { pname = "pipectl"; - version = "0.3.0"; + version = "0.4.1"; src = fetchFromGitHub { owner = "Ferdi265"; repo = pname; rev = "v${version}"; - hash = "sha256-+o5hIDtDAh4r+AKCUhueQ3GBYf2sZtMATGX73Qg+tbo="; + hash = "sha256-dWRem9VHzMwVo+ahUagZB2r4Ag8PyBef5X41vVpZcAc="; }; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ cmake scdoc ]; + + cmakeFlags = [ + "-DINSTALL_DOCUMENTATION=ON" + ]; meta = with lib; { homepage = "https://github.com/Ferdi265/pipectl";