From 08efd19bd34798c47f558b2c2c31034b64458250 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 3 Apr 2022 20:55:40 +0000 Subject: [PATCH 01/34] stm32flash: 0.6 -> 0.7 --- pkgs/development/embedded/stm32/stm32flash/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/embedded/stm32/stm32flash/default.nix b/pkgs/development/embedded/stm32/stm32flash/default.nix index 52b301154993..d6e8d4598960 100644 --- a/pkgs/development/embedded/stm32/stm32flash/default.nix +++ b/pkgs/development/embedded/stm32/stm32flash/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "stm32flash"; - version = "0.6"; + version = "0.7"; src = fetchurl { url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz"; - sha256 = "sha256-7ptA1NPlzSi5k+CK4qLDxVm2vqhzDNfh1Acn3tsd2gk="; + sha256 = "sha256-xMnNi+x52mOxEdFXE+9cws2UfeykEdNdbjBl4ifcQUo="; }; buildFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; From 26caa23ad34e0dd4dc1c1acdcef58f35e028e7d8 Mon Sep 17 00:00:00 2001 From: Yurii Matsiuk Date: Fri, 8 Apr 2022 07:46:04 +0200 Subject: [PATCH 02/34] obs-studio: 27.2.1 -> 27.2.4 --- pkgs/applications/video/obs-studio/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/obs-studio/default.nix b/pkgs/applications/video/obs-studio/default.nix index 22c206dfe037..83514923331a 100644 --- a/pkgs/applications/video/obs-studio/default.nix +++ b/pkgs/applications/video/obs-studio/default.nix @@ -46,13 +46,13 @@ let in mkDerivation rec { pname = "obs-studio"; - version = "27.2.1"; + version = "27.2.4"; src = fetchFromGitHub { owner = "obsproject"; repo = "obs-studio"; rev = version; - sha256 = "sha256-RHPzSw7wjnAHk90N7g53LyIH3ozO/hyZV5hVZpZe+Ow="; + sha256 = "sha256-OiSejQovSmhItrnrQlcVp9PCDRgAhuxTinSpXbH8bo0="; fetchSubmodules = true; }; From 6592797222ea9b4c91b642b31322c57e9f8a2ca5 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 16 Apr 2022 04:54:01 +0000 Subject: [PATCH 03/34] hydrus: 480 -> 481 --- pkgs/applications/graphics/hydrus/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/graphics/hydrus/default.nix b/pkgs/applications/graphics/hydrus/default.nix index 8e74f2a92785..ef9bc61d57ca 100644 --- a/pkgs/applications/graphics/hydrus/default.nix +++ b/pkgs/applications/graphics/hydrus/default.nix @@ -10,14 +10,14 @@ python3Packages.buildPythonPackage rec { pname = "hydrus"; - version = "480"; + version = "481"; format = "other"; src = fetchFromGitHub { owner = "hydrusnetwork"; repo = "hydrus"; - rev = "v${version}"; - sha256 = "sha256-TZQY9wFXJFJtMAw2N+mlfVymewL96rn0Lza9jnDOGNA="; + rev = "refs/tags/v${version}"; + sha256 = "sha256-6I4vLJj5WzC2bCtQYnoLGOL6N6pKFU+PZQqaOqhZhWU="; }; nativeBuildInputs = [ From 3396c96e4b884f9d3cba6ad37da30e83a7c52e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Sat, 16 Apr 2022 21:31:58 +0100 Subject: [PATCH 04/34] nixos/stage-1-init: Set host id for ZFS --- nixos/modules/tasks/network-interfaces.nix | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix index 8ca4ad7b7d86..d09e9b99248d 100644 --- a/nixos/modules/tasks/network-interfaces.nix +++ b/nixos/modules/tasks/network-interfaces.nix @@ -403,6 +403,15 @@ let ''; + hostidFile = pkgs.runCommand "gen-hostid" { preferLocalBuild = true; } '' + hi="${cfg.hostId}" + ${if pkgs.stdenv.isBigEndian then '' + echo -ne "\x''${hi:0:2}\x''${hi:2:2}\x''${hi:4:2}\x''${hi:6:2}" > $out + '' else '' + echo -ne "\x''${hi:6:2}\x''${hi:4:2}\x''${hi:2:2}\x''${hi:0:2}" > $out + ''} + ''; + in { @@ -1383,16 +1392,8 @@ in domainname "${cfg.domain}" ''; - environment.etc.hostid = mkIf (cfg.hostId != null) - { source = pkgs.runCommand "gen-hostid" { preferLocalBuild = true; } '' - hi="${cfg.hostId}" - ${if pkgs.stdenv.isBigEndian then '' - echo -ne "\x''${hi:0:2}\x''${hi:2:2}\x''${hi:4:2}\x''${hi:6:2}" > $out - '' else '' - echo -ne "\x''${hi:6:2}\x''${hi:4:2}\x''${hi:2:2}\x''${hi:0:2}" > $out - ''} - ''; - }; + environment.etc.hostid = mkIf (cfg.hostId != null) { source = hostidFile; }; + boot.initrd.systemd.contents."/etc/hostid" = mkIf (cfg.hostId != null) { source = hostidFile; }; # static hostname configuration needed for hostnamectl and the # org.freedesktop.hostname1 dbus service (both provided by systemd) From d45c165216b77630dca2d71433bc39d689c15d87 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Sun, 17 Apr 2022 15:52:19 +0100 Subject: [PATCH 05/34] irpf: 2022-1.0 -> 2022-1.3 --- pkgs/applications/finance/irpf/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/finance/irpf/default.nix b/pkgs/applications/finance/irpf/default.nix index e7ac78da18ef..7618c3ddc271 100644 --- a/pkgs/applications/finance/irpf/default.nix +++ b/pkgs/applications/finance/irpf/default.nix @@ -10,13 +10,13 @@ stdenvNoCC.mkDerivation rec { pname = "irpf"; - version = "2022-1.0"; + version = "2022-1.3"; src = let year = lib.head (lib.splitVersion version); in fetchzip { url = "https://downloadirpf.receita.fazenda.gov.br/irpf/${year}/irpf/arquivos/IRPF${version}.zip"; - sha256 = "0h8f51ilvg7m6hlx0y5mpxhac90p32ksbrffw0hxdqbilgjz1s68"; + sha256 = "sha256-nAmcVPSnMIWuq2zj1xq/657RmzaSmdtxlI9cp9v5P0A="; }; nativeBuildInputs = [ unzip makeWrapper copyDesktopItems ]; From e1bbc6ca9cf832d10acda995fba0be4ab559374d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 17 Apr 2022 21:03:39 +0200 Subject: [PATCH 06/34] gitleaks: 8.6.1 -> 8.7.0 --- pkgs/tools/security/gitleaks/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/gitleaks/default.nix b/pkgs/tools/security/gitleaks/default.nix index 626afe7706a7..d8df6c98c1c2 100644 --- a/pkgs/tools/security/gitleaks/default.nix +++ b/pkgs/tools/security/gitleaks/default.nix @@ -5,16 +5,16 @@ buildGoModule rec { pname = "gitleaks"; - version = "8.6.1"; + version = "8.7.0"; src = fetchFromGitHub { owner = "zricethezav"; repo = pname; rev = "v${version}"; - sha256 = "sha256-rXnP9vU8kHkMPl7Xur4pf3rvw12ADtkZxZnBO1LaFzs="; + sha256 = "sha256-4ED7xmwbFXs6OnCtG+xrY50kBsgESxw/a8slhWOo+30="; }; - vendorSha256 = "sha256-gelUrZOYiThO0+COIv9cOgho/tjv7ZqSKOktWIbdADw="; + vendorSha256 = "sha256-ls6zuouCAmE3y9011CK1YADy/v87Ft8tb85LyJ4bEF4="; ldflags = [ "-s" From ff4656d89bb2b4fb8643585da5a54f1a3a2d4af1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 17 Apr 2022 21:16:58 +0200 Subject: [PATCH 07/34] python3Packages.lightwave2: 0.8.1 -> 0.8.4 --- pkgs/development/python-modules/lightwave2/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/lightwave2/default.nix b/pkgs/development/python-modules/lightwave2/default.nix index f840a2186cfb..4501eb664e90 100644 --- a/pkgs/development/python-modules/lightwave2/default.nix +++ b/pkgs/development/python-modules/lightwave2/default.nix @@ -7,14 +7,14 @@ buildPythonPackage rec { pname = "lightwave2"; - version = "0.8.1"; + version = "0.8.4"; format = "setuptools"; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - sha256 = "sha256-UULOQawsY2N0xxYlgIZKs8Xyl0XDqC6fSSKvo8ZBEcY="; + sha256 = "sha256-WB5U8VjUKx2hCcJX2JeFgEiwzweGzROEK3pox3l/wrE="; }; propagatedBuildInputs = [ From 73481d9e3823fa07605f0c6db1ad309362aa2818 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 17 Apr 2022 19:39:06 +0000 Subject: [PATCH 08/34] python310Packages.pytelegrambotapi: 4.4.0 -> 4.4.1 --- pkgs/development/python-modules/pyTelegramBotAPI/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyTelegramBotAPI/default.nix b/pkgs/development/python-modules/pyTelegramBotAPI/default.nix index 391afabf931f..4073d951780b 100644 --- a/pkgs/development/python-modules/pyTelegramBotAPI/default.nix +++ b/pkgs/development/python-modules/pyTelegramBotAPI/default.nix @@ -2,11 +2,11 @@ buildPythonPackage rec { pname = "pyTelegramBotAPI"; - version = "4.4.0"; + version = "4.4.1"; src = fetchPypi { inherit pname version; - sha256 = "sha256-5vIjVqvr/+Cok9z3L+CaDIve2tb0mMVaMMPdMs5Ijmo="; + sha256 = "sha256-3Qppp/UDKiGChnvMOgW8EKygI75gYzv37c0ctExmK+g="; }; propagatedBuildInputs = [ aiohttp requests ]; From 88c57c4c4a6e8afced78c231525ad867499661ba Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 18 Apr 2022 06:38:47 +0000 Subject: [PATCH 09/34] python310Packages.pg8000: 1.24.2 -> 1.25.0 --- pkgs/development/python-modules/pg8000/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pg8000/default.nix b/pkgs/development/python-modules/pg8000/default.nix index 29ab17c8ba83..2b55ced11711 100644 --- a/pkgs/development/python-modules/pg8000/default.nix +++ b/pkgs/development/python-modules/pg8000/default.nix @@ -8,14 +8,14 @@ buildPythonPackage rec { pname = "pg8000"; - version = "1.24.2"; + version = "1.25.0"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-q3/ASKVvysTZwkeyKoNW5gjdmgPUg18ch/ui5PJihKU="; + sha256 = "sha256-i8/HmxxqoFj1OEwtXjF/u+yOmQ33RJbVHYmx78/d9Ng="; }; propagatedBuildInputs = [ From eb57cadcaa6fdfd865e8c1f6bdaeda0031589b27 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 18 Apr 2022 07:33:01 +0000 Subject: [PATCH 10/34] open-watcom-v2-unwrapped: unstable-2022-03-14 -> unstable-2022-04-18 --- pkgs/development/compilers/open-watcom/v2.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/open-watcom/v2.nix b/pkgs/development/compilers/open-watcom/v2.nix index dc2af6e7835d..79973f761c5d 100644 --- a/pkgs/development/compilers/open-watcom/v2.nix +++ b/pkgs/development/compilers/open-watcom/v2.nix @@ -12,14 +12,14 @@ stdenv.mkDerivation rec { pname = "open-watcom-v2"; - version = "unstable-2022-03-14"; + version = "unstable-2022-04-18"; name = "${pname}-unwrapped-${version}"; src = fetchFromGitHub { owner = "open-watcom"; repo = "open-watcom-v2"; - rev = "22627ccc1bd3de70aff9ac056e0dc9ecf7f7b6ec"; - sha256 = "khy/fhmQjTGKfx6iOUBt+ySwpEx0df/7meyNvBnJAPY="; + rev = "3e762ff7342f9d82b7d8df54db9558158332ac02"; + sha256 = "KMFvLIUqor2wxeO03Uh/jycvnCTOd1ySxYTq4PJ0tHk="; }; postPatch = '' From 51f68dfddc839f9d62d5a7cee5f933d422c7a83f Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Mon, 18 Apr 2022 12:48:18 +0300 Subject: [PATCH 11/34] =?UTF-8?q?sile:=200.12.4=20=E2=86=92=200.12.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/tools/typesetting/sile/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/typesetting/sile/default.nix b/pkgs/tools/typesetting/sile/default.nix index fc391ea8539a..4bff8ab3ae30 100644 --- a/pkgs/tools/typesetting/sile/default.nix +++ b/pkgs/tools/typesetting/sile/default.nix @@ -38,11 +38,11 @@ in stdenv.mkDerivation rec { pname = "sile"; - version = "0.12.4"; + version = "0.12.5"; src = fetchurl { url = "https://github.com/sile-typesetter/sile/releases/download/v${version}/${pname}-${version}.tar.xz"; - sha256 = "1n46q7xwawz5nipmyz4gy0njaq5svidi9r54wxry6h95b70ax3r2"; + sha256 = "0z9wdiqwarysh3lhxss3w53vq58ml46bdi9ymr853kfl7m4gz5yy"; }; configureFlags = [ From 73c7bab23a5768c2f862a2cc4842a77da9ca9976 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 18 Apr 2022 10:27:47 +0000 Subject: [PATCH 12/34] python310Packages.azure-mgmt-containerservice: 18.0.0 -> 19.0.0 --- .../python-modules/azure-mgmt-containerservice/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-containerservice/default.nix b/pkgs/development/python-modules/azure-mgmt-containerservice/default.nix index 00e24a2d9f18..4a502ac65dbf 100644 --- a/pkgs/development/python-modules/azure-mgmt-containerservice/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-containerservice/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "azure-mgmt-containerservice"; - version = "18.0.0"; + version = "19.0.0"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -19,7 +19,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "sha256-b4AwcnSp6JOtG8VaBbUN7d/NIhHN2TPnyjzCUVhMOzg="; + sha256 = "sha256-UHkSUoNzXWomr4vczGRRXVJplVRfqDjwFczkOP2Jwsc="; }; propagatedBuildInputs = [ From 1acc9752da3892280bfe16388e4dc337c8a432aa Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 18 Apr 2022 10:33:30 +0000 Subject: [PATCH 13/34] python310Packages.azure-mgmt-datafactory: 2.3.0 -> 2.4.0 --- .../python-modules/azure-mgmt-datafactory/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-datafactory/default.nix b/pkgs/development/python-modules/azure-mgmt-datafactory/default.nix index eed367c2206d..7cff53be6812 100644 --- a/pkgs/development/python-modules/azure-mgmt-datafactory/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-datafactory/default.nix @@ -11,12 +11,12 @@ buildPythonPackage rec { pname = "azure-mgmt-datafactory"; - version = "2.3.0"; + version = "2.4.0"; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "sha256-pjBjFPkKhKd8XI6wmzX/rAssHINMzDAZa+XRqG/pLYo="; + sha256 = "sha256-oCDh7tWsBA6z/auQm3AtkRzT9IUrq8HJ+R//HDJ+1nw="; }; propagatedBuildInputs = [ From a62be8ad084783d5cf87980c260c81069fc2e4af Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 18 Apr 2022 01:16:39 +0200 Subject: [PATCH 14/34] batman-adv: 2021.4 -> 2022.0 https://www.open-mesh.org/news/107 --- pkgs/os-specific/linux/batman-adv/default.nix | 20 ++++++++++++++++++- pkgs/os-specific/linux/batman-adv/version.nix | 8 ++++---- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/pkgs/os-specific/linux/batman-adv/default.nix b/pkgs/os-specific/linux/batman-adv/default.nix index 123c42e83971..79dc48a6ea9c 100644 --- a/pkgs/os-specific/linux/batman-adv/default.nix +++ b/pkgs/os-specific/linux/batman-adv/default.nix @@ -1,4 +1,9 @@ -{ lib, stdenv, fetchurl, kernel }: +{ lib +, stdenv +, fetchurl +, fetchpatch +, kernel +}: let cfg = import ./version.nix; in @@ -11,6 +16,19 @@ stdenv.mkDerivation rec { sha256 = cfg.sha256.${pname}; }; + patches = [ + # batman-adv: make mc_forwarding atomic + (fetchpatch { + url = "https://git.open-mesh.org/batman-adv.git/blobdiff_plain/c142c00f6b1a2ad5f5d74202fb1249e6a6575407..56db7c0540e733a1f063ccd6bab1b537a80857eb:/net/batman-adv/multicast.c"; + hash = "sha256-2zXg8mZ3/iK9E/kyn+wHSrlLq87HuK72xuXojQ9KjkI="; + }) + # batman-adv: compat: Add atomic mc_fowarding support for stable kernels + (fetchpatch { + url = "https://git.open-mesh.org/batman-adv.git/blobdiff_plain/f07a0c37ab278fb6a9e95cad89429b1282f1ab59..350adcaec82fbaa358a2406343b6130ac8dad126:/net/batman-adv/multicast.c"; + hash = "sha256-r/Xp5bmDo9GVfAF6bn2Xq+cOq5ddQe+D5s/h37uI6bM="; + }) + ]; + nativeBuildInputs = kernel.moduleBuildDependencies; makeFlags = kernel.makeFlags ++ [ "KERNELPATH=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" diff --git a/pkgs/os-specific/linux/batman-adv/version.nix b/pkgs/os-specific/linux/batman-adv/version.nix index 048318e3e33a..12a7f26a336e 100644 --- a/pkgs/os-specific/linux/batman-adv/version.nix +++ b/pkgs/os-specific/linux/batman-adv/version.nix @@ -1,9 +1,9 @@ { - version = "2021.4"; + version = "2022.0"; sha256 = { - batman-adv = "06zbyf8s7njn6wdm1fdq3kl8kx1vx4spxkgiy7dx0pq4c3qs5xyg"; - alfred = "15fbw80ix95zy8i4c6acm1631vxlz2hakjv4zv5wig74bp2bcyac"; - batctl = "1ryqz90av2p5pgmmpi1afmycd18zhpwz1i4f7r0s359jis86xndn"; + batman-adv = "sha256-STOHBbwgdwmshNdmaI5wJXEAnIJ8CjIHiOpR+4h3FKo="; + alfred = "sha256-q7odrGHsz81jKeczHQVV/syTd2D7NsbPVc5sHXUc/Zg="; + batctl = "sha256-iTlm+aLWpQch3hJM5i2l096cIOBVdspIK8VwTMWm9z0="; }; } From eb862d7d4fbabb4fd05524963a8f7830e5044fbc Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 18 Apr 2022 09:32:32 +0000 Subject: [PATCH 15/34] python310Packages.enaml: 0.14.1 -> 0.15.0 This is the first version using setuptools-scm. Because we don't keep enough git metadata to determine the version, we use SETUPTOOLS_SCM_PRETEND_VERSION instead. https://github.com/NixOS/nixpkgs/issues/41136 --- pkgs/development/python-modules/enaml/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/enaml/default.nix b/pkgs/development/python-modules/enaml/default.nix index 9e6a910b2ba9..ccd8bb497d10 100644 --- a/pkgs/development/python-modules/enaml/default.nix +++ b/pkgs/development/python-modules/enaml/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub +, setuptools-scm , atom , ply , kiwisolver @@ -12,13 +13,13 @@ buildPythonPackage rec { pname = "enaml"; - version = "0.14.1"; + version = "0.15.0"; src = fetchFromGitHub { owner = "nucleic"; repo = pname; - rev = version; - sha256 = "sha256-QfI7cwl2c5HOlFNNdG+oOv48X9jJZnZNU/kWgutWe6k="; + rev = "refs/tags/${version}"; + sha256 = "sha256-xSMgT8VooDS5kvf4BCcVbv/MNfRDTVnPKU3Ou+/Gq7I="; }; # qt bindings cannot be found during tests @@ -39,6 +40,7 @@ buildPythonPackage rec { "enaml.workbench" ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ atom ply @@ -48,6 +50,7 @@ buildPythonPackage rec { cppy bytecode ]; + SETUPTOOLS_SCM_PRETEND_VERSION = version; meta = with lib; { homepage = "https://github.com/nucleic/enaml"; From 018720239cb4fdc026dd16921ece5fec58855c0c Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Mon, 18 Apr 2022 13:25:54 +0100 Subject: [PATCH 16/34] irpf: update description --- pkgs/applications/finance/irpf/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/finance/irpf/default.nix b/pkgs/applications/finance/irpf/default.nix index 7618c3ddc271..a5f90026af79 100644 --- a/pkgs/applications/finance/irpf/default.nix +++ b/pkgs/applications/finance/irpf/default.nix @@ -57,7 +57,12 @@ stdenvNoCC.mkDerivation rec { ''; meta = with lib; { - description = "Programa Oficial da Receita para elaboração do IRPF"; + description = "Brazillian government application for reporting income tax"; + longDescription = '' + Brazillian government application for reporting income tax. + + IRFP - Imposto de Renda Pessoa Física - Receita Federal do Brasil. + ''; homepage = "https://www.gov.br/receitafederal/pt-br"; license = licenses.unfree; platforms = platforms.all; From 73a22ba300583b1e5247bac9778d7653d21e6ad3 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 8 Apr 2022 08:32:52 +0200 Subject: [PATCH 17/34] =?UTF-8?q?ocamlPackages.coin:=200.1.3=20=E2=86=92?= =?UTF-8?q?=200.1.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/coin/default.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pkgs/development/ocaml-modules/coin/default.nix b/pkgs/development/ocaml-modules/coin/default.nix index f2e0919bdee4..0ff2ce940410 100644 --- a/pkgs/development/ocaml-modules/coin/default.nix +++ b/pkgs/development/ocaml-modules/coin/default.nix @@ -1,20 +1,19 @@ { buildDunePackage -, fetchzip +, fetchurl , findlib , lib -, menhir , ocaml , re }: buildDunePackage rec { pname = "coin"; - version = "0.1.3"; + version = "0.1.4"; minimalOCamlVersion = "4.03"; - src = fetchzip { - url = "https://github.com/mirage/coin/releases/download/v${version}/coin-v${version}.tbz"; - sha256 = "06bfidvglyp9hzvr2xwbdx8wf26is2xrzc31fldzjf5ab0vd076p"; + src = fetchurl { + url = "https://github.com/mirage/coin/releases/download/v${version}/coin-${version}.tbz"; + sha256 = "sha256:0069qqswd1ik5ay3d5q1v1pz0ql31kblfsnv0ax0z8jwvacp3ack"; }; postPatch = '' @@ -22,9 +21,7 @@ buildDunePackage rec { 'ocaml} -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib ' ''; - useDune2 = true; - - nativeBuildInputs = [ menhir findlib ]; + nativeBuildInputs = [ findlib ]; buildInputs = [ re ]; strictDeps = true; From 0bcf4a81c8886b57356e99b0f094e821fd0a06ab Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sat, 9 Oct 2021 14:44:12 +0200 Subject: [PATCH 18/34] ocamlPackages.bjack: init at 0.1.6 --- .../ocaml-modules/bjack/default.nix | 25 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/ocaml-modules/bjack/default.nix diff --git a/pkgs/development/ocaml-modules/bjack/default.nix b/pkgs/development/ocaml-modules/bjack/default.nix new file mode 100644 index 000000000000..fa03194bde4a --- /dev/null +++ b/pkgs/development/ocaml-modules/bjack/default.nix @@ -0,0 +1,25 @@ +{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, libsamplerate, libjack2 }: + +buildDunePackage rec { + pname = "bjack"; + version = "0.1.6"; + + useDune2 = true; + + src = fetchFromGitHub { + owner = "savonet"; + repo = "ocaml-bjack"; + rev = "v${version}"; + sha256 = "1gf31a8i9byp6npn0x6gydcickn6sf5dnzmqr2c1b9jn2nl7334c"; + }; + + buildInputs = [ dune-configurator ]; + propagatedBuildInputs = [ libsamplerate libjack2 ]; + + meta = with lib; { + homepage = "https://github.com/savonet/ocaml-bjack"; + description = "Blocking API for the jack audio connection kit"; + license = licenses.lgpl21Only; + maintainers = with maintainers; [ dandellion ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 17015119cd92..d031542ff86d 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -78,6 +78,8 @@ let bitv = callPackage ../development/ocaml-modules/bitv { }; + bjack = callPackage ../development/ocaml-modules/bjack { }; + bls12-381 = callPackage ../development/ocaml-modules/bls12-381 { }; bls12-381-gen = callPackage ../development/ocaml-modules/bls12-381/gen.nix { }; bls12-381-unix = callPackage ../development/ocaml-modules/bls12-381/unix.nix { }; From fd0b06056033fd45dd40edd71173afdd082fc692 Mon Sep 17 00:00:00 2001 From: "Aaron L. Zeng" Date: Mon, 28 Mar 2022 02:02:57 -0400 Subject: [PATCH 19/34] ocamlPackages.gen_js_api: init at 1.0.9 I chose 1.0.9 instead of the latest 1.1.0, to avoid having to upgrade js_of_ocaml first. --- .../ocaml-modules/gen_js_api/default.nix | 41 +++++++++++++++++++ .../ocaml-modules/gen_js_api/ojs.nix | 21 ++++++++++ pkgs/top-level/ocaml-packages.nix | 4 ++ 3 files changed, 66 insertions(+) create mode 100644 pkgs/development/ocaml-modules/gen_js_api/default.nix create mode 100644 pkgs/development/ocaml-modules/gen_js_api/ojs.nix diff --git a/pkgs/development/ocaml-modules/gen_js_api/default.nix b/pkgs/development/ocaml-modules/gen_js_api/default.nix new file mode 100644 index 000000000000..e0474cdac6a8 --- /dev/null +++ b/pkgs/development/ocaml-modules/gen_js_api/default.nix @@ -0,0 +1,41 @@ +{ buildDunePackage +, lib +, ppxlib +, fetchFromGitHub +, ojs +, js_of_ocaml-compiler +, nodejs +}: + +buildDunePackage rec { + pname = "gen_js_api"; + version = "1.0.9"; + + src = fetchFromGitHub { + owner = "LexiFi"; + repo = pname; + rev = "v${version}"; + sha256 = "1qx6if1avr484bl9x1h0cksdc6gqw5i4pwzdr27h46hppnnvi8y8"; + }; + + minimalOCamlVersion = "4.08"; + + propagatedBuildInputs = [ ojs ppxlib ]; + checkInputs = [ js_of_ocaml-compiler nodejs ]; + doCheck = true; + + meta = { + homepage = "https://github.com/LexiFi/gen_js_api"; + description = "Easy OCaml bindings for JavaScript libraries"; + longDescription = '' + gen_js_api aims at simplifying the creation of OCaml bindings for + JavaScript libraries. Authors of bindings write OCaml signatures for + JavaScript libraries and the tool generates the actual binding code with a + combination of implicit conventions and explicit annotations. + + gen_js_api is to be used with the js_of_ocaml compiler. + ''; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.bcc32 ]; + }; +} diff --git a/pkgs/development/ocaml-modules/gen_js_api/ojs.nix b/pkgs/development/ocaml-modules/gen_js_api/ojs.nix new file mode 100644 index 000000000000..722f9fa7f6e1 --- /dev/null +++ b/pkgs/development/ocaml-modules/gen_js_api/ojs.nix @@ -0,0 +1,21 @@ +{ buildDunePackage +, gen_js_api +}: + +buildDunePackage rec { + pname = "ojs"; + + inherit (gen_js_api) version src; + + doCheck = false; # checks depend on gen_js_api, which is a cycle + + minimalOCamlVersion = "4.08"; + + meta = { + inherit (gen_js_api.meta) homepage license maintainers; + description = "Runtime Library for gen_js_api generated libraries"; + longDescription = '' + To be used in conjunction with gen_js_api + ''; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index d031542ff86d..9f3b728ce6ec 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -510,6 +510,8 @@ let gapi_ocaml = callPackage ../development/ocaml-modules/gapi-ocaml { }; + gen_js_api = callPackage ../development/ocaml-modules/gen_js_api { }; + gg = callPackage ../development/ocaml-modules/gg { }; git = callPackage ../development/ocaml-modules/git { @@ -1000,6 +1002,8 @@ let odoc-parser = callPackage ../development/ocaml-modules/odoc-parser { }; + ojs = callPackage ../development/ocaml-modules/gen_js_api/ojs.nix { }; + omd = callPackage ../development/ocaml-modules/omd { }; opam-core = callPackage ../development/ocaml-modules/opam-core { From ee672c823ed46d8eec1354e6570e699954e01993 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Thu, 7 Oct 2021 02:01:23 +0200 Subject: [PATCH 20/34] ocamlPackages.samplerate: init at 0.1.6 --- .../ocaml-modules/samplerate/default.nix | 25 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/ocaml-modules/samplerate/default.nix diff --git a/pkgs/development/ocaml-modules/samplerate/default.nix b/pkgs/development/ocaml-modules/samplerate/default.nix new file mode 100644 index 000000000000..c101cfc0c279 --- /dev/null +++ b/pkgs/development/ocaml-modules/samplerate/default.nix @@ -0,0 +1,25 @@ +{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, libsamplerate }: + +buildDunePackage rec { + pname = "samplerate"; + version = "0.1.6"; + + useDune2 = true; + + src = fetchFromGitHub { + owner = "savonet"; + repo = "ocaml-samplerate"; + rev = "v${version}"; + sha256 = "0h0i9v9p9n2givv3wys8qrfi1i7vp8kq7lnkf14s7d3m4r8x4wrp"; + }; + + buildInputs = [ dune-configurator ]; + propagatedBuildInputs = [ libsamplerate ]; + + meta = with lib; { + homepage = "https://github.com/savonet/ocaml-samplerate"; + description = "Interface for libsamplerate"; + license = licenses.bsd2; + maintainers = with maintainers; [ dandellion ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 9f3b728ce6ec..e5dced9b3fdb 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1108,6 +1108,8 @@ let result = callPackage ../development/ocaml-modules/ocaml-result { }; + samplerate = callPackage ../development/ocaml-modules/samplerate { }; + secp256k1 = callPackage ../development/ocaml-modules/secp256k1 { inherit (pkgs) secp256k1; }; From df6fa84709e3c7413df2dd9ef162b6e5167557a6 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 18 Apr 2022 14:47:53 +0200 Subject: [PATCH 21/34] nixos/nscd: fix manual build --- nixos/modules/services/system/nscd.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/services/system/nscd.nix b/nixos/modules/services/system/nscd.nix index c9f2a60a31df..0caebc8ce90a 100644 --- a/nixos/modules/services/system/nscd.nix +++ b/nixos/modules/services/system/nscd.nix @@ -38,6 +38,11 @@ in default = if pkgs.stdenv.hostPlatform.libc == "glibc" then pkgs.stdenv.cc.libc.bin else pkgs.glibc.bin; + defaultText = literalExample '' + if pkgs.stdenv.hostPlatform.libc == "glibc" + then pkgs.stdenv.cc.libc.bin + else pkgs.glibc.bin; + ''; description = "package containing the nscd binary to be used by the service"; }; From 6a14836a53cb70a9c5ed26cff9d953fedd11c2ed Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Wed, 27 Oct 2021 14:28:45 +0200 Subject: [PATCH 22/34] ocamlPackages.xmlplaylist: init at 0.1.5 --- .../ocaml-modules/xmlplaylist/default.nix | 25 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/ocaml-modules/xmlplaylist/default.nix diff --git a/pkgs/development/ocaml-modules/xmlplaylist/default.nix b/pkgs/development/ocaml-modules/xmlplaylist/default.nix new file mode 100644 index 000000000000..a30172573506 --- /dev/null +++ b/pkgs/development/ocaml-modules/xmlplaylist/default.nix @@ -0,0 +1,25 @@ +{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, xmlm }: + +buildDunePackage rec { + pname = "xmlplaylist"; + version = "0.1.5"; + + useDune2 = true; + + src = fetchFromGitHub { + owner = "savonet"; + repo = "ocaml-xmlplaylist"; + rev = "v${version}"; + sha256 = "1x5lbwkr2ip00x8vyfbl8936yy79j138vx8a16ix7g9p2j5qsfcq"; + }; + + buildInputs = [ dune-configurator ]; + propagatedBuildInputs = [ xmlm ]; + + meta = with lib; { + homepage = "https://github.com/savonet/ocaml-xmlplaylist"; + description = "Module to parse various RSS playlist formats"; + license = licenses.lgpl21Only; + maintainers = with maintainers; [ dandellion ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index e5dced9b3fdb..54b58fa2b017 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1463,6 +1463,8 @@ let xmlm = callPackage ../development/ocaml-modules/xmlm { }; + xmlplaylist = callPackage ../development/ocaml-modules/xmlplaylist { }; + xml-light = callPackage ../development/ocaml-modules/xml-light { }; xtmpl = callPackage ../development/ocaml-modules/xtmpl { }; From 0a44fe4daed4a63a959ebaee7b7f902eb48a6320 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sat, 30 Oct 2021 03:46:43 +0200 Subject: [PATCH 23/34] ocamlPackages.lastfm: init at 0.3.3 --- .../ocaml-modules/lastfm/default.nix | 32 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/ocaml-modules/lastfm/default.nix diff --git a/pkgs/development/ocaml-modules/lastfm/default.nix b/pkgs/development/ocaml-modules/lastfm/default.nix new file mode 100644 index 000000000000..41bdac459b31 --- /dev/null +++ b/pkgs/development/ocaml-modules/lastfm/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildDunePackage +, fetchFromGitHub +, pkg-config +, dune-configurator +, xmlplaylist +, ocaml_pcre +, ocamlnet +}: + +buildDunePackage rec { + pname = "lastfm"; + version = "0.3.3"; + + useDune2 = true; + + src = fetchFromGitHub { + owner = "savonet"; + repo = "ocaml-lastfm"; + rev = "v${version}"; + sha256 = "1sz400ny9h7fs20k7600q475q164x49ba30ls3q9y35rhm3g2y2b"; + }; + + propagatedBuildInputs = [ xmlplaylist ocaml_pcre ocamlnet ]; + + meta = with lib; { + homepage = "https://github.com/savonet/ocaml-lastfm"; + description = "OCaml API to lastfm radio and audioscrobbler"; + license = licenses.lgpl21Only; + maintainers = with maintainers; [ dandellion ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 54b58fa2b017..9edc54723055 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -649,6 +649,8 @@ let lambda-term = callPackage ../development/ocaml-modules/lambda-term { }; + lastfm = callPackage ../development/ocaml-modules/lastfm { }; + lens = callPackage ../development/ocaml-modules/lens { }; letsencrypt = callPackage ../development/ocaml-modules/letsencrypt { }; From 0c7af2f43d9e9450026f57c59226be934763ee97 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sat, 9 Oct 2021 15:20:22 +0200 Subject: [PATCH 24/34] ocamlPackages.ladspa: init at 0.2.2 --- .../ocaml-modules/ladspa/default.nix | 25 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/ocaml-modules/ladspa/default.nix diff --git a/pkgs/development/ocaml-modules/ladspa/default.nix b/pkgs/development/ocaml-modules/ladspa/default.nix new file mode 100644 index 000000000000..b037a61a0fb4 --- /dev/null +++ b/pkgs/development/ocaml-modules/ladspa/default.nix @@ -0,0 +1,25 @@ +{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, ladspaH }: + +buildDunePackage rec { + pname = "ladspa"; + version = "0.2.2"; + + useDune2 = true; + + src = fetchFromGitHub { + owner = "savonet"; + repo = "ocaml-ladspa"; + rev = "v${version}"; + sha256 = "1y83infjaz9apzyvaaqw331zqdysmn3bpidfab061v3bczv4jzbz"; + }; + + buildInputs = [ dune-configurator ]; + propagatedBuildInputs = [ ladspaH ]; + + meta = with lib; { + homepage = "https://github.com/savonet/ocaml-alsa"; + description = "Bindings for the LADSPA API which provides audio effects"; + license = licenses.lgpl21Only; + maintainers = with maintainers; [ dandellion ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 9edc54723055..cc80886fca9e 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -645,6 +645,8 @@ let lacaml = callPackage ../development/ocaml-modules/lacaml { }; + ladspa = callPackage ../development/ocaml-modules/ladspa { }; + lambdasoup = callPackage ../development/ocaml-modules/lambdasoup { }; lambda-term = callPackage ../development/ocaml-modules/lambda-term { }; From 2d1cfba3490ef02b5d5e40540289b171e54dab0a Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sat, 9 Oct 2021 15:22:57 +0200 Subject: [PATCH 25/34] ocamlPackages.dssi: init at 0.1.5 --- .../ocaml-modules/dssi/default.nix | 25 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/ocaml-modules/dssi/default.nix diff --git a/pkgs/development/ocaml-modules/dssi/default.nix b/pkgs/development/ocaml-modules/dssi/default.nix new file mode 100644 index 000000000000..b8235cef9690 --- /dev/null +++ b/pkgs/development/ocaml-modules/dssi/default.nix @@ -0,0 +1,25 @@ +{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, ladspa, alsa-lib }: + +buildDunePackage rec { + pname = "dssi"; + version = "0.1.5"; + + useDune2 = true; + + src = fetchFromGitHub { + owner = "savonet"; + repo = "ocaml-dssi"; + rev = "v${version}"; + sha256 = "1frbmx1aznwp60r6bkx1whqyr6mkflvd9ysmjg7s7b80mh0s4ix6"; + }; + + buildInputs = [ dune-configurator ]; + propagatedBuildInputs = [ ladspa alsa-lib ]; + + meta = with lib; { + homepage = "https://github.com/savonet/ocaml-dssi"; + description = "Bindings for the DSSI API which provides audio synthesizers"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ dandellion ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index cc80886fca9e..a56b366dca1b 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -295,6 +295,8 @@ let dose3 = callPackage ../development/ocaml-modules/dose3 { }; + dssi = callPackage ../development/ocaml-modules/dssi { }; + dtoa = callPackage ../development/ocaml-modules/dtoa { }; duff = callPackage ../development/ocaml-modules/duff { }; From 0d1c745d7a7bd3af335a512f71b009916d9793bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Mon, 18 Apr 2022 15:43:48 +0200 Subject: [PATCH 26/34] conan: pin distro==1.5.0 to fix build Or else the build fails with ERROR: No matching distribution found for distro<=1.6.0,>=1.0.2 since distro==1.7.0 in nixpkgs now. --- pkgs/development/tools/build-managers/conan/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/tools/build-managers/conan/default.nix b/pkgs/development/tools/build-managers/conan/default.nix index e4a616f9995e..8978a0635c8c 100644 --- a/pkgs/development/tools/build-managers/conan/default.nix +++ b/pkgs/development/tools/build-managers/conan/default.nix @@ -48,6 +48,13 @@ let newPython = python3.override { sha256 = "29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b"; }; }); + distro = super.distro.overridePythonAttrs (oldAttrs: rec { + version = "1.5.0"; + src = oldAttrs.src.override { + inherit version; + sha256 = "14nz51cqlnxmgfqqilxyvjwwa5xfivdvlm0d0b1qzgcgwdm7an0f"; + }; + }); }; }; From 1f6537a15dc5c1095d3b2b761b3c0621fcd53ae1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 18 Apr 2022 14:15:06 +0000 Subject: [PATCH 27/34] python310Packages.findpython: 0.1.4 -> 0.1.5 --- pkgs/development/python-modules/findpython/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/findpython/default.nix b/pkgs/development/python-modules/findpython/default.nix index 877637344d49..06fd963cf2f2 100644 --- a/pkgs/development/python-modules/findpython/default.nix +++ b/pkgs/development/python-modules/findpython/default.nix @@ -15,7 +15,7 @@ let pname = "findpython"; - version = "0.1.4"; + version = "0.1.5"; in buildPythonPackage { inherit pname version; @@ -25,7 +25,7 @@ buildPythonPackage { src = fetchPypi { inherit pname version; - hash = "sha256-TOGYRUaW7lOcp5kNTq3NBHHKXvA7XE7y+SWJGsZPgok="; + hash = "sha256-AjTmTKIhWhl39O18S2XRVxeDiIzCpKH2qdjkY2h+i8M="; }; nativeBuildInputs = [ From 9e0568f78101f5d3cc03ec5987f130ddd16460cd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 18 Apr 2022 16:30:34 +0200 Subject: [PATCH 28/34] python3Packages.pytelegrambotapi: add pythonImportsCheck - disable on older Python releases - adjust license --- .../pyTelegramBotAPI/default.nix | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pyTelegramBotAPI/default.nix b/pkgs/development/python-modules/pyTelegramBotAPI/default.nix index 4073d951780b..508e6f71d11f 100644 --- a/pkgs/development/python-modules/pyTelegramBotAPI/default.nix +++ b/pkgs/development/python-modules/pyTelegramBotAPI/default.nix @@ -1,20 +1,36 @@ -{ lib, buildPythonPackage, fetchPypi, aiohttp, requests }: +{ lib +, buildPythonPackage +, fetchPypi +, aiohttp +, requests +, pythonOlder +}: buildPythonPackage rec { pname = "pyTelegramBotAPI"; version = "4.4.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-3Qppp/UDKiGChnvMOgW8EKygI75gYzv37c0ctExmK+g="; + hash = "sha256-3Qppp/UDKiGChnvMOgW8EKygI75gYzv37c0ctExmK+g="; }; - propagatedBuildInputs = [ aiohttp requests ]; + propagatedBuildInputs = [ + aiohttp + requests + ]; + + pythonImportsCheck = [ + "telebot" + ]; meta = with lib; { homepage = "https://github.com/eternnoir/pyTelegramBotAPI"; description = "A simple, but extensible Python implementation for the Telegram Bot API"; - license = licenses.gpl2; + license = licenses.gpl2Only; maintainers = with maintainers; [ das_j ]; }; } From ec129be253486b4e7df1bcade24c8b1c0fe3f731 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 18 Apr 2022 16:34:38 +0200 Subject: [PATCH 29/34] python3Packages.azure-mgmt-datafactory: disable on older Python releases --- .../python-modules/azure-mgmt-datafactory/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-datafactory/default.nix b/pkgs/development/python-modules/azure-mgmt-datafactory/default.nix index 7cff53be6812..d26033c414f1 100644 --- a/pkgs/development/python-modules/azure-mgmt-datafactory/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-datafactory/default.nix @@ -5,18 +5,20 @@ , msrestazure , azure-common , azure-mgmt-core -, azure-mgmt-nspkg -, isPy3k +, pythonOlder }: buildPythonPackage rec { pname = "azure-mgmt-datafactory"; version = "2.4.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "sha256-oCDh7tWsBA6z/auQm3AtkRzT9IUrq8HJ+R//HDJ+1nw="; + hash = "sha256-oCDh7tWsBA6z/auQm3AtkRzT9IUrq8HJ+R//HDJ+1nw="; }; propagatedBuildInputs = [ @@ -24,8 +26,6 @@ buildPythonPackage rec { msrestazure azure-common azure-mgmt-core - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg ]; # has no tests From 2e5cf118420ef77f7e2a7380429a034bdfd5a978 Mon Sep 17 00:00:00 2001 From: Paul Mulders Date: Mon, 18 Apr 2022 16:01:28 +0200 Subject: [PATCH 30/34] cuneiform: fix build with gcc 11 --- pkgs/tools/graphics/cuneiform/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/graphics/cuneiform/default.nix b/pkgs/tools/graphics/cuneiform/default.nix index 3d7608ac094c..beaf2c1f213d 100644 --- a/pkgs/tools/graphics/cuneiform/default.nix +++ b/pkgs/tools/graphics/cuneiform/default.nix @@ -14,6 +14,10 @@ stdenv.mkDerivation { url = "https://raw.githubusercontent.com/archlinux/svntogit-community/a2ec92f05de006b56d16ac6a6c370d54a554861a/cuneiform/trunk/build-fix.patch"; sha256 = "19cmrlx4khn30qqrpyayn7bicg8yi0wpz1x1bvqqrbvr3kwldxyj"; }) + (fetchurl { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-text/cuneiform/files/cuneiform-1.1.0-gcc11.patch"; + sha256 = "14bp2f4dvlgxnpdza1rgszhkbxhp6p7lhgnb1s7c1x7vwdrx0ri7"; + }) ]; postPatch = '' From c52e644aeaec6e036e79b34e231275f3c8090913 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Mon, 18 Apr 2022 08:06:18 -0700 Subject: [PATCH 31/34] oh-my-zsh: 2022-04-13 -> 2022-04-14 (#168756) --- 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 d0f37c2b96de..a96bc951bcc0 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 }: stdenv.mkDerivation rec { - version = "2022-04-13"; + version = "2022-04-14"; pname = "oh-my-zsh"; - rev = "7ea6ff8d04acd665ebcd151d183ec67af5be1281"; + rev = "eb00b95d26e8f264af80f508d50ac32e50619027"; src = fetchFromGitHub { inherit rev; owner = "ohmyzsh"; repo = "ohmyzsh"; - sha256 = "xi/jhaOLYggoI/xkfcX1f+1/puWtcZ4WqlC105oYvF8="; + sha256 = "kEyvSBVgHuTaBQu2X9OJ+eu2serHq9IyfJHxTmpv2BU="; }; installPhase = '' From 506050b57f7e781c37c442ffbdb5cd4697be4a03 Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Mon, 18 Apr 2022 15:19:45 +0200 Subject: [PATCH 32/34] emacs: prepare webp support for versions >=29.1 This prepares the derivation for the upcoming webp image file format support with Emacs 29.1. Therefore this change is mainly useful with the "emacs-overlay". https://github.com/nix-community/emacs-overlay/ Changelog from upstream Emacs: https://github.com/emacs-mirror/emacs/blob/1cdb8d4c99bf82579dd180187a11f2bcbeccd4c4/etc/NEWS#L435-L439 More info on image formats in Emacs and how to check for their support: https://www.gnu.org/software/emacs/manual/html_node/elisp/Image-Formats.html --- pkgs/applications/editors/emacs/generic.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/emacs/generic.nix b/pkgs/applications/editors/emacs/generic.nix index a7345b1decfa..637f5b543cb6 100644 --- a/pkgs/applications/editors/emacs/generic.nix +++ b/pkgs/applications/editors/emacs/generic.nix @@ -8,7 +8,7 @@ }: { stdenv, lib, fetchurl, fetchpatch, ncurses, xlibsWrapper, libXaw, libXpm , Xaw3d, libXcursor, pkg-config, gettext, libXft, dbus, libpng, libjpeg, giflib -, libtiff, librsvg, gconf, libxml2, imagemagick, gnutls, libselinux +, libtiff, librsvg, libwebp, gconf, libxml2, imagemagick, gnutls, libselinux , alsa-lib, cairo, acl, gpm, AppKit, GSS, ImageIO, m17n_lib, libotf , sigtool, jansson, harfbuzz, sqlite, nixosTests , dontRecurseIntoAttrs, emacsPackagesFor @@ -22,6 +22,7 @@ , withMotif ? false, motif ? null , withSQLite3 ? false , withCsrc ? true +, withWebP ? false , srcRepo ? false, autoreconfHook ? null, texinfo ? null , siteStart ? ./site-start.el , nativeComp ? false @@ -134,6 +135,7 @@ let emacs = stdenv.mkDerivation (lib.optionalAttrs nativeComp { ++ lib.optionals (withX && withGTK3) [ gtk3-x11 gsettings-desktop-schemas ] ++ lib.optional (withX && withMotif) motif ++ lib.optional withSQLite3 sqlite + ++ lib.optional withWebP libwebp ++ lib.optionals (withX && withXwidgets) [ webkitgtk glib-networking ] ++ lib.optionals withNS [ AppKit GSS ImageIO ] ++ lib.optionals stdenv.isDarwin [ sigtool ] From 46464911756ced488d10404769e2bb45434765ac Mon Sep 17 00:00:00 2001 From: Alexandru Scvortov Date: Mon, 18 Apr 2022 09:44:46 +0100 Subject: [PATCH 33/34] nixos/nbd: fix nbd-server config section ordering Closes #169103 --- nixos/modules/services/networking/nbd.nix | 43 +++++++++++++++-------- nixos/tests/nbd.nix | 16 +++++++++ 2 files changed, 44 insertions(+), 15 deletions(-) diff --git a/nixos/modules/services/networking/nbd.nix b/nixos/modules/services/networking/nbd.nix index 87f8c41a8e5c..df3358f51876 100644 --- a/nixos/modules/services/networking/nbd.nix +++ b/nixos/modules/services/networking/nbd.nix @@ -4,28 +4,34 @@ with lib; let cfg = config.services.nbd; - configFormat = pkgs.formats.ini { }; iniFields = with types; attrsOf (oneOf [ bool int float str ]); - serverConfig = configFormat.generate "nbd-server-config" - ({ - generic = - (cfg.server.extraOptions // { - user = "root"; - group = "root"; - port = cfg.server.listenPort; - } // (optionalAttrs (cfg.server.listenAddress != null) { - listenaddr = cfg.server.listenAddress; - })); - } - // (mapAttrs + # The `[generic]` section must come before all the others in the + # config file. This means we can't just dump an attrset to INI + # because that sorts the sections by name. Instead, we serialize it + # on its own first. + genericSection = { + generic = (cfg.server.extraOptions // { + user = "root"; + group = "root"; + port = cfg.server.listenPort; + } // (optionalAttrs (cfg.server.listenAddress != null) { + listenaddr = cfg.server.listenAddress; + })); + }; + exportSections = + mapAttrs (_: { path, allowAddresses, extraOptions }: extraOptions // { exportname = path; } // (optionalAttrs (allowAddresses != null) { authfile = pkgs.writeText "authfile" (concatStringsSep "\n" allowAddresses); })) - cfg.server.exports) - ); + cfg.server.exports; + serverConfig = + pkgs.writeText "nbd-server-config" '' + ${lib.generators.toINI {} genericSection} + ${lib.generators.toINI {} exportSections} + ''; splitLists = partition (path: hasPrefix "/dev/" path) @@ -103,6 +109,13 @@ in }; config = mkIf cfg.server.enable { + assertions = [ + { + assertion = !(cfg.server.exports ? "generic"); + message = "services.nbd.server exports must not be named 'generic'"; + } + ]; + boot.kernelModules = [ "nbd" ]; systemd.services.nbd-server = { diff --git a/nixos/tests/nbd.nix b/nixos/tests/nbd.nix index 16255e68e8a1..b4aaf29ee4e5 100644 --- a/nixos/tests/nbd.nix +++ b/nixos/tests/nbd.nix @@ -28,6 +28,11 @@ import ./make-test-python.nix ({ pkgs, ... }: ## It's also a loopback device to test exporting /dev/... systemd.services.create-priv-file = mkCreateSmallFileService { path = "/vault-priv.disk"; loop = true; }; + ## `aaa.disk` is just here because "[aaa]" sorts before + ## "[generic]" lexicographically, and nbd-server breaks if + ## "[generic]" isn't the first section. + systemd.services.create-aaa-file = + mkCreateSmallFileService { path = "/aaa.disk"; }; # Needed only for nbd-client used in the tests. environment.systemPackages = [ pkgs.nbd ]; @@ -39,6 +44,9 @@ import ./make-test-python.nix ({ pkgs, ... }: services.nbd.server = { enable = true; exports = { + aaa = { + path = "/aaa.disk"; + }; vault-pub = { path = "/vault-pub.disk"; }; @@ -83,5 +91,13 @@ import ./make-test-python.nix ({ pkgs, ... }: if foundString != testString: raise Exception(f"Read the wrong string from nbd disk. Expected: '{testString}'. Found: '{foundString}'") server.succeed("nbd-client -d /dev/nbd0") + + # Server: Successfully connect to the aaa disk + server.succeed("nbd-client localhost ${toString listenPort} /dev/nbd0 -name aaa -persist") + server.succeed(f"echo '{testString}' | dd of=/dev/nbd0 conv=notrunc") + foundString = server.succeed(f"dd status=none if=/aaa.disk count={len(testString)}")[:len(testString)] + if foundString != testString: + raise Exception(f"Read the wrong string from nbd disk. Expected: '{testString}'. Found: '{foundString}'") + server.succeed("nbd-client -d /dev/nbd0") ''; }) From 904432fdba1adf1c7203c281cad4e6861a9dafa2 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Mon, 18 Apr 2022 19:29:18 +0200 Subject: [PATCH 34/34] virt-manager: fix setuptools-61 breaking change Signed-off-by: Florian Brandes --- .../virtualization/virt-manager/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/virtualization/virt-manager/default.nix b/pkgs/applications/virtualization/virt-manager/default.nix index aa225c1d1730..99299ce31f9f 100644 --- a/pkgs/applications/virtualization/virt-manager/default.nix +++ b/pkgs/applications/virtualization/virt-manager/default.nix @@ -1,7 +1,7 @@ { lib, fetchFromGitHub, python3, intltool, file, wrapGAppsHook, gtk-vnc , vte, avahi, dconf, gobject-introspection, libvirt-glib, system-libvirt , gsettings-desktop-schemas, libosinfo, gnome, gtksourceview4, docutils, cpio -, e2fsprogs, findutils, gzip, cdrtools, xorriso +, e2fsprogs, findutils, gzip, cdrtools, xorriso, fetchpatch , spiceSupport ? true, spice-gtk ? null }: @@ -35,11 +35,21 @@ python3.pkgs.buildPythonApplication rec { pygobject3 ipaddress libvirt libxml2 requests cdrtools ]; - patchPhase = '' + prePatch = '' sed -i 's|/usr/share/libvirt/cpu_map.xml|${system-libvirt}/share/libvirt/cpu_map.xml|g' virtinst/capabilities.py sed -i "/'install_egg_info'/d" setup.py ''; + patches = [ + # due to a recent change in setuptools-61, "packages=[]" needs to be included + # this patch can hopefully be removed, once virt-manager has an upstream version bump + (fetchpatch { + name = "fix-for-setuptools-61.patch"; + url = "https://github.com/virt-manager/virt-manager/commit/46dc0616308a73d1ce3ccc6d716cf8bbcaac6474.patch"; + sha256 = "sha256-/RZG+7Pmd7rmxMZf8Fvg09dUggs2MqXZahfRQ5cLcuM="; + }) + ]; + postConfigure = '' ${python3.interpreter} setup.py configure --prefix=$out '';