diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index e9ecf0a3ea01..1c5635765bb4 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14178,6 +14178,16 @@ githubId = 6277322; name = "Wei Tang"; }; + soywod = { + name = "Clément DOUIN"; + email = "clement.douin@posteo.net"; + matrix = "@soywod:matrix.org"; + github = "soywod"; + githubId = 10437171; + keys = [{ + fingerprint = "75F0 AB7C FE01 D077 AEE6 CAFD 353E 4A18 EE0F AB72"; + }]; + }; spacefrogg = { email = "spacefrogg-nixos@meterriblecrew.net"; github = "spacefrogg"; diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index 5fb38a4e2ff8..852f0a22f3ae 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -702,7 +702,20 @@ in { users.groups.${user.name} = {}; ''; } - ] + ] ++ (map (shell: { + assertion = (user.shell == pkgs.${shell}) -> (config.programs.${shell}.enable == true); + message = '' + users.users.${user.name}.shell is set to ${shell}, but + programs.${shell}.enable is not true. This will cause the ${shell} + shell to lack the basic nix directories in its PATH and might make + logging in as that user impossible. You can fix it with: + programs.${shell}.enable = true; + ''; + }) [ + "fish" + "xonsh" + "zsh" + ]) )); warnings = diff --git a/pkgs/applications/audio/noisetorch/default.nix b/pkgs/applications/audio/noisetorch/default.nix index c305b9917617..51b565bc3e74 100644 --- a/pkgs/applications/audio/noisetorch/default.nix +++ b/pkgs/applications/audio/noisetorch/default.nix @@ -2,21 +2,21 @@ buildGoModule rec { pname = "NoiseTorch"; - version = "0.12.0"; + version = "0.12.2"; src = fetchFromGitHub { owner = "noisetorch"; repo = "NoiseTorch"; rev = "v${version}"; - sha256 = "sha256-A6cX1ck47/ZIn9cnV/Ow4CxVFfOX5J0K0Q+B70jCFdQ="; fetchSubmodules = true; + sha256 = "sha256-gOPSMPH99Upi/30OnAdwSb7SaMV0i/uHB051cclfz6A="; }; vendorHash = null; doCheck = false; - ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.distribution=nix" ]; + ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.distribution=nixpkgs" ]; subPackages = [ "." ]; @@ -32,9 +32,6 @@ buildGoModule rec { ''; meta = with lib; { - insecure = true; - knownVulnerabilities = - lib.optional (lib.versionOlder version "0.12") "https://github.com/noisetorch/NoiseTorch/releases/tag/v0.12.0"; description = "Virtual microphone device with noise supression for PulseAudio"; homepage = "https://github.com/noisetorch/NoiseTorch"; license = licenses.gpl3Plus; diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index 02c6f7ec74b5..dff834d9b681 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -5,6 +5,7 @@ , buildGoModule , buildVimPluginFrom2Nix , fetchFromGitHub +, fetchFromSourcehut , fetchpatch , fetchurl , substituteAll @@ -496,12 +497,13 @@ self: super: { }); himalaya-vim = super.himalaya-vim.overrideAttrs (old: { - postPatch = '' - substituteInPlace plugin/himalaya.vim \ - --replace "if !executable('himalaya')" "if v:false" - substituteInPlace autoload/himalaya/request.vim \ - --replace "'himalaya" "'${himalaya}/bin/himalaya" - ''; + buildInputs = [ himalaya ]; + src = fetchFromSourcehut { + owner = "~soywod"; + repo = "himalaya-vim"; + rev = "v${himalaya.version}"; + sha256 = "W+91hnNeS6WkDiR9r1s7xPTK9JlCWiVkI/nXVYbepY0="; + }; }); jedi-vim = super.jedi-vim.overrideAttrs (old: { diff --git a/pkgs/applications/networking/cluster/kubedog/default.nix b/pkgs/applications/networking/cluster/kubedog/default.nix index d3c60e7e6c7e..cf858efef97a 100644 --- a/pkgs/applications/networking/cluster/kubedog/default.nix +++ b/pkgs/applications/networking/cluster/kubedog/default.nix @@ -8,16 +8,16 @@ buildGoModule rec { pname = "kubedog"; - version = "0.9.9"; + version = "0.9.11"; src = fetchFromGitHub { owner = "werf"; repo = "kubedog"; rev = "v${version}"; - hash = "sha256-j7LR6+c2ZZJCqmHihXodtiF5bJhNR8eizDEqwm9IUn0="; + hash = "sha256-yHyCmUjxvMzeHpG5OqC3nAjWaiHErTXrbmS+/0Y4A7E="; }; - vendorHash = "sha256-UPfB3nOzJpqh14xLKZP2mLfg7C55nQivrkmh3B7aKzo="; + vendorHash = "sha256-OgfgCsysNtY7mZQXdmHFyJ0FqmBD3SeQdTLd5Lw3F7k="; subPackages = [ "cmd/kubedog" ]; diff --git a/pkgs/applications/networking/mailreaders/himalaya/default.nix b/pkgs/applications/networking/mailreaders/himalaya/default.nix index 52aac148df36..96b5b9bbcac4 100644 --- a/pkgs/applications/networking/mailreaders/himalaya/default.nix +++ b/pkgs/applications/networking/mailreaders/himalaya/default.nix @@ -2,44 +2,51 @@ , rustPlatform , fetchFromGitHub , stdenv -, enableCompletions ? stdenv.hostPlatform == stdenv.buildPlatform , installShellFiles +, installShellCompletions ? stdenv.hostPlatform == stdenv.buildPlatform +, installManPages ? stdenv.hostPlatform == stdenv.buildPlatform , pkg-config , Security , libiconv , openssl +, notmuch +, withImapBackend ? true +, withNotmuchBackend ? false +, withSmtpSender ? true }: rustPlatform.buildRustPackage rec { pname = "himalaya"; - version = "0.6.0"; + version = "0.7.1"; src = fetchFromGitHub { owner = "soywod"; repo = pname; rev = "v${version}"; - sha256 = "sha256-d+ERCUPUHx41HfBtjb6BjhGKzkUTGIb01BRWvAnLYwk="; + sha256 = "sha256-yAfNH9LSXlS/Hzi5kAuur5BX2vITMucprDzxhlV8RiY="; }; - cargoSha256 = "sha256-ICaahkIP1uSm4iXvSPMo8uVTtSa1nCyJdDihGdVEQvg="; + cargoSha256 = "sha256-FXfh6T8dNsnD/V/wYSMDWs+ll0d1jg1Dc3cQT39b0ws="; - nativeBuildInputs = lib.optionals enableCompletions [ installShellFiles ] - ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ pkg-config ]; + nativeBuildInputs = [ ] + ++ lib.optional (installManPages || installShellCompletions) installShellFiles + ++ lib.optional (!stdenv.hostPlatform.isDarwin) pkg-config; - buildInputs = - if stdenv.hostPlatform.isDarwin then [ - Security - libiconv - ] else [ - openssl - ]; + buildInputs = [ ] + ++ (if stdenv.hostPlatform.isDarwin then [ Security libiconv ] else [ openssl ]) + ++ lib.optional withNotmuchBackend notmuch; - # flag added because without end-to-end testing is ran which requires - # additional tooling and servers to test - cargoTestFlags = [ "--lib" ]; + buildNoDefaultFeatures = true; + buildFeatures = [ ] + ++ lib.optional withImapBackend "imap-backend" + ++ lib.optional withNotmuchBackend "notmuch-backend" + ++ lib.optional withSmtpSender "smtp-sender"; - postInstall = lib.optionalString enableCompletions '' - # Install shell function + postInstall = lib.optionalString installManPages '' + mkdir -p $out/man + $out/bin/himalaya man $out/man + installManPage $out/man/* + '' + lib.optionalString installShellCompletions '' installShellCompletion --cmd himalaya \ --bash <($out/bin/himalaya completion bash) \ --fish <($out/bin/himalaya completion fish) \ @@ -50,7 +57,7 @@ rustPlatform.buildRustPackage rec { description = "Command-line interface for email management"; homepage = "https://github.com/soywod/himalaya"; changelog = "https://github.com/soywod/himalaya/blob/v${version}/CHANGELOG.md"; - license = licenses.bsdOriginal; - maintainers = with maintainers; [ toastal yanganto ]; + license = licenses.mit; + maintainers = with maintainers; [ soywod toastal yanganto ]; }; } diff --git a/pkgs/applications/video/olive-editor/default.nix b/pkgs/applications/video/olive-editor/default.nix index 016b7e081ea4..fed5ec99ab00 100644 --- a/pkgs/applications/video/olive-editor/default.nix +++ b/pkgs/applications/video/olive-editor/default.nix @@ -9,7 +9,7 @@ , CoreFoundation , cmake , wrapQtAppsHook -, openimageio2 +, openimageio , openexr_3 , portaudio , imath @@ -57,7 +57,7 @@ stdenv.mkDerivation { ffmpeg_4 frei0r opencolorio - openimageio2 + openimageio imath openexr_3 portaudio diff --git a/pkgs/data/misc/v2ray-geoip/default.nix b/pkgs/data/misc/v2ray-geoip/default.nix index 37d936fc1861..7de6ba8aa25e 100644 --- a/pkgs/data/misc/v2ray-geoip/default.nix +++ b/pkgs/data/misc/v2ray-geoip/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "v2ray-geoip"; - version = "202303160048"; + version = "202303230043"; src = fetchFromGitHub { owner = "v2fly"; repo = "geoip"; - rev = "ca1a04c113293b00434d9d60e24aee17e660f4a6"; - sha256 = "sha256-YhFYrVN6ZQQeuM8ZCeFRmID/NTsI75oe4c51lOfb18s="; + rev = "163f6f7caad67d43b51a9c342a72e34feeccb4d0"; + sha256 = "sha256-hwKRwCu/LHbjqzgpwG8YcTX4C+eEkonCDqVq36FIprQ="; }; installPhase = '' diff --git a/pkgs/development/python-modules/bluetooth-adapters/default.nix b/pkgs/development/python-modules/bluetooth-adapters/default.nix index bb3519eeab73..d5382b931261 100644 --- a/pkgs/development/python-modules/bluetooth-adapters/default.nix +++ b/pkgs/development/python-modules/bluetooth-adapters/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "bluetooth-adapters"; - version = "0.15.2"; + version = "0.15.3"; format = "pyproject"; disabled = pythonOlder "3.9"; @@ -26,7 +26,7 @@ buildPythonPackage rec { owner = "Bluetooth-Devices"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-vwcOMg10XRT6wNkQQF6qkbWSG2rsUXaDSEiIevii1eA="; + hash = "sha256-sh5wOx/4J1AEzR5zrd77v7Cbq6Mt9vOjCSREKHRN4aQ="; }; postPatch = '' diff --git a/pkgs/development/python-modules/gpaw/default.nix b/pkgs/development/python-modules/gpaw/default.nix index 5f6bc3f71dc3..0af589decc48 100644 --- a/pkgs/development/python-modules/gpaw/default.nix +++ b/pkgs/development/python-modules/gpaw/default.nix @@ -13,6 +13,7 @@ , ase , numpy , scipy +, pyyaml }: assert lib.asserts.assertMsg (!blas.isILP64) @@ -85,7 +86,7 @@ in buildPythonPackage rec { buildInputs = [ blas scalapack libxc libvdwxc ]; - propagatedBuildInputs = [ ase scipy numpy mpi ]; + propagatedBuildInputs = [ ase scipy numpy mpi pyyaml ]; patches = [ ./SetupPath.patch ]; diff --git a/pkgs/development/python-modules/pnglatex/default.nix b/pkgs/development/python-modules/pnglatex/default.nix new file mode 100644 index 000000000000..579eb523d10c --- /dev/null +++ b/pkgs/development/python-modules/pnglatex/default.nix @@ -0,0 +1,27 @@ +{ lib, buildPythonPackage, fetchPypi, poppler_utils, netpbm }: + +buildPythonPackage rec { + + pname = "pnglatex"; + version = "1.1"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-CZUGDUkmttO0BzFYbGFSNMPkWzFC/BW4NmAeOwz4Y9M="; + }; + + propagatedBuildInputs = [ + poppler_utils + netpbm + ]; + + # There are no tests + doCheck = false; + + meta = with lib; { + homepage = "https://github.com/MaT1g3R/pnglatex"; + description = "a small program that converts LaTeX snippets to png"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ GaetanLepage ]; + }; +} diff --git a/pkgs/development/python-modules/reolink-aio/default.nix b/pkgs/development/python-modules/reolink-aio/default.nix index 3aebea0e2e21..ce0492180414 100644 --- a/pkgs/development/python-modules/reolink-aio/default.nix +++ b/pkgs/development/python-modules/reolink-aio/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "reolink-aio"; - version = "0.5.5"; + version = "0.5.6"; format = "setuptools"; disabled = pythonOlder "3.9"; @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "starkillerOG"; repo = "reolink_aio"; rev = "refs/tags/${version}"; - hash = "sha256-Nu0U/I0dDwJ2wAk2Vj6nMt0/0galfTPurj8MqAUzSks="; + hash = "sha256-tkmaWD+OfJfI3QjvdQivmqi8kv5Yuk2UxLlYw8hVocY="; }; postPatch = '' diff --git a/pkgs/development/python-modules/zeroconf/default.nix b/pkgs/development/python-modules/zeroconf/default.nix index c5521f0f0d6b..671dc47084ca 100644 --- a/pkgs/development/python-modules/zeroconf/default.nix +++ b/pkgs/development/python-modules/zeroconf/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "zeroconf"; - version = "0.47.3"; + version = "0.47.4"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "jstasiak"; repo = "python-zeroconf"; rev = "refs/tags/${version}"; - hash = "sha256-hpbJ7kcyM8S2xAaVjuPzHXl/gcAYk3CX7NHxsbZXQ10="; + hash = "sha256-ig0AMGNshe0bm7ZOkqV62hEcLeYlHBayMLk2fJQ8Uyo="; }; nativeBuildInputs = [ diff --git a/pkgs/development/tools/buildkit/default.nix b/pkgs/development/tools/buildkit/default.nix index 1455dc38e66f..27d352811ec0 100644 --- a/pkgs/development/tools/buildkit/default.nix +++ b/pkgs/development/tools/buildkit/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "buildkit"; - version = "0.11.4"; + version = "0.11.5"; src = fetchFromGitHub { owner = "moby"; repo = "buildkit"; rev = "v${version}"; - hash = "sha256-/9gP8ciHeFKjO0VAKXDor19Wm6wULLVlFYbHUYWFpWY="; + hash = "sha256-bQqdHSmouZm89sV2GjBrEwYTdTYKttVBfXcm2fN09NI="; }; vendorHash = null; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 09ccafd64271..7b21efbb40b9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32174,6 +32174,8 @@ with pkgs; pluto = callPackage ../applications/networking/cluster/pluto { }; + pnglatex = with python3Packages; toPythonApplication pnglatex; + polybar = callPackage ../applications/misc/polybar { }; polybarFull = callPackage ../applications/misc/polybar { diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4e7f2e055eed..7ed831a95adf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7552,6 +7552,8 @@ self: super: with self; { pmw = callPackage ../development/python-modules/pmw { }; + pnglatex = callPackage ../development/python-modules/pnglatex { }; + pocket = callPackage ../development/python-modules/pocket { }; podcastparser = callPackage ../development/python-modules/podcastparser { };