From 32f41fbef26aa7be03c89d3eab31a45d8b21acc1 Mon Sep 17 00:00:00 2001 From: ckie Date: Thu, 2 Dec 2021 15:15:47 +0200 Subject: [PATCH 01/34] nvidia_x11_vulkan_beta: 455.46.04 -> 470.62.13 --- pkgs/os-specific/linux/nvidia-x11/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/os-specific/linux/nvidia-x11/default.nix b/pkgs/os-specific/linux/nvidia-x11/default.nix index d88d18b85caf..782cdc6ca317 100644 --- a/pkgs/os-specific/linux/nvidia-x11/default.nix +++ b/pkgs/os-specific/linux/nvidia-x11/default.nix @@ -36,12 +36,12 @@ rec { # Vulkan developer beta driver # See here for more information: https://developer.nvidia.com/vulkan-driver vulkan_beta = generic rec { - version = "455.46.04"; - persistencedVersion = "455.45.01"; - settingsVersion = "455.45.01"; - sha256_64bit = "1iv42w3x1vc00bgn6y4w1hnfsvnh6bvj3vcrq8hw47760sqwa4xa"; - settingsSha256 = "09v86y2c8xas9ql0bqr7vrjxx3if6javccwjzyly11dzffm02h7g"; - persistencedSha256 = "13s4b73il0lq2hs81q03176n16mng737bfsp3bxnxgnrv3whrayz"; + version = "470.62.13"; + persistencedVersion = "470.86"; + settingsVersion = "470.86"; + sha256_64bit = "sha256-itBFNPMy+Nn0g8V8qdkRb+ELHj57GRso1lXhPHUxKVI="; + settingsSha256 = "sha256-fq6RlD6g3uylvvTjE4MmaQwxPJYU0u6IMfpPVzks0tI="; + persistencedSha256 = "sha256-eHvauvh8Wd+b8DK6B3ZWNjoWGztupWrR8iog9ok58io="; url = "https://developer.nvidia.com/vulkan-beta-${lib.concatStrings (lib.splitString "." version)}-linux"; }; From e357ea6b01b509a48f1e67643ff74c1d8d4e8a08 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sun, 5 Dec 2021 21:48:46 -0400 Subject: [PATCH 02/34] wpa_supplicant: fix withDbus=false build --- pkgs/os-specific/linux/wpa_supplicant/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/os-specific/linux/wpa_supplicant/default.nix b/pkgs/os-specific/linux/wpa_supplicant/default.nix index 656fa477768a..d1821e4a2ae4 100644 --- a/pkgs/os-specific/linux/wpa_supplicant/default.nix +++ b/pkgs/os-specific/linux/wpa_supplicant/default.nix @@ -98,6 +98,16 @@ stdenv.mkDerivation rec { CONFIG_CTRL_IFACE_DBUS=y CONFIG_CTRL_IFACE_DBUS_NEW=y CONFIG_CTRL_IFACE_DBUS_INTRO=y + '' + # Upstream uses conditionals based on ifdef, so opposite of =y is + # not =n, as one may expect, but undefine. People, why don't you + # just use KBuild and stop reinventing the wheel? + # + # This config is sourced into makefile. + + optionalString (!withDbus) '' + undefine CONFIG_CTRL_IFACE_DBUS + undefine CONFIG_CTRL_IFACE_DBUS_NEW + undefine CONFIG_CTRL_IFACE_DBUS_INTRO '' + (if withReadline then '' CONFIG_READLINE=y '' else '' From 6fced8a9239a39d7e631b94fe6ecb1232d15be1e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 13 Feb 2022 09:03:48 +0000 Subject: [PATCH 03/34] synth: 0.6.4 -> 0.6.5-r1 --- pkgs/tools/misc/synth/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/synth/default.nix b/pkgs/tools/misc/synth/default.nix index 1d922a218433..80ccd7fc51cd 100644 --- a/pkgs/tools/misc/synth/default.nix +++ b/pkgs/tools/misc/synth/default.nix @@ -10,16 +10,16 @@ rustPlatform.buildRustPackage rec { pname = "synth"; - version = "0.6.4"; + version = "0.6.5-r1"; src = fetchFromGitHub { owner = "getsynth"; repo = pname; rev = "v${version}"; - sha256 = "sha256-TtIZwGHSfY7Xz6hmrsmaB7dXfjSPcBD4yDyC27TJ4B4="; + sha256 = "sha256-AcAZjS2Wo0PRngf0eYrduEd6rZX5YpYxsWEp0wf9jvg="; }; - cargoSha256 = "sha256-V5GA5XR3wkcBdbxRjO8PkF7Q3yg1NVUjXsdAHVip4Bc="; + cargoSha256 = "sha256-mMGlUCvbXaO0XfMwVtpq7HENoSaXrQU7GSh7/OhYdus="; nativeBuildInputs = [ pkg-config ]; From bd3968f0e0ea7766403c740654074578714053e7 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 18 Feb 2022 14:41:40 +0000 Subject: [PATCH 04/34] mautrix-signal: 0.2.2 -> 0.2.3 --- pkgs/servers/mautrix-signal/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/mautrix-signal/default.nix b/pkgs/servers/mautrix-signal/default.nix index f9d3cf281c49..426d2a32fbe8 100644 --- a/pkgs/servers/mautrix-signal/default.nix +++ b/pkgs/servers/mautrix-signal/default.nix @@ -2,13 +2,13 @@ python3.pkgs.buildPythonPackage rec { pname = "mautrix-signal"; - version = "0.2.2"; + version = "0.2.3"; src = fetchFromGitHub { owner = "mautrix"; repo = "signal"; rev = "v${version}"; - sha256 = "sha256-gJngGgShW63g5zSyZraod0YTt/pFtVLySDXNXXC5Xxs="; + sha256 = "sha256-P5a/JoL6PBkYDDitlkMj2QClvcXMgXcnup5EAatGcSs="; }; propagatedBuildInputs = with python3.pkgs; [ From 9013352e3f1941f6ee4430baaa69b0b0927adb15 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 11 Feb 2022 03:04:34 +0100 Subject: [PATCH 05/34] nixos/taskserver: port helper-tool to Python 3 --- nixos/modules/services/misc/taskserver/default.nix | 2 +- nixos/modules/services/misc/taskserver/helper-tool.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nixos/modules/services/misc/taskserver/default.nix b/nixos/modules/services/misc/taskserver/default.nix index ff63c41e193c..33f4d0c103ac 100644 --- a/nixos/modules/services/misc/taskserver/default.nix +++ b/nixos/modules/services/misc/taskserver/default.nix @@ -106,7 +106,7 @@ let certtool = "${pkgs.gnutls.bin}/bin/certtool"; - nixos-taskserver = with pkgs.python2.pkgs; buildPythonApplication { + nixos-taskserver = with pkgs.python3.pkgs; buildPythonApplication { name = "nixos-taskserver"; src = pkgs.runCommand "nixos-taskserver-src" { preferLocalBuild = true; } '' diff --git a/nixos/modules/services/misc/taskserver/helper-tool.py b/nixos/modules/services/misc/taskserver/helper-tool.py index 22a3d8d5311b..fec05728b2b6 100644 --- a/nixos/modules/services/misc/taskserver/helper-tool.py +++ b/nixos/modules/services/misc/taskserver/helper-tool.py @@ -90,7 +90,7 @@ def certtool_cmd(*args, **kwargs): """ return subprocess.check_output( [CERTTOOL_COMMAND] + list(args), - preexec_fn=lambda: os.umask(0077), + preexec_fn=lambda: os.umask(0o077), stderr=subprocess.STDOUT, **kwargs ) @@ -164,7 +164,7 @@ def generate_key(org, user): pubcert = os.path.join(basedir, "public.cert") try: - os.makedirs(basedir, mode=0700) + os.makedirs(basedir, mode=0o700) certtool_cmd("-p", "--bits", CERT_BITS, "--outfile", privkey) @@ -301,7 +301,7 @@ class Organisation(object): return None if name not in self.users.keys(): output = taskd_cmd("add", "user", self.name, name, - capture_stdout=True) + capture_stdout=True, encoding='utf-8') key = RE_USERKEY.search(output) if key is None: msg = "Unable to find key while creating user {}." @@ -412,9 +412,9 @@ class Manager(object): if org is not None: if self.ignore_imperative and is_imperative(name): return - for user in org.users.keys(): + for user in list(org.users.keys()): org.del_user(user) - for group in org.groups.keys(): + for group in list(org.groups.keys()): org.del_group(group) taskd_cmd("remove", "org", name) del self._lazy_orgs[name] From 0091e3198a81cfc5cd867f676f3711a63979b938 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 11 Feb 2022 02:30:44 +0100 Subject: [PATCH 06/34] nixos/taskserver: do not open firewall port implicitly This adds an option `services.taskserver.openFirewall` to allow the user to choose whether or not the firewall port should be opened for the service. This is no longer the case by default. See also https://github.com/NixOS/nixpkgs/issues/19504. --- .../from_md/release-notes/rl-2205.section.xml | 8 ++++++++ nixos/doc/manual/release-notes/rl-2205.section.md | 4 ++++ nixos/modules/services/misc/taskserver/default.nix | 14 +++++++++----- nixos/tests/taskserver.nix | 1 + 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml index 2bcfc86b432b..d18606caa51c 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml @@ -486,6 +486,14 @@ admin and password. + + + The taskserver module no longer implicitly + opens ports in the firewall configuration. This is now + controlled through the option + services.taskserver.openFirewall. + + The autorestic package has been upgraded diff --git a/nixos/doc/manual/release-notes/rl-2205.section.md b/nixos/doc/manual/release-notes/rl-2205.section.md index 650ace8d9d2a..e0f87f98decf 100644 --- a/nixos/doc/manual/release-notes/rl-2205.section.md +++ b/nixos/doc/manual/release-notes/rl-2205.section.md @@ -157,6 +157,10 @@ In addition to numerous new and upgraded packages, this release has the followin - `services.miniflux.adminCredentialFiles` is now required, instead of defaulting to `admin` and `password`. +- The `taskserver` module no longer implicitly opens ports in the firewall + configuration. This is now controlled through the option + `services.taskserver.openFirewall`. + - The `autorestic` package has been upgraded from 1.3.0 to 1.5.0 which introduces breaking changes in config file, check [their migration guide](https://autorestic.vercel.app/migration/1.4_1.5) for more details. - For `pkgs.python3.pkgs.ipython`, its direct dependency `pkgs.python3.pkgs.matplotlib-inline` diff --git a/nixos/modules/services/misc/taskserver/default.nix b/nixos/modules/services/misc/taskserver/default.nix index 33f4d0c103ac..e20804929981 100644 --- a/nixos/modules/services/misc/taskserver/default.nix +++ b/nixos/modules/services/misc/taskserver/default.nix @@ -277,10 +277,6 @@ in { example = "::"; description = '' The address (IPv4, IPv6 or DNS) to listen on. - - If the value is something else than localhost the - port defined by is automatically added to - . ''; }; @@ -292,6 +288,14 @@ in { ''; }; + openFirewall = mkOption { + type = types.bool; + default = false; + description = '' + Whether to open the firewall for the specified Taskserver port. + ''; + }; + fqdn = mkOption { type = types.str; default = "localhost"; @@ -560,7 +564,7 @@ in { ''; }; }) - (mkIf (cfg.enable && cfg.listenHost != "localhost") { + (mkIf (cfg.enable && cfg.openFirewall) { networking.firewall.allowedTCPPorts = [ cfg.listenPort ]; }) ]; diff --git a/nixos/tests/taskserver.nix b/nixos/tests/taskserver.nix index f34782c7059a..b2bd421e231f 100644 --- a/nixos/tests/taskserver.nix +++ b/nixos/tests/taskserver.nix @@ -63,6 +63,7 @@ in { server = { services.taskserver.enable = true; services.taskserver.listenHost = "::"; + services.taskserver.openFirewall = true; services.taskserver.fqdn = "server"; services.taskserver.organisations = { testOrganisation.users = [ "alice" "foo" ]; From 999a964d09fb888c7aac32fdd23900e33003c228 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Mon, 7 Feb 2022 13:50:37 +0100 Subject: [PATCH 07/34] bakelite: unstable-2021-10-19 -> unstable-2022-02-12 --- pkgs/tools/backup/bakelite/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/backup/bakelite/default.nix b/pkgs/tools/backup/bakelite/default.nix index 15ddd3e2ea63..2988ec31667e 100644 --- a/pkgs/tools/backup/bakelite/default.nix +++ b/pkgs/tools/backup/bakelite/default.nix @@ -2,17 +2,21 @@ stdenv.mkDerivation rec { pname = "bakelite"; - version = "unstable-2021-10-19"; + version = "unstable-2022-02-12"; src = fetchFromGitHub { owner = "richfelker"; repo = pname; - rev = "5fc3cf9704dbaa191b95f97d2a700588ea878a36"; - sha256 = "xoGor8KMG1vU6hP6v6gHcADKjVpaClvkivxkcPUJtss="; + rev = "373901734d114e42aa385e6a7843745674e4ca08"; + hash = "sha256-HBnYlUyTkvPTbdsZD02yCq5C7yXOHYK4l4mDRUkcN5I="; }; hardeningEnable = [ "pie" ]; - buildFlags = [ "CFLAGS=-D_GNU_SOURCE" ]; + preBuild = '' + # pipe2() is only exposed with _GNU_SOURCE + # Upstream makefile explicitly uses -O3 to improve SHA-3 performance + makeFlagsArray+=( CFLAGS="-D_GNU_SOURCE -g -O3" ) + ''; installPhase = '' mkdir -p $out/bin From b237d3275da4f2809ef1827e9d935fd12ae88c56 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Tue, 15 Feb 2022 12:51:42 +0100 Subject: [PATCH 08/34] bakelite: extend platforms Since it only relies on the C standard library for POSIX, it should work fine on all unixoid platforms. --- pkgs/tools/backup/bakelite/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/backup/bakelite/default.nix b/pkgs/tools/backup/bakelite/default.nix index 2988ec31667e..e022ba942d28 100644 --- a/pkgs/tools/backup/bakelite/default.nix +++ b/pkgs/tools/backup/bakelite/default.nix @@ -27,7 +27,7 @@ stdenv.mkDerivation rec { homepage = "https://github.com/richfelker/bakelite"; description = "Incremental backup with strong cryptographic confidentality"; license = licenses.gpl2; - platforms = platforms.linux; maintainers = with maintainers; [ mvs ]; + platforms = platforms.unix; }; } From e55eb3d376c05d2bc902506aa0c42c8eb8c06bcb Mon Sep 17 00:00:00 2001 From: Jason Pickens Date: Wed, 16 Feb 2022 22:49:48 +1300 Subject: [PATCH 09/34] mas: 1.8.2 -> 1.8.6 --- pkgs/os-specific/darwin/mas/default.nix | 41 +++++++++++++------------ 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/pkgs/os-specific/darwin/mas/default.nix b/pkgs/os-specific/darwin/mas/default.nix index 907d21853273..33a3114c3d6e 100644 --- a/pkgs/os-specific/darwin/mas/default.nix +++ b/pkgs/os-specific/darwin/mas/default.nix @@ -1,38 +1,41 @@ { lib -, stdenv +, stdenvNoCC , fetchurl -, libarchive -, p7zip +, installShellFiles +, testVersion +, mas }: -stdenv.mkDerivation rec { +stdenvNoCC.mkDerivation rec { pname = "mas"; - version = "1.8.2"; + version = "1.8.6"; src = fetchurl { - url = "https://github.com/mas-cli/mas/releases/download/v${version}/mas.pkg"; - sha256 = "HlLQKBVIYKanS6kjkbYdabBi1T0irxE6fNd2H6mDKe4="; + # Use the tarball until https://github.com/mas-cli/mas/issues/452 is fixed. + # Even though it looks like an OS/arch specific build it is actually a universal binary. + url = "https://github.com/mas-cli/mas/releases/download/v${version}/mas-${version}.monterey.bottle.tar.gz"; + sha256 = "0q4skdhymgn5xrwafyisfshx327faia682yv83mf68r61m2jl10d"; }; - nativeBuildInputs = [ libarchive p7zip ]; - - unpackPhase = '' - 7z x $src - bsdtar -xf Payload~ - ''; - - dontBuild = true; + nativeBuildInputs = [ installShellFiles ]; installPhase = '' - mkdir -p $out - cp -r ./usr/local/bin $out + install -D './${version}/bin/mas' "$out/bin/mas" + installShellCompletion --cmd mas --bash './${version}/etc/bash_completion.d/mas' ''; + passthru.tests = { + version = testVersion { + package = mas; + command = "mas version"; + }; + }; + meta = with lib; { description = "Mac App Store command line interface"; homepage = "https://github.com/mas-cli/mas"; license = licenses.mit; - maintainers = with maintainers; [ zachcoyle ]; - platforms = platforms.darwin; + maintainers = with maintainers; [ steinybot zachcoyle ]; + platforms = [ "x86_64-darwin" "aarch64-darwin" ]; }; } From eca4a0087f6406c08915313dae8fcf6a57450e29 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 14 Apr 2022 09:44:48 +0200 Subject: [PATCH 10/34] CODEOWNERS: Add layus for autoPatchelfHook With the re-implementation in Python merged[1], it no longer makes sense for me to track issues and pull requests. I did this originally because people were forgetting (rightfully so) to run tests against all that proprietary stuff we have in nixpkgs that is using autoPatchelfHook. We still can't test these automatically but with me no longer being the author of the code, I hereby drop my entry in CODEOWNERS and instead replace it with layus, who's the author of the rewrite. [1]: https://github.com/NixOS/nixpkgs/pull/149731 Signed-off-by: aszlig --- .github/CODEOWNERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 07dfe176f49a..2b6f7ff5fe32 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -41,7 +41,8 @@ /pkgs/build-support/cc-wrapper @Ericson2314 /pkgs/build-support/bintools-wrapper @Ericson2314 /pkgs/build-support/setup-hooks @Ericson2314 -/pkgs/build-support/setup-hooks/auto-patchelf.sh @aszlig +/pkgs/build-support/setup-hooks/auto-patchelf.sh @layus +/pkgs/build-support/setup-hooks/auto-patchelf.py @layus # Nixpkgs build-support /pkgs/build-support/writers @lassulus @Profpatsch From 9749d34ac03650c712848a1fc2188e496e87c3f0 Mon Sep 17 00:00:00 2001 From: hqurve Date: Mon, 14 Mar 2022 10:45:16 -0400 Subject: [PATCH 11/34] octave-kernel: 0.32.0 -> 0.34.2 --- .../editors/jupyter-kernels/octave/kernel.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/editors/jupyter-kernels/octave/kernel.nix b/pkgs/applications/editors/jupyter-kernels/octave/kernel.nix index 9ebb4257784b..7ede04427b5b 100644 --- a/pkgs/applications/editors/jupyter-kernels/octave/kernel.nix +++ b/pkgs/applications/editors/jupyter-kernels/octave/kernel.nix @@ -4,20 +4,18 @@ with python3Packages; buildPythonPackage rec { pname = "octave-kernel"; - version = "0.32.0"; + version = "0.34.2"; src = fetchPypi { pname = "octave_kernel"; inherit version; - sha256 = "0dfbxfcf3bz4jswnpkibnjwlkgy0y4j563nrhaqxv3nfa65bksif"; + sha256 = "sha256-5ki2lekfK7frPsmPBIzYQOfANCUY9x+F2ZRAQSdPTxo="; }; propagatedBuildInputs = [ metakernel ipykernel ]; - # Tests require jupyter_kernel_test to run, but it hasn't seen a - # release since 2017 and seems slightly abandoned. - # Doing fetchPypi on it doesn't work, even though it exists here: - # https://pypi.org/project/jupyter_kernel_test/. + # Tests fail because the kernel appears to be halting or failing to launch + # There appears to be a similar problem with metakernel's tests doCheck = false; meta = with lib; { From 47586fec7e92d30480411d323a88a92ff3477070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 17 Apr 2022 02:56:04 +0200 Subject: [PATCH 12/34] SDL_audiolib: init at unstable-2022-04-17 --- .../libraries/SDL_audiolib/default.nix | 53 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/development/libraries/SDL_audiolib/default.nix diff --git a/pkgs/development/libraries/SDL_audiolib/default.nix b/pkgs/development/libraries/SDL_audiolib/default.nix new file mode 100644 index 000000000000..0ec0aa312e83 --- /dev/null +++ b/pkgs/development/libraries/SDL_audiolib/default.nix @@ -0,0 +1,53 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, SDL2 +, pkg-config +}: + +stdenv.mkDerivation rec { + pname = "SDL_audiolib"; + version = "unstable-2022-04-17"; + + src = fetchFromGitHub { + owner = "realnc"; + repo = "SDL_audiolib"; + rev = "908214606387ef8e49aeacf89ce848fb36f694fc"; + sha256 = "sha256-11KkwIhG1rX7yDFSj92NJRO9L2e7XZGq2gOJ54+sN/A="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + SDL2 + ]; + + cmakeFlags = [ + "-DUSE_RESAMP_SRC=OFF" + "-DUSE_RESAMP_SOXR=OFF" + "-DUSE_DEC_DRFLAC=OFF" + "-DUSE_DEC_OPENMPT=OFF" + "-DUSE_DEC_XMP=OFF" + "-DUSE_DEC_MODPLUG=OFF" + "-DUSE_DEC_MPG123=OFF" + "-DUSE_DEC_SNDFILE=OFF" + "-DUSE_DEC_LIBVORBIS=OFF" + "-DUSE_DEC_LIBOPUSFILE=OFF" + "-DUSE_DEC_MUSEPACK=OFF" + "-DUSE_DEC_FLUIDSYNTH=OFF" + "-DUSE_DEC_BASSMIDI=OFF" + "-DUSE_DEC_WILDMIDI=OFF" + "-DUSE_DEC_ADLMIDI=OFF" + ]; + + meta = with lib; { + description = "Audio decoding, resampling and mixing library for SDL"; + homepage = "https://github.com/realnc/SDL_audiolib"; + license = licenses.lgpl3Plus; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6d9280199325..ba43ccf56b5e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20033,6 +20033,8 @@ with pkgs; libGLU = null; }); + SDL_audiolib = callPackage ../development/libraries/SDL_audiolib { }; + SDL_sixel = callPackage ../development/libraries/SDL_sixel { }; SDL_gfx = callPackage ../development/libraries/SDL_gfx { }; From a67950f20b97a293b2fefeecc349c6b785321e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 17 Apr 2022 04:25:24 +0200 Subject: [PATCH 13/34] fetchurl: passthru url --- pkgs/build-support/fetchurl/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/fetchurl/default.nix b/pkgs/build-support/fetchurl/default.nix index dcab471fc839..32cc416cc891 100644 --- a/pkgs/build-support/fetchurl/default.nix +++ b/pkgs/build-support/fetchurl/default.nix @@ -160,5 +160,5 @@ stdenvNoCC.mkDerivation { ''; inherit meta; - inherit passthru; + passthru = { inherit url; } // passthru; } From 753493028426ff4d79389caf404b3aa03f2200da Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 17 Apr 2022 08:26:04 +0200 Subject: [PATCH 14/34] osdlyrics: init at 0.5.10 --- pkgs/applications/audio/osdlyrics/default.nix | 87 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 89 insertions(+) create mode 100644 pkgs/applications/audio/osdlyrics/default.nix diff --git a/pkgs/applications/audio/osdlyrics/default.nix b/pkgs/applications/audio/osdlyrics/default.nix new file mode 100644 index 000000000000..0c14b8be2b6b --- /dev/null +++ b/pkgs/applications/audio/osdlyrics/default.nix @@ -0,0 +1,87 @@ +{ lib +, stdenv +, fetchFromGitHub + +, autoreconfHook +, pkg-config +, intltool + +, glib +, gtk2 +, dbus-glib +, libappindicator-gtk2 +, libnotify +, python3 +, runtimeShell +}: + +stdenv.mkDerivation rec { + pname = "osdlyrics"; + version = "0.5.10"; + + src = fetchFromGitHub { + owner = "osdlyrics"; + repo = "osdlyrics"; + rev = version; + sha256 = "sha256-x9gIT1JkfPIc4RmmQJLv9rOG2WqAftoTK5uiRlS65zU="; + }; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + intltool + ]; + + buildInputs = [ + glib + gtk2 + dbus-glib + libappindicator-gtk2 + libnotify + python3.pkgs.wrapPython + (python3.withPackages (pp: with pp; [ + chardet + dbus-python + future + pycurl + pygobject3 + ])) + ]; + + postFixup = '' + extractExecLine() { + serviceFile=$1 + program=$2 + + execLine=$(grep --only-matching --perl-regexp 'Exec=\K(.+)' "$serviceFile") + echo "#!${runtimeShell}" > "$program" + echo "exec $execLine" >> "$program" + chmod +x "$program" + + substituteInPlace "$serviceFile" \ + --replace "Exec=$execLine" "Exec=$program" + } + + # Extract the exec line into a separate program so that it can be wrapped. + mkdir -p "$out/libexec/osdlyrics/" + for svcFile in "$out/share/dbus-1/services"/*; do + svc=$(basename "$svcFile" ".service") + if grep "python" "$svcFile"; then + extractExecLine "$svcFile" "$out/libexec/osdlyrics/$svc" + fi + done + + for p in "$out/bin/osdlyrics-create-lyricsource" "$out/bin/osdlyrics-daemon" "$out/libexec/osdlyrics"/*; do + wrapProgram "$p" \ + --prefix PYTHONPATH : "$out/${python3.sitePackages}" + done + ''; + + meta = with lib; { + description = "Standalone lyrics fetcher/displayer"; + homepage = "https://github.com/osdlyrics/osdlyrics"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ jtojnar ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 22d842be9220..d9645abeae28 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3718,6 +3718,8 @@ with pkgs; oil-buku = callPackage ../applications/misc/oil-buku { }; + osdlyrics = callPackage ../applications/audio/osdlyrics { }; + ossutil = callPackage ../tools/admin/ossutil {}; pastel = callPackage ../applications/misc/pastel { From 538a5a28b75a3ae6a52f073eba727a81135ec76d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 18 Apr 2022 03:06:02 +0200 Subject: [PATCH 15/34] fetchgit: allow passing thru meta --- pkgs/build-support/fetchgit/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/fetchgit/default.nix b/pkgs/build-support/fetchgit/default.nix index 1b59668ce4bc..b0cc42f07145 100644 --- a/pkgs/build-support/fetchgit/default.nix +++ b/pkgs/build-support/fetchgit/default.nix @@ -27,6 +27,7 @@ in , # Impure env vars (https://nixos.org/nix/manual/#sec-advanced-attributes) # needed for netrcPhase netrcImpureEnvVars ? [] +, meta ? {} }: /* NOTE: @@ -90,5 +91,5 @@ stdenvNoCC.mkDerivation { "GIT_PROXY_COMMAND" "NIX_GIT_SSL_CAINFO" "SOCKS_SERVER" ]; - inherit preferLocalBuild; + inherit preferLocalBuild meta; } From f0c565c1278153236f93b53d744beef618653778 Mon Sep 17 00:00:00 2001 From: Artturin Date: Tue, 19 Apr 2022 02:53:05 +0300 Subject: [PATCH 16/34] comma: 1.1.0 -> 1.2.3 --- .../package-management/comma/default.nix | 58 ++++++++----------- 1 file changed, 23 insertions(+), 35 deletions(-) diff --git a/pkgs/tools/package-management/comma/default.nix b/pkgs/tools/package-management/comma/default.nix index 1cd8ac8ccd48..5314285061e7 100644 --- a/pkgs/tools/package-management/comma/default.nix +++ b/pkgs/tools/package-management/comma/default.nix @@ -1,55 +1,43 @@ { lib -, stdenv -, fetchurl +, rustPlatform , fetchFromGitHub -, linkFarm -, nix-index +, nix , fzy +, makeWrapper +, testVersion +, comma }: -let - - # nix-index takes a little while to run and the contents don't change - # meaningfully very often. - indexCache = fetchurl { - url = "https://github.com/Mic92/nix-index-database/releases/download/2021-12-12/index-x86_64-linux"; - sha256 = "sha256-+SoG5Qz2KWA/nIWXE6SLpdi8MDqTs8LY90fGZxGKOiA="; - }; - - # nix-locate needs the --db argument to be a directory containing a file - # named "files". - nixIndexDB = linkFarm "nix-index-cache" [ - { name = "files"; path = indexCache; } - ]; - -in stdenv.mkDerivation rec { +rustPlatform.buildRustPackage rec { pname = "comma"; - version = "1.1.0"; + version = "1.2.3"; src = fetchFromGitHub { owner = "nix-community"; - repo = pname; - rev = version; - sha256 = "sha256-WBIQmwlkb/GMoOq+Dnyrk8YmgiM/wJnc5HYZP8Uw72E="; + repo = "comma"; + rev = "v${version}"; + sha256 = "sha256-emhvBaicLAnu/Kn4oxHngGa5BSxOEwbkhTLO5XvauMw="; }; - postPatch = '' - substituteInPlace , \ - --replace '$PREBUILT_NIX_INDEX_DB' "${nixIndexDB}" \ - --replace nix-locate "${nix-index}/bin/nix-locate" \ - --replace fzy "${fzy}/bin/fzy" + cargoSha256 = "sha256-mQxNo4VjW2Q0MYfU+RCb4Ayl9ClpxrSV8X4EKZ7PewA="; + + nativeBuildInputs = [ makeWrapper ]; + + postInstall = '' + wrapProgram $out/bin/comma \ + --prefix PATH : ${lib.makeBinPath [ nix fzy ]} + ln -s $out/bin/comma $out/bin/, ''; - installPhase = '' - install -Dm755 , -t $out/bin - ln -s $out/bin/, $out/bin/comma - ''; + passthru.tests = { + version = testVersion { package = comma; }; + }; meta = with lib; { homepage = "https://github.com/nix-community/comma"; - description = "Run software without installing it"; + description = "Runs programs without installing them"; license = licenses.mit; - maintainers = with maintainers; [ Enzime ]; + maintainers = with maintainers; [ Enzime artturin ]; platforms = platforms.all; }; } From bf7968139acdb2b7b80f4f7f7f546c8df1c39a2b Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Tue, 19 Apr 2022 23:53:03 +0200 Subject: [PATCH 17/34] chromium: Fix Wayland screen sharing Fix #167526. --- .../networking/browsers/chromium/common.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/browsers/chromium/common.nix b/pkgs/applications/networking/browsers/chromium/common.nix index bf1d26f40567..0eca082db280 100644 --- a/pkgs/applications/networking/browsers/chromium/common.nix +++ b/pkgs/applications/networking/browsers/chromium/common.nix @@ -61,6 +61,13 @@ let url = "https://chromium.googlesource.com/chromium/tools/build/+/e77882e0dde52c2ccf33c5570929b75b4a2a2522/recipes/recipe_modules/chromium/resources/clang-format?format=TEXT"; sha256 = "0ic3hn65dimgfhakli1cyf9j3cxcqsf1qib706ihfhmlzxf7256l"; }; + # https://webrtc-review.googlesource.com/c/src/+/255601 + webrtcWaylandScreenshareCoredumpFix = fetchurl { + # PipeWire capturer: check existence of cursor metadata + name = "webrtc-wayland-screenshare-coredump-fix.patch"; + url = "https://webrtc-review.googlesource.com/changes/src~255601/revisions/2/patch?download"; + hash = "sha256-PHGwEoYhMa+ZL2ner10FwdGUWUxsVr+HWuZOAEugYDY="; + }; # The additional attributes for creating derivations based on the chromium # source tree. @@ -162,7 +169,9 @@ let ./patches/widevine-79.patch ]; - postPatch = '' + postPatch = optionalString (versionRange "100" "101") '' + base64 --decode ${webrtcWaylandScreenshareCoredumpFix} | patch -p1 -d third_party/webrtc + '' + '' # remove unused third-party for lib in ${toString gnSystemLibraries}; do if [ -d "third_party/$lib" ]; then From 683e87e2ebb23bc873b7f6bbd3a4419341d06181 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 10 Apr 2022 00:08:55 -0400 Subject: [PATCH 18/34] moltenvk: 1.1.8 -> 1.1.9 --- pkgs/os-specific/darwin/moltenvk/default.nix | 30 ++++++++------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/pkgs/os-specific/darwin/moltenvk/default.nix b/pkgs/os-specific/darwin/moltenvk/default.nix index dc7f3f58fd3a..b2bc7e376b5e 100644 --- a/pkgs/os-specific/darwin/moltenvk/default.nix +++ b/pkgs/os-specific/darwin/moltenvk/default.nix @@ -29,7 +29,7 @@ let in stdenvNoCC.mkDerivation rec { pname = "MoltenVK"; - version = "1.1.8"; + version = "1.1.9"; buildInputs = [ AppKit @@ -51,8 +51,8 @@ stdenvNoCC.mkDerivation rec { src = fetchFromGitHub { owner = "KhronosGroup"; repo = "glslang"; - rev = "90d4bd05cd77ef5782a6779a0fe3d084440dc80d"; - hash = "sha256-Q0sk4bPj/skPat1n4GJyuXAlZqpfEn4Td8Bm2IBNUqE="; + rev = "9bb8cfffb0eed010e07132282c41d73064a7a609"; + hash = "sha256-YLn/Mxuk6mXPGtBBgfwky5Nl1TCAW6i2g+AZLzqVz+A="; }; })).override { inherit (passthru) spirv-headers spirv-tools; @@ -64,27 +64,24 @@ stdenvNoCC.mkDerivation rec { src = fetchFromGitHub { owner = "KhronosGroup"; repo = "SPIRV-Cross"; - rev = "131278458ea8eebe6a6e9c476fbcf71278726e1a"; - hash = "sha256-LrRYDFGv3Zxfy4qRNLwM2OOa8jbcq0ttPxDamCH21xU="; + rev = "0d4ce028bf8b8a94d325dc1e1c20446153ba19c4"; + hash = "sha256-OluTxOEfDIGMdrXhvIifjpMgZBvyh9ofLKxKt0dX5ZU="; }; }); spirv-headers = spirv-headers.overrideAttrs (_: { src = fetchFromGitHub { owner = "KhronosGroup"; repo = "spirv-headers"; - rev = "b42ba6d92faf6b4938e6f22ddd186dbdacc98d78"; - hash = "sha256-ks9JCj5rj+Xu++7z5RiHDkU3/sFXhcScw8dATfB/ot0"; + rev = "4995a2f2723c401eb0ea3e10c81298906bf1422b"; + hash = "sha256-LkIrTFWYvZffLVJJW3152um5LTEsMJEDEsIhBAdhBlk="; }; }); spirv-tools = (spirv-tools.overrideAttrs (old: { src = fetchFromGitHub { owner = "KhronosGroup"; repo = "spirv-tools"; - rev = "45dd184c790d6bfc78a5a74a10c37e888b1823fa"; - hash = "sha256-DSqZlwfNTbN4fyIrVBKltm5U2U4GthW3L+Ksw4lSVG8="; - }; - meta = old.meta // { - platforms = old.meta.platforms ++ lib.platforms.darwin; + rev = "eed5c76a57bb965f2e1b56d1dc40b50910b5ec1d"; + hash = "sha256-2Mr3HbhRslLpRfwHascl7e/UoPijhrij9Bjg3aCiqBM="; }; })).override { inherit (passthru) spirv-headers; @@ -93,11 +90,8 @@ stdenvNoCC.mkDerivation rec { src = fetchFromGitHub { owner = "KhronosGroup"; repo = "Vulkan-Headers"; - rev = "1dace16d8044758d32736eb59802d171970e9448"; - hash = "sha256-C6YgxWcinI3QumcWmoJaiTAf0u6jSDc8sCIarn2t04k"; - }; - meta = old.meta // { - platforms = old.meta.platforms ++ lib.platforms.darwin; + rev = "76f00ef6cbb1886eb1162d1fa39bee8b51e22ee8"; + hash = "sha256-FqrcFHsUS8e4ZgZpxVc8nNZWdNltniFmMjyyWVoNc7w="; }; }); }; @@ -106,7 +100,7 @@ stdenvNoCC.mkDerivation rec { owner = "KhronosGroup"; repo = "MoltenVK"; rev = "v${version}"; - hash = "sha256-IfTBtA2fM7YN4qaSDUTfsiCXzn+omSV6oroL1ivKiVA="; + hash = "sha256-5ie1IGzZqaYbciFnrBJ1/9V0LEuz7JsEOFXXkG3hJzg="; }; patches = [ From 6efbfd12e7a595833f6c26d350ed89bcb41bbb68 Mon Sep 17 00:00:00 2001 From: tilcreator Date: Wed, 20 Apr 2022 04:39:59 +0200 Subject: [PATCH 19/34] inkscape: add pyserial --- pkgs/applications/graphics/inkscape/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/graphics/inkscape/default.nix b/pkgs/applications/graphics/inkscape/default.nix index 0958676cc99b..d29d1d65346e 100644 --- a/pkgs/applications/graphics/inkscape/default.nix +++ b/pkgs/applications/graphics/inkscape/default.nix @@ -48,6 +48,7 @@ let lxml pillow scour + pyserial ]); in stdenv.mkDerivation rec { From a49e4933767acaafebda4c94ac629c2cfdc48f4b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 20 Apr 2022 16:15:45 +0200 Subject: [PATCH 20/34] python3Packages.httpx-ntlm: relax dependency constraints --- pkgs/development/python-modules/httpx-ntlm/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/httpx-ntlm/default.nix b/pkgs/development/python-modules/httpx-ntlm/default.nix index 40ef250401bf..a014872ad696 100644 --- a/pkgs/development/python-modules/httpx-ntlm/default.nix +++ b/pkgs/development/python-modules/httpx-ntlm/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "httpx_ntlm"; inherit version; - sha256 = "sha256-pv/OxgcO0JWk2nCZp+bKlOdX7NqV6V5xZRDy5dd13qQ="; + hash = "sha256-pv/OxgcO0JWk2nCZp+bKlOdX7NqV6V5xZRDy5dd13qQ="; }; propagatedBuildInputs = [ @@ -26,6 +26,12 @@ buildPythonPackage rec { pyspnego ]; + postPatch = '' + substituteInPlace setup.py \ + --replace "pyspnego==0.3.*" "pyspnego>=0.3.*" \ + --replace "cryptography==36.0.*" "cryptography>=36.0.*" + ''; + # https://github.com/ulodciv/httpx-ntlm/issues/5 doCheck = false; From 6b70d7a4f0e31409b928609a909f9767634f07f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 20 Apr 2022 17:04:33 +0200 Subject: [PATCH 21/34] addlicense: init at 1.0.0 --- pkgs/tools/misc/addlicense/default.nix | 27 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/tools/misc/addlicense/default.nix diff --git a/pkgs/tools/misc/addlicense/default.nix b/pkgs/tools/misc/addlicense/default.nix new file mode 100644 index 000000000000..2a72f53d671b --- /dev/null +++ b/pkgs/tools/misc/addlicense/default.nix @@ -0,0 +1,27 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "addlicense"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "google"; + repo = "addlicense"; + rev = "v${version}"; + sha256 = "sha256-Nv7Az3TDtd1P/QWjH92otSV9rIrc2l/mTbGUXhODi7Q="; + }; + + vendorSha256 = "sha256-2mncc21ecpv17Xp8PA9GIodoaCxNBacbbya/shU8T9Y="; + + subPackages = [ "." ]; + + meta = with lib; { + description = "Ensures source code files have copyright license headers by scanning directory patterns recursively"; + homepage = "https://github.com/google/addlicense"; + license = licenses.asl20; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 04f02c4685ab..51b2c565f4c4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -958,6 +958,8 @@ with pkgs; adafruit-ampy = callPackage ../tools/misc/adafruit-ampy { }; + addlicense = callPackage ../tools/misc/addlicense { }; + adlplug = callPackage ../applications/audio/adlplug { inherit (darwin) libobjc; inherit (darwin.apple_sdk.frameworks) Cocoa CoreServices WebKit DiscRecording; From 6a9aafbf3bc051b2fdbd91c35f2153ba9dc27398 Mon Sep 17 00:00:00 2001 From: fomichevmi <59839128+fomichevmi@users.noreply.github.com> Date: Wed, 20 Apr 2022 19:37:42 +0200 Subject: [PATCH 22/34] pigz: use github as a source Current url which is provided for pigz is not accessible any longer. Use github as a source instead --- pkgs/tools/compression/pigz/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/compression/pigz/default.nix b/pkgs/tools/compression/pigz/default.nix index 6dbe190c400b..e7a1df5fd6cd 100644 --- a/pkgs/tools/compression/pigz/default.nix +++ b/pkgs/tools/compression/pigz/default.nix @@ -1,12 +1,14 @@ -{ lib, stdenv, fetchurl, zlib, util-linux }: +{ lib, stdenv, fetchFromGitHub, zlib, util-linux }: stdenv.mkDerivation rec { pname = "pigz"; version = "2.6"; - src = fetchurl { - url = "https://www.zlib.net/${pname}/${pname}-${version}.tar.gz"; - sha256 = "sha256-Lu17DXRJ0dcJA/KmLNYAXSYus6jJ6YaHvIy7WAnbKn0="; + src = fetchFromGitHub { + owner = "madler"; + repo = "${pname}"; + rev = "refs/tags/v${version}"; + sha256 = "146qkmzi199xwmmf6bllanqfyl702fm1rnad8cd5r5yyrp5ks115"; }; enableParallelBuilding = true; From f5dcf2fa818a9012f560144fbb11a11984aab77a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Heredia=20Montiel?= Date: Wed, 20 Apr 2022 12:45:06 -0500 Subject: [PATCH 23/34] python3Packages.dm-tree: fix gcc11 build due to abseil-cpp version mismatch --- pkgs/top-level/python-packages.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7a1fc1f3de6f..489a250ba5e4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2410,7 +2410,11 @@ in { dm-sonnet = callPackage ../development/python-modules/dm-sonnet { }; - dm-tree = callPackage ../development/python-modules/dm-tree { }; + dm-tree = callPackage ../development/python-modules/dm-tree { + abseil-cpp = pkgs.abseil-cpp.override { + cxxStandard = "14"; + }; + }; dnachisel = callPackage ../development/python-modules/dnachisel { }; From 576b229fccc55a8e410725da7aaf7f7f5a4e803d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 17 Apr 2022 23:30:00 +0200 Subject: [PATCH 24/34] debian-goodies: init at 0.87 --- .../misc/debian-goodies/default.nix | 70 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 72 insertions(+) create mode 100644 pkgs/applications/misc/debian-goodies/default.nix diff --git a/pkgs/applications/misc/debian-goodies/default.nix b/pkgs/applications/misc/debian-goodies/default.nix new file mode 100644 index 000000000000..20d47e204f7c --- /dev/null +++ b/pkgs/applications/misc/debian-goodies/default.nix @@ -0,0 +1,70 @@ +{ lib +, stdenv +, fetchFromGitLab +, curl +, dialog +, installShellFiles +, perl +, python3 +}: + +stdenv.mkDerivation rec { + pname = "debian-goodies"; + version = "0.87"; + + src = fetchFromGitLab { + domain = "salsa.debian.org"; + owner = "debian"; + repo = "debian-goodies"; + rev = "debian/${version}"; + sha256 = "sha256-7O2AY7tWYiOIy4ImFBxWu6S+ljc3VmqS/j4KyEzVVIA="; + }; + + postPatch = '' + substituteInPlace debmany/debmany \ + --replace "/usr/bin/dialog" "${dialog}/bin/dialog" \ + --replace "/usr/bin/whiptail" "${python3.pkgs.snack}/bin/whiptail" + + substituteInPlace dman \ + --replace "curl" "${curl}/bin/curl" + ''; + + nativeBuildInputs = [ + installShellFiles + ]; + + buildInputs = [ + perl + python3 + ]; + + installPhase = '' + runHook preInstall + + # see https://salsa.debian.org/debian/debian-goodies/-/blob/master/debian/install + for bin in checkrestart dgrep dglob debget dpigs debman dman popbugs which-pkg-broke which-pkg-broke-build dhomepage debmany/debmany check-enhancements find-dbgsym-packages; do + install -Dm755 $bin -t $out/bin + done + + install -Dm644 find-dbgsym-packages-templates/* -t $out/share/debian-goodies/find-dbgsym-packages-templates/ + + installShellCompletion --bash \ + debmany/bash_completion/debmany \ + debian/bash-completion + + installManPage \ + *.1 \ + debmany/man/*.1 \ + *.8 + + runHook postInstall + ''; + + meta = with lib; { + description = "Small toolbox-style utilities for Debian systems"; + homepage = "https://salsa.debian.org/debian/debian-goodies"; + license = licenses.gpl2Plus; + platforms = platforms.unix; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7d3d71538c88..c3004e17d5b7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4737,6 +4737,8 @@ with pkgs; debian-devscripts = callPackage ../tools/misc/debian-devscripts { }; + debian-goodies = callPackage ../applications/misc/debian-goodies { }; + debootstrap = callPackage ../tools/misc/debootstrap { }; debugedit = callPackage ../development/tools/misc/debugedit { }; From db4a2977daef7e13f442d923a2f813c033ea7ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 17 Apr 2022 05:29:52 +0200 Subject: [PATCH 25/34] devilutionx: 1.3.0 -> 1.4.0 --- pkgs/games/devilutionx/default.nix | 61 ++++++++++++++++++++---------- 1 file changed, 42 insertions(+), 19 deletions(-) diff --git a/pkgs/games/devilutionx/default.nix b/pkgs/games/devilutionx/default.nix index ac76ab5ad189..c7943b24c95e 100644 --- a/pkgs/games/devilutionx/default.nix +++ b/pkgs/games/devilutionx/default.nix @@ -3,11 +3,13 @@ , fetchFromGitHub , fetchpatch , fetchurl -, fetchzip +, bzip2 , cmake , pkg-config , gettext +, libsodium , SDL2 +, SDL_audiolib , SDL2_image , fmt , libpng @@ -16,40 +18,56 @@ let # TODO: submit a PR upstream to allow system copies of these libraries where possible + + # fork with patches, far behind upstream asio = fetchurl { url = "https://github.com/diasurgical/asio/archive/ebeff99f539da23d27c2e8d4bdbc1ee011968644.tar.gz"; sha256 = "0vhb4cig40mm0a98i74grpmfkcmby8zxg6vqa38dpryxpgvp5fw8"; }; - SDL_audiolib = fetchurl { - url = "https://github.com/realnc/SDL_audiolib/archive/aa79660eba4467a44f9dcaecf26b0f0a000abfd7.tar.gz"; - sha256 = "0z4rizncp6gqsy72b3709zc9fr915wgcwnlx1fhhy7mrczsly630"; + # fork with patches, upstream seems to be dead + libmpq = fetchurl { + url = "https://github.com/diasurgical/libmpq/archive/0f10bd1600f406b13932bf5351ba713361262184.tar.gz"; + sha256 = "sha256-7hc/Xtsg8WJIJljLydS7hLZA9lEEHWhsCteyrxK68qE="; }; - simpleini = fetchzip { - url = "https://github.com/brofield/simpleini/archive/7bca74f6535a37846162383e52071f380c99a43a.zip"; - sha256 = "07kf1jjbc9v04hsysa6v2wh1m9csf5qz0b1wmlkf9sj00kf47zj7"; + # not "real" package with pkg-config or cmake file, just collection of source files + libsmackerdec = fetchurl { + url = "https://github.com/diasurgical/libsmackerdec/archive/2997ee0e41e91bb723003bc09234be553b190e38.tar.gz"; + sha256 = "sha256-QMDcIZQ94i4VPVanmSxiGkKgxWx82DP4uE+Q5I2nU+o="; + }; + + # fork with patches, far behind upstream + libzt = fetchFromGitHub { + owner = "diasurgical"; + repo = "libzt"; + fetchSubmodules = true; + rev = "a34ba7f1cc2e41b05badd25d1b01fdc5fd2f4e02"; + sha256 = "sha256-tyIPt+7OTi5W+5X/ixQP1puOKdhrqRZtpwXlWFBFpc8="; + }; + + # missing pkg-config and/or cmake file + simpleini = fetchurl { + url = "https://github.com/brofield/simpleini/archive/9b3ed7ec815997bc8c5b9edf140d6bde653e1458.tar.gz"; + sha256 = "sha256-93kuyp8/ew7okW/6ThJMtLMZsR1YSeFcXu9Y65ELBFE=="; }; in stdenv.mkDerivation rec { pname = "devilutionx"; - version = "1.3.0"; + version = "1.4.0"; src = fetchFromGitHub { owner = "diasurgical"; repo = "devilutionX"; rev = version; - sha256 = "0acrkqi0pr3cbr5i1a1vfrnxv1n3xmql5d86bm2gywvpdb94xads"; + sha256 = "sha256-uuIPTdgGpHA8j1M8b+kfnBuiJ5mdS9rckvEfn2h7lmo="; }; patches = [ - # allow building with system SDL2_image instead of vendored version - # this patch can be removed on the next release of devilutionx - # see https://github.com/diasurgical/devilutionX/pull/3386 (fetchpatch { - url = "https://github.com/diasurgical/devilutionX/commit/41ff03e94c02477bffb2d62764e8624c0e06854d.patch"; - sha256 = "1lrnb9d0dcdyd78rix5rl4p8kkwbnl91llr9fgb86ysm3q58qkvj"; + url = "https://github.com/diasurgical/devilutionX/commit/03b22352fc9e1ecb88b20a053c90c04a50717267.patch"; + sha256 = "sha256-5aAwi1NV8P+nLLbEEnlwLGNQCQBb0nQkIVe5tR5Shsw="; }) ]; @@ -57,16 +75,18 @@ stdenv.mkDerivation rec { substituteInPlace Source/init.cpp --replace "/usr/share/diasurgical/devilutionx/" "${placeholder "out"}/share/diasurgical/devilutionx/" # download dependencies ahead of time - substituteInPlace 3rdParty/asio/CMakeLists.txt --replace "https://github.com/diasurgical/asio/archive/ebeff99f539da23d27c2e8d4bdbc1ee011968644.tar.gz" "${asio}" - substituteInPlace 3rdParty/SDL_audiolib/CMakeLists.txt --replace "https://github.com/realnc/SDL_audiolib/archive/aa79660eba4467a44f9dcaecf26b0f0a000abfd7.tar.gz" "${SDL_audiolib}" - substituteInPlace 3rdParty/simpleini/CMakeLists.txt --replace "https://github.com/brofield/simpleini/archive/7bca74f6535a37846162383e52071f380c99a43a.zip" "${simpleini}" + substituteInPlace 3rdParty/asio/CMakeLists.txt --replace "${asio.url}" "${asio}" + substituteInPlace 3rdParty/libmpq/CMakeLists.txt --replace "${libmpq.url}" "${libmpq}" + substituteInPlace 3rdParty/libsmackerdec/CMakeLists.txt --replace "${libsmackerdec.url}" "${libsmackerdec}" + substituteInPlace 3rdParty/libzt/CMakeLists.txt \ + --replace "GIT_REPOSITORY https://github.com/diasurgical/libzt.git" "" \ + --replace "GIT_TAG ${libzt.rev}" "SOURCE_DIR ${libzt}" + substituteInPlace 3rdParty/simpleini/CMakeLists.txt --replace "${simpleini.url}" "${simpleini}" ''; cmakeFlags = [ "-DBINARY_RELEASE=ON" "-DVERSION_NUM=${version}" - "-DPACKET_ENCRYPTION=OFF" # FIXME: build with libsodium - "-DDISABLE_ZERO_TIER=ON" # FIXME: build with libzt ]; nativeBuildInputs = [ @@ -77,9 +97,12 @@ stdenv.mkDerivation rec { ]; buildInputs = [ + bzip2 fmt libpng + libsodium SDL2 + SDL_audiolib SDL2_image ]; From 4202e1bf0b212fdb738de028d226d595a0c227be Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 20 Apr 2022 14:17:20 -0400 Subject: [PATCH 26/34] consul: 1.11.5 -> 1.12.0 --- pkgs/servers/consul/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/consul/default.nix b/pkgs/servers/consul/default.nix index 8eead6fd53a5..2c9382ddb9f7 100644 --- a/pkgs/servers/consul/default.nix +++ b/pkgs/servers/consul/default.nix @@ -2,7 +2,7 @@ buildGoModule rec { pname = "consul"; - version = "1.11.5"; + version = "1.12.0"; rev = "v${version}"; # Note: Currently only release tags are supported, because they have the Consul UI @@ -17,7 +17,7 @@ buildGoModule rec { owner = "hashicorp"; repo = pname; inherit rev; - sha256 = "sha256-3eZoRhPxPp2Yu7jR72j1nHRJ0k/oEtYbMDCR5pB9r54="; + sha256 = "sha256-O47s9eNZsqg0zpgoK2S4JvuOEqqVWvx8YmbQTvCw0Co="; }; passthru.tests.consul = nixosTests.consul; @@ -26,7 +26,7 @@ buildGoModule rec { # has a split module structure in one repo subPackages = ["." "connect/certgen"]; - vendorSha256 = "sha256-fgqIINd0kfzzVu4EhTuLoQN64WJyjvVWxryp93yUIac="; + vendorSha256 = "sha256-NRFGt8YA179C/OvyMGXYaZMUH685pJfdGB0AhMrCixs="; doCheck = false; From d002c9f58f2e63cb2548ee6649d9deb310788818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 18 Apr 2022 03:02:40 +0200 Subject: [PATCH 27/34] bottles: remove custom updater default fetchFromGitHub works like a charm --- pkgs/applications/misc/bottles/default.nix | 9 +-- pkgs/applications/misc/bottles/update.py | 65 ---------------------- 2 files changed, 1 insertion(+), 73 deletions(-) delete mode 100755 pkgs/applications/misc/bottles/update.py diff --git a/pkgs/applications/misc/bottles/default.nix b/pkgs/applications/misc/bottles/default.nix index f4e1e50347ac..e541e54aafec 100644 --- a/pkgs/applications/misc/bottles/default.nix +++ b/pkgs/applications/misc/bottles/default.nix @@ -21,15 +21,12 @@ in python3Packages.buildPythonApplication rec { pname = "bottles"; version = "2022.4.14-trento-1"; - sha256 = "16cb01fhxa64f8fadwpr0mawfmchig6xlbx20mz4q9yh5fnagywj"; - # Note: Update via pkgs/applications/misc/bottles/update.py - # mostly copypasted from pkgs/applications/networking/instant-messengers/telegram/tdesktop/update.py src = fetchFromGitHub { owner = "bottlesdevs"; repo = pname; rev = version; - inherit sha256; + sha256 = "16cb01fhxa64f8fadwpr0mawfmchig6xlbx20mz4q9yh5fnagywj"; }; postPatch = '' @@ -101,10 +98,6 @@ python3Packages.buildPythonApplication rec { makeWrapperArgs+=("''${gappsWrapperArgs[@]}") ''; - passthru = { - updateScript = ./update.py; - }; - meta = with lib; { description = "An easy-to-use wineprefix manager"; homepage = "https://usebottles.com/"; diff --git a/pkgs/applications/misc/bottles/update.py b/pkgs/applications/misc/bottles/update.py deleted file mode 100755 index 6adacd7d0e07..000000000000 --- a/pkgs/applications/misc/bottles/update.py +++ /dev/null @@ -1,65 +0,0 @@ -#! /usr/bin/env nix-shell -#! nix-shell -i python3 -p python3 nix nix-prefetch-git - -import fileinput -import json -import os -import re -import subprocess - -from datetime import datetime -from urllib.request import urlopen, Request - - -DIR = os.path.dirname(os.path.abspath(__file__)) -HEADERS = {'Accept': 'application/vnd.github.v3+json'} - - -def github_api_request(endpoint): - base_url = 'https://api.github.com/' - request = Request(base_url + endpoint, headers=HEADERS) - with urlopen(request) as http_response: - return json.loads(http_response.read().decode('utf-8')) - - -def get_commit_date(repo, sha): - url = f'https://api.github.com/repos/{repo}/commits/{sha}' - request = Request(url, headers=HEADERS) - with urlopen(request) as http_response: - commit = json.loads(http_response.read().decode()) - date = commit['commit']['committer']['date'].rstrip('Z') - date = datetime.fromisoformat(date).date().isoformat() - return 'unstable-' + date - - -def nix_prefetch_git(url, rev): - """Prefetches the requested Git revision (incl. submodules) of the given repository URL.""" - print(f'nix-prefetch-git {url} {rev}') - out = subprocess.check_output(['nix-prefetch-git', '--quiet', '--url', url, '--rev', rev, '--fetch-submodules']) - return json.loads(out)['sha256'] - - -def nix_prefetch_url(url, unpack=False): - """Prefetches the content of the given URL.""" - print(f'nix-prefetch-url {url}') - options = ['--type', 'sha256'] - if unpack: - options += ['--unpack'] - out = subprocess.check_output(['nix-prefetch-url'] + options + [url]) - return out.decode('utf-8').rstrip() - - -def update_file(relpath, version, sha256): - file_path = os.path.join(DIR, relpath) - with fileinput.FileInput(file_path, inplace=True) as f: - for line in f: - result = line - result = re.sub(r'^ version = ".+";', f' version = "{version}";', result) - result = re.sub(r'^ sha256 = ".+";', f' sha256 = "{sha256}";', result) - print(result, end='') - - -if __name__ == "__main__": - bottles_version = github_api_request('repos/bottlesdevs/Bottles/releases/latest')['tag_name'] - bottles_hash = nix_prefetch_git('https://github.com/bottlesdevs/Bottles.git', bottles_version) - update_file('default.nix', bottles_version, bottles_hash) From b587fa2897da0a53939d5994ee8a6f30c498e0c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 18 Apr 2022 03:03:29 +0200 Subject: [PATCH 28/34] bottles: move patching from preConfigure into postPatch --- pkgs/applications/misc/bottles/default.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/misc/bottles/default.nix b/pkgs/applications/misc/bottles/default.nix index e541e54aafec..45a91522a2ab 100644 --- a/pkgs/applications/misc/bottles/default.nix +++ b/pkgs/applications/misc/bottles/default.nix @@ -32,6 +32,11 @@ python3Packages.buildPythonApplication rec { postPatch = '' chmod +x build-aux/meson/postinstall.py patchShebangs build-aux/meson/postinstall.py + + substituteInPlace src/backend/wine/winecommand.py \ + --replace \ + 'self.__get_runner()' \ + '(lambda r: (f"${steam-run}/bin/steam-run {r}", r)[r == "wine" or r == "wine64"])(self.__get_runner())' ''; nativeBuildInputs = [ @@ -86,14 +91,6 @@ python3Packages.buildPythonApplication rec { strictDeps = false; # broken with gobject-introspection setup hook, see https://github.com/NixOS/nixpkgs/issues/56943 dontWrapGApps = true; # prevent double wrapping - preConfigure = '' - patchShebangs build-aux/meson/postinstall.py - substituteInPlace src/backend/wine/winecommand.py \ - --replace \ - 'self.__get_runner()' \ - '(lambda r: (f"${steam-run}/bin/steam-run {r}", r)[r == "wine" or r == "wine64"])(self.__get_runner())' - ''; - preFixup = '' makeWrapperArgs+=("''${gappsWrapperArgs[@]}") ''; From 5a9a3c221fe19535d6da88e8aec65bd4605503a5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 20 Apr 2022 21:03:10 +0200 Subject: [PATCH 29/34] home-assistant: 2022.4.5 -> 2022.4.6 https://github.com/home-assistant/core/releases/tag/2022.4.6 --- pkgs/servers/home-assistant/component-packages.nix | 5 ++++- pkgs/servers/home-assistant/default.nix | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index e486efad5b41..90a7259afe65 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2,7 +2,7 @@ # Do not edit! { - version = "2022.4.5"; + version = "2022.4.6"; components = { "abode" = ps: with ps; [ abodepy @@ -1244,7 +1244,10 @@ "input_text" = ps: with ps; [ ]; "insteon" = ps: with ps; [ + aiohttp-cors pyinsteon + pyserial + pyudev ]; "integration" = ps: with ps; [ ]; diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 3b5440c8898a..fbaba057ca47 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -168,7 +168,7 @@ let extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs); # Don't forget to run parse-requirements.py after updating - hassVersion = "2022.4.5"; + hassVersion = "2022.4.6"; in python.pkgs.buildPythonApplication rec { pname = "homeassistant"; @@ -186,7 +186,7 @@ in python.pkgs.buildPythonApplication rec { owner = "home-assistant"; repo = "core"; rev = version; - hash = "sha256-rt1hNkjt000Wd/Wg4ThK/GJxQ/q7wysmSlzrvc4joCE="; + hash = "sha256-f2cPkORh6DoNjqZFz7XjxQdZwej3k+8NtZTstYIbrc4="; }; # leave this in, so users don't have to constantly update their downstream patch handling From df873bb84f6212a30c25eaee662095d615a35ae0 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 20 Apr 2022 21:18:39 +0200 Subject: [PATCH 30/34] awscli2: use python-dateutil directly --- pkgs/tools/admin/awscli2/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/admin/awscli2/default.nix b/pkgs/tools/admin/awscli2/default.nix index 25d47dbb3894..061981672d95 100644 --- a/pkgs/tools/admin/awscli2/default.nix +++ b/pkgs/tools/admin/awscli2/default.nix @@ -52,7 +52,7 @@ with py.pkgs; buildPythonApplication rec { rsa ruamel-yaml wcwidth - dateutil + python-dateutil jmespath urllib3 ]; From b1eef8c0f0d3ca1263590a16a36b1d1832b5d4f1 Mon Sep 17 00:00:00 2001 From: StridBot Date: Wed, 20 Apr 2022 21:50:03 +0200 Subject: [PATCH 31/34] ocamlPackages.toml: 6.0.0 -> 7.0.0 (#165676) --- pkgs/development/ocaml-modules/toml/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/toml/default.nix b/pkgs/development/ocaml-modules/toml/default.nix index dd765e388235..b79d80016d9c 100644 --- a/pkgs/development/ocaml-modules/toml/default.nix +++ b/pkgs/development/ocaml-modules/toml/default.nix @@ -4,15 +4,13 @@ buildDunePackage rec { pname = "toml"; - version = "6.0.0"; - - useDune2 = true; + version = "7.0.0"; src = fetchFromGitHub { owner = "ocaml-toml"; repo = "to.ml"; rev = version; - sha256 = "08ywzqckllvwawl1wpgg7qzvx6jhq7d6vysa0d5hj7qdwq213ggm"; + sha256 = "sha256-VEZQTFPwAGShCBGbKUiNOIY1zA/JdTpXU0ZIGNWopnQ="; }; nativeBuildInputs = [ menhir ]; From 7e69870247ae3c8e0782c7bc0c19c96427122c4c Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 21 Apr 2022 00:22:47 +0200 Subject: [PATCH 32/34] Revert "wpa_supplicant: fix withDbus=false build" This reverts commit e357ea6b01b509a48f1e67643ff74c1d8d4e8a08. --- pkgs/os-specific/linux/wpa_supplicant/default.nix | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkgs/os-specific/linux/wpa_supplicant/default.nix b/pkgs/os-specific/linux/wpa_supplicant/default.nix index eb345e24b7e1..1d58d47cf663 100644 --- a/pkgs/os-specific/linux/wpa_supplicant/default.nix +++ b/pkgs/os-specific/linux/wpa_supplicant/default.nix @@ -72,16 +72,6 @@ stdenv.mkDerivation rec { CONFIG_CTRL_IFACE_DBUS=y CONFIG_CTRL_IFACE_DBUS_NEW=y CONFIG_CTRL_IFACE_DBUS_INTRO=y - '' - # Upstream uses conditionals based on ifdef, so opposite of =y is - # not =n, as one may expect, but undefine. People, why don't you - # just use KBuild and stop reinventing the wheel? - # - # This config is sourced into makefile. - + optionalString (!withDbus) '' - undefine CONFIG_CTRL_IFACE_DBUS - undefine CONFIG_CTRL_IFACE_DBUS_NEW - undefine CONFIG_CTRL_IFACE_DBUS_INTRO '' + (if withReadline then '' CONFIG_READLINE=y '' else '' From 272876edaee628787b4dd5b3715e7a5e076a8176 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 20 Apr 2022 19:54:39 -0400 Subject: [PATCH 33/34] ionide.ionide-fsharp: 5.11.0 -> 6.0.1 (#168874) * ionide.ionide-fsharp: 5.11.0 -> 6.0.0 * doc/release-notes: document .NET 6 requirement for Ionide * ionide: 6.0.0 -> 6.0.1 --- nixos/doc/manual/from_md/release-notes/rl-2205.section.xml | 6 ++++++ nixos/doc/manual/release-notes/rl-2205.section.md | 2 ++ pkgs/applications/editors/vscode/extensions/default.nix | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml index c8a942f2abb9..c2cc42b708ff 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml @@ -2150,6 +2150,12 @@ pam-ussh. + + + The vscode-extensions.ionide.ionide-fsharp + package has been updated to 6.0.0 and now requires .NET 6.0. + + The zrepl package has been updated from diff --git a/nixos/doc/manual/release-notes/rl-2205.section.md b/nixos/doc/manual/release-notes/rl-2205.section.md index 809f6f9068eb..530a73941391 100644 --- a/nixos/doc/manual/release-notes/rl-2205.section.md +++ b/nixos/doc/manual/release-notes/rl-2205.section.md @@ -774,6 +774,8 @@ In addition to numerous new and upgraded packages, this release has the followin - `security.pam.ussh` has been added, which allows authorizing PAM sessions based on SSH _certificates_ held within an SSH agent, using [pam-ussh](https://github.com/uber/pam-ussh). +- The `vscode-extensions.ionide.ionide-fsharp` package has been updated to 6.0.0 and now requires .NET 6.0. + - The `zrepl` package has been updated from 0.4.0 to 0.5: - The RPC protocol version was bumped; all zrepl daemons in a setup must be updated and restarted before replication can resume. diff --git a/pkgs/applications/editors/vscode/extensions/default.nix b/pkgs/applications/editors/vscode/extensions/default.nix index ab5250a48e68..125751b5a7f0 100644 --- a/pkgs/applications/editors/vscode/extensions/default.nix +++ b/pkgs/applications/editors/vscode/extensions/default.nix @@ -1123,8 +1123,8 @@ let mktplcRef = { name = "Ionide-fsharp"; publisher = "Ionide"; - version = "5.10.1"; - sha256 = "sha256-LkWWgyh4khPyUgekVeO8ZzPK+1gTrS8d9Yz6/kHomr8="; + version = "6.0.1"; + sha256 = "sha256-1W1qKnjmyK80np+J6S/nku3QJGypxYnuE0BPw8Onzas="; }; meta = with lib; { changelog = "https://marketplace.visualstudio.com/items/Ionide.Ionide-fsharp/changelog"; From c30b0af1bd6909d667a69cd0e15c3e112366c693 Mon Sep 17 00:00:00 2001 From: Haz Date: Thu, 21 Apr 2022 01:57:19 +0200 Subject: [PATCH 34/34] bitmask-vpn: install the app's icon (#168904) * bitmask-vpn: install the app's icon * bitmask-vpn: fix the desktop entry path * bitmask-vpn: use the unused variable `pname` --- pkgs/tools/networking/bitmask-vpn/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/bitmask-vpn/default.nix b/pkgs/tools/networking/bitmask-vpn/default.nix index 35f2e801f531..8924924448e4 100644 --- a/pkgs/tools/networking/bitmask-vpn/default.nix +++ b/pkgs/tools/networking/bitmask-vpn/default.nix @@ -78,6 +78,9 @@ buildGoModule rec { substituteInPlace providers/vendor.conf \ --replace "provider = riseup" "provider = ${provider}" + substituteInPlace branding/templates/debian/app.desktop-template \ + --replace "Icon=icon" "Icon=${pname}" + patchShebangs gui/build.sh wrapPythonProgramsIn branding/scripts '' + lib.optionalString stdenv.isLinux '' @@ -130,11 +133,12 @@ buildGoModule rec { ''; postInstall = '' - install -m 755 -D -t $out/bin build/qt/release/${provider}-vpn + install -m 755 -D -t $out/bin build/qt/release/${pname} VERSION=${version} VENDOR_PATH=providers branding/scripts/generate-debian branding/templates/debian/data.json (cd branding/templates/debian && ${python3Packages.python}/bin/python3 generate.py) - install -m 444 -D branding/templates/debian/app.desktop $out/share/applications/${provider}-vpn.desktop + install -m 444 -D branding/templates/debian/app.desktop $out/share/applications/${pname}.desktop + install -m 444 -D providers/${provider}/assets/icon.svg $out/share/icons/hicolor/scalable/apps/${pname}.svg '' + lib.optionalString stdenv.isLinux '' install -m 444 -D -t $out/share/polkit-1/actions ${bitmask-root}/share/polkit-1/actions/se.leap.bitmask.policy ''; @@ -154,7 +158,7 @@ buildGoModule rec { a variety of trusted service provider all from one app. Current providers include Riseup Networks and The Calyx Institute, where the former is default. - The ${provider}-vpn executable should appear + The ${pname} executable should appear in your desktop manager's XDG menu or could be launch in a terminal to get an execution log. A new icon should then appear in your systray to control the VPN and configure some options.