Merge master into staging-next

authored by github-actions[bot] and committed by GitHub 2e0f3bc5 d0d8c15b

+412 -304
+1 -1
nixos/lib/make-channel.nix
··· 23 23 cp -prd . ../$releaseName 24 24 chmod -R u+w ../$releaseName 25 25 ln -s . ../$releaseName/nixpkgs # hack to make ‘<nixpkgs>’ work 26 - NIX_STATE_DIR=$TMPDIR nix-env -f ../$releaseName/default.nix -qaP --meta --xml \* > /dev/null 26 + NIX_STATE_DIR=$TMPDIR nix-env -f ../$releaseName/default.nix -qaP --meta --show-trace --xml \* > /dev/null 27 27 cd .. 28 28 chmod -R u+w $releaseName 29 29 tar cfJ $out/tarballs/$releaseName.tar.xz $releaseName
+4
nixos/tests/bpf.nix
··· 25 25 print(machine.succeed("bpftrace -e 'kprobe:schedule { " 26 26 " printf(\"tgid: %d\", ((struct task_struct*) curtask)->tgid); exit() " 27 27 "}'")) 28 + # module BTF (bpftrace >= 0.17) 29 + print(machine.succeed("bpftrace -e 'kfunc:nft_trans_alloc_gfp { " 30 + " printf(\"portid: %d\\n\",args->ctx->portid); " 31 + "} BEGIN { exit() }'")) 28 32 ''; 29 33 })
-61
pkgs/applications/misc/imag/default.nix
··· 1 - { lib, stdenv 2 - , rustPlatform 3 - , fetchFromGitHub 4 - , llvmPackages 5 - , openssl 6 - , pkg-config 7 - , installShellFiles 8 - , Security 9 - , gitMinimal 10 - , util-linuxMinimal 11 - }: 12 - 13 - rustPlatform.buildRustPackage rec { 14 - pname = "imag"; 15 - version = "0.10.1"; 16 - 17 - src = fetchFromGitHub { 18 - owner = "matthiasbeyer"; 19 - repo = pname; 20 - rev = "v${version}"; 21 - sha256 = "0f9915f083z5qqcxyavj0w6m973c8m1x7kfb89pah5agryy5mkaq"; 22 - }; 23 - 24 - nativeBuildInputs = [ installShellFiles pkg-config rustPlatform.bindgenHook ]; 25 - buildInputs = [ openssl ] 26 - ++ lib.optional stdenv.isDarwin Security; 27 - nativeCheckInputs = [ gitMinimal util-linuxMinimal ]; 28 - 29 - cargoSha256 = "1vnrc72g2271i2p847z30kplxmdpi60n3dzpw0s7dahg33g14ai6"; 30 - 31 - checkPhase = '' 32 - export HOME=$TMPDIR 33 - git config --global user.email "nobody@example.com" 34 - git config --global user.name "Nobody" 35 - 36 - # UI tests uses executables directly, so we need to build them before 37 - # launching the tests 38 - cargo build 39 - '' + ( 40 - # CLI uses the presence of a controlling TTY to check if arguments are 41 - # passed in stdin, or in the command-line, so we use script to create 42 - # a PTY for us. 43 - if !stdenv.isDarwin then '' 44 - script -qfec "cargo test --workspace" 45 - '' else '' 46 - script -q "cargo test --workspace" 47 - '' 48 - ); 49 - 50 - postInstall = '' 51 - installShellCompletion target/imag.{bash,fish} --zsh target/_imag 52 - ''; 53 - 54 - meta = with lib; { 55 - description = "Commandline personal information management suite"; 56 - homepage = "https://imag-pim.org/"; 57 - license = licenses.lgpl21; 58 - maintainers = with maintainers; [ Br1ght0ne minijackson ]; 59 - platforms = platforms.unix; 60 - }; 61 - }
+4 -4
pkgs/applications/science/machine-learning/finalfrontier/default.nix
··· 11 11 12 12 rustPlatform.buildRustPackage rec { 13 13 pname = "finalfrontier"; 14 - version = "0.9.4"; 14 + version = "unstable-2022-01-06"; 15 15 16 16 src = fetchFromGitHub { 17 17 owner = "finalfusion"; 18 18 repo = pname; 19 - rev = version; 20 - sha256 = "1lvwv238p8hrl4sc5pmnvaargl2dd25p44gxl3kibq5ng03afd0n"; 19 + rev = "2461fb1dde13b73039926aa66606e470907a1b59"; 20 + sha256 = "sha256-bnRzXIYairlBjv2JxU16UXYc5BB3VeKZNiJ4+XDzub4="; 21 21 }; 22 22 23 - cargoSha256 = "0lhcazcih48gc23q484h344bzz7p3lh189ljhswdyph2i11caarp"; 23 + cargoSha256 = "sha256-C/D9EPfifyajrCyXE8w/qRuzWEoyJJIcj4xii94/9l4="; 24 24 25 25 nativeBuildInputs = [ 26 26 installShellFiles
-26
pkgs/applications/version-management/git-subset/default.nix
··· 1 - { lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, curl, libiconv, Security }: 2 - 3 - rustPlatform.buildRustPackage rec { 4 - pname = "git-subset"; 5 - version = "0.1.1"; 6 - 7 - src = fetchFromGitHub { 8 - owner = "jasonwhite"; 9 - repo = pname; 10 - rev = "v${version}"; 11 - sha256 = "02z2r0kcd0nnn1zjslp6xxam5ddbhrmzn67qzxhlamsw0p9vvkbb"; 12 - }; 13 - 14 - cargoSha256 = "0lc9m9prmhr4ipjh95cfczvlmpp9scryksvqd49h4acyr904n7ry"; 15 - 16 - nativeBuildInputs = [ pkg-config ]; 17 - 18 - buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ curl libiconv Security ]; 19 - 20 - meta = with lib; { 21 - description = "Super fast Git tree filtering"; 22 - homepage = "https://github.com/jasonwhite/git-subset"; 23 - license = licenses.mit; 24 - maintainers = [ maintainers.marsam ]; 25 - }; 26 - }
+3 -3
pkgs/data/misc/v2ray-geoip/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "v2ray-geoip"; 5 - version = "202301260045"; 5 + version = "202302020047"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "v2fly"; 9 9 repo = "geoip"; 10 - rev = "dda29e7611d13ff6f580cf389a7b84194363f75c"; 11 - sha256 = "sha256-9X9Oh4WFFpuRG1jQyQHTqNOCcW5f+uNOjH1iv1i6Je0="; 10 + rev = "9ab244ed78fea88a1ce5bf789fb31bbcd81e8d17"; 11 + sha256 = "sha256-2NYuvzOU0W3qZqWZMr3rTNqX+0rH3fhIr1zCD5dSdWc="; 12 12 }; 13 13 14 14 installPhase = ''
-31
pkgs/development/tools/rust/devserver/default.nix
··· 1 - { lib 2 - , stdenv 3 - , fetchCrate 4 - , rustPlatform 5 - , openssl 6 - , pkg-config 7 - , CoreServices 8 - }: 9 - 10 - rustPlatform.buildRustPackage rec { 11 - pname = "devserver"; 12 - version = "0.4.0"; 13 - 14 - src = fetchCrate { 15 - inherit pname version; 16 - sha256 = "sha256-UcrLzsALwl0zqNRMS1kTTXsR6wN8XDd5Iq+yrudh6M4="; 17 - }; 18 - 19 - nativeBuildInputs = [ pkg-config ]; 20 - 21 - buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin CoreServices; 22 - 23 - cargoSha256 = "sha256-XlrQ6CvjeWnzvfaeNbe8FtMXMVSQNLxDVIEjyHm57Js="; 24 - 25 - meta = with lib; { 26 - description = "An extremely tiny tool to serve a static folder locally"; 27 - homepage = "https://github.com/kettle11/devserver"; 28 - license = licenses.zlib; 29 - maintainers = with maintainers; [ nickhu ]; 30 - }; 31 - }
+3 -3
pkgs/development/web/deno/default.nix
··· 17 17 18 18 rustPlatform.buildRustPackage rec { 19 19 pname = "deno"; 20 - version = "1.30.0"; 20 + version = "1.30.2"; 21 21 22 22 src = fetchFromGitHub { 23 23 owner = "denoland"; 24 24 repo = pname; 25 25 rev = "v${version}"; 26 - sha256 = "sha256-He8RgzmiL8Zp+klm0JPNeqbyjK/5CsE7HB2Hco7GZss="; 26 + sha256 = "sha256-WpS1pqy6o8FUWMdJpzG5T8xoCkQZ/SbWI4k9vellVb8="; 27 27 }; 28 - cargoSha256 = "sha256-lPgVivYsR3SljPkjRRkb3qM3ZO7RALfk1KGPd7cwSYQ="; 28 + cargoSha256 = "sha256-RVoXHrEWMwuC+nD6ypiZzGsYEr/BFReE67z7gqqDOzA="; 29 29 30 30 postPatch = '' 31 31 # upstream uses lld on aarch64-darwin for faster builds
+4 -2
pkgs/games/vcmi/default.nix
··· 24 24 25 25 stdenv.mkDerivation rec { 26 26 pname = "vcmi"; 27 - version = "1.1.0"; 27 + version = "1.1.1"; 28 28 29 29 src = fetchFromGitHub { 30 30 owner = "vcmi"; 31 31 repo = "vcmi"; 32 32 rev = version; 33 33 fetchSubmodules = true; 34 - hash = "sha256-Ah+aAuU2ioUfvtxfcSb4GNqriqY71ee5RhW2L9UMYFY="; 34 + hash = "sha256-/BHpAXOCLi6d0+/uE79g8p6YO1swizItAwVlPVf/nkQ="; 35 35 }; 36 36 37 37 postPatch = '' ··· 69 69 # Upstream assumes relative value while Nixpkgs passes absolute. 70 70 # Both should be allowed: https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html 71 71 # Meanwhile work it around by passing a relative value. 72 + "-DCMAKE_INSTALL_BINDIR:STRING=bin" 72 73 "-DCMAKE_INSTALL_LIBDIR:STRING=lib" 74 + "-DCMAKE_INSTALL_DATAROOTDIR:STRING=share" 73 75 ]; 74 76 75 77 postFixup = ''
+2 -2
pkgs/os-specific/linux/bpftrace/default.nix
··· 9 9 10 10 stdenv.mkDerivation rec { 11 11 pname = "bpftrace"; 12 - version = "0.16.0"; 12 + version = "0.17.0"; 13 13 14 14 src = fetchFromGitHub { 15 15 owner = "iovisor"; 16 16 repo = "bpftrace"; 17 17 rev = "v${version}"; 18 - sha256 = "sha256-S43KS/qpzxU+Sgkcud4Cyx4yRjaT6SZzLv6R6bg5I2w="; 18 + sha256 = "sha256-PBqq3u8zym+RY6xudJ66ItzDZEJBNvJDtve1GtxcOdQ="; 19 19 }; 20 20 21 21 buildInputs = with llvmPackages;
+40 -16
pkgs/os-specific/linux/firmware/firmware-manager/default.nix
··· 1 - { rustPlatform, lib, fetchFromGitHub, xz, pkg-config, openssl, dbus, glib, udev, cairo, pango, atk, gdk-pixbuf, gtk3, wrapGAppsHook }: 2 - rustPlatform.buildRustPackage rec { 1 + { lib 2 + , stdenv 3 + , rustPlatform 4 + , fetchFromGitHub 5 + , xz 6 + , pkg-config 7 + , openssl 8 + , dbus 9 + , glib 10 + , udev 11 + , cairo 12 + , pango 13 + , atk 14 + , gdk-pixbuf 15 + , gtk3 16 + , wrapGAppsHook 17 + }: 18 + 19 + stdenv.mkDerivation rec { 3 20 pname = "firmware-manager"; 4 - version = "0.1.2"; 21 + version = "unstable-2022-12-09"; 5 22 6 23 src = fetchFromGitHub { 7 24 owner = "pop-os"; 8 25 repo = pname; 9 - rev = version; 10 - sha256 = "sha256-aKatdjHa/k7j48upkR1O6PFxCUfJYE3KhhzZ9Ohe0Jc="; 26 + rev = "9be8160346689bd74f95db7897884a91fa48afe3"; 27 + sha256 = "sha256-zZk2RVghhKxETSVv/Jtv8Wq6+ITx/BudE/o7h4jKk5M="; 11 28 }; 12 29 13 - nativeBuildInputs = [ pkg-config wrapGAppsHook ]; 14 - 15 - buildInputs = [ xz openssl dbus glib udev cairo pango atk gdk-pixbuf gtk3 ]; 16 - 17 - depsExtraArgs.postPatch = "make prefix='$(out)' toml-gen"; 30 + cargoDeps = rustPlatform.fetchCargoTarball { 31 + inherit src; 32 + sha256 = "sha256-3drsOmlmy1xXRWg7WMDNN+iuVmPYf60sDLIdCvu4rEw="; 33 + }; 18 34 19 35 postPatch = '' 20 - sed -i 's|etc|$(prefix)/etc|' Makefile 36 + substituteInPlace Makefile --replace '$(DESTDIR)/etc' '$(DESTDIR)$(prefix)/etc' 21 37 ''; 22 38 23 - buildPhase = "make prefix='$(out)'"; 24 - 25 - installPhase = "make prefix='$(out)' install"; 39 + nativeBuildInputs = with rustPlatform; [ 40 + rust.cargo 41 + rust.rustc 42 + pkg-config 43 + cargoSetupHook 44 + wrapGAppsHook 45 + ]; 26 46 27 - cargoSha256 = "sha256-BUo77ERHvuc8IkDdU3Z/gZZicNHT26IbAgEBnVM3O4U="; 47 + buildInputs = [ 48 + openssl 49 + gtk3 50 + udev 51 + ]; 28 52 29 - doCheck = false; 53 + makeFlags = [ "prefix=$(out)" ]; 30 54 31 55 meta = { 32 56 description = "Graphical frontend for firmware management";
+4 -4
pkgs/os-specific/linux/kernel/linux-testing-bcachefs.nix
··· 1 1 { lib 2 2 , fetchpatch 3 3 , kernel 4 - , commitDate ? "2022-12-29" 5 - , currentCommit ? "8f064a4cb5c7cce289b83d7a459e6d8620188b37" 6 - , diffHash ? "sha256-RnlM7uOSWhFHG1aj5BOjrfRtoZfbx+tqQw1V49nW5vw=" 4 + , commitDate ? "2023-02-01" 5 + , currentCommit ? "65960c284ad149cc4bfbd64f21e6889c1e3d1c5f" 6 + , diffHash ? "sha256-4wpY3aYZ93OXSU4wmQs9K62nPyIzjKu4RBQTwksmyyk=" 7 7 8 8 , kernelPatches # must always be defined in bcachefs' all-packages.nix entry because it's also a top-level attribute supplied by callPackage 9 9 , argsOverride ? {} ··· 17 17 18 18 extraMeta = { 19 19 branch = "master"; 20 - maintainers = with lib.maintainers; [ davidak Madouura ]; 20 + maintainers = with lib.maintainers; [ davidak Madouura pedrohlc ]; 21 21 }; 22 22 } // argsOverride; 23 23
+3 -3
pkgs/tools/filesystems/bcachefs-tools/default.nix
··· 25 25 26 26 stdenv.mkDerivation { 27 27 pname = "bcachefs-tools"; 28 - version = "unstable-2022-12-29"; 28 + version = "unstable-2023-01-31"; 29 29 30 30 src = fetchFromGitHub { 31 31 owner = "koverstreet"; 32 32 repo = "bcachefs-tools"; 33 - rev = "42cf74fd1d0ef58927967e6236988e86cfc0d086"; 34 - sha256 = "sha256-N/1heStwmB7CzE/ddTud/ywnMdhq8ZkLju+x0UL0yjY="; 33 + rev = "3c39b422acd3346321185be0ce263809e2a9a23f"; 34 + hash = "sha256-2ci/m4JfodLiPoWfP+QCEqlk0k48zq3mKb8Pdrtln0o="; 35 35 }; 36 36 37 37 postPatch = ''
+8 -3
pkgs/tools/misc/coinlive/default.nix
··· 9 9 10 10 rustPlatform.buildRustPackage rec { 11 11 pname = "coinlive"; 12 - version = "0.2.1"; 12 + version = "0.2.2"; 13 13 14 14 src = fetchFromGitHub { 15 15 owner = "mayeranalytics"; 16 16 repo = pname; 17 17 rev = "v${version}"; 18 - hash = "sha256-i21C1ZSAPoUOBlnDQl40/17yRqmNx3wkjswHJeV9vko="; 18 + hash = "sha256-llw97jjfPsDd4nYi6lb9ug6sApPoD54WlzpJswvdbRs="; 19 19 }; 20 20 21 - cargoSha256 = "sha256-0pUXCY5rZWh26KGD2OU2+M9L0RtCIan6hmuNeIeBEHI="; 21 + cargoSha256 = "sha256-T1TgwnohUDvfpn6GXNP4xJGHM3aenMK+ORxE3z3PPA4="; 22 22 23 23 nativeBuildInputs = [ 24 24 pkg-config ··· 28 28 openssl 29 29 ] ++ lib.optionals stdenv.isDarwin [ 30 30 Security 31 + ]; 32 + 33 + checkFlags = [ 34 + # requires network access 35 + "--skip=utils::test_get_infos" 31 36 ]; 32 37 33 38 meta = with lib; {
+4 -4
pkgs/tools/networking/tunnelto/default.nix
··· 8 8 9 9 rustPlatform.buildRustPackage rec { 10 10 pname = "tunnelto"; 11 - version = "0.1.18"; 11 + version = "unstable-2022-09-25"; 12 12 13 13 src = fetchFromGitHub { 14 14 owner = "agrinman"; 15 15 repo = pname; 16 - rev = version; 17 - sha256 = "sha256-dCHl5EXjUagOKeHxqb3GlAoSDw0u3tQ4GKEtbFF8OSs="; 16 + rev = "06428f13c638180dd349a4c42a17b569ab51a25f"; 17 + sha256 = "sha256-84jGcR/E1QoqIlbGu67muYUtZU66ZJtj4tdZvmYbII4="; 18 18 }; 19 19 20 - cargoSha256 = "sha256-6HU1w69cJj+tE1IUUNoxh0cHEwlRKF5qWx7FiOHeUNk="; 20 + cargoSha256 = "sha256-bVHvQRtnKwrwS0huax6OrteYfxws2Ce2fFaBQ3oeoow="; 21 21 22 22 nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ]; 23 23 buildInputs = [ ]
+24 -112
pkgs/tools/package-management/poetry/default.nix
··· 1 1 { lib 2 - , stdenv 3 2 , python3 4 - , fetchFromGitHub 5 - , installShellFiles 6 3 }: 7 4 8 5 let 9 6 python = python3.override { 10 7 packageOverrides = self: super: { 8 + poetry = self.callPackage ./unwrapped.nix { }; 9 + 10 + # version overrides required by poetry and its plugins 11 11 dulwich = super.dulwich.overridePythonAttrs (old: rec { 12 12 version = "0.20.50"; 13 13 src = self.fetchPypi { ··· 18 18 }); 19 19 }; 20 20 }; 21 - in python.pkgs.buildPythonApplication rec { 22 - pname = "poetry"; 23 - version = "1.3.2"; 24 - format = "pyproject"; 25 21 26 - disabled = python.pkgs.pythonOlder "3.7"; 27 - 28 - src = fetchFromGitHub { 29 - owner = "python-poetry"; 30 - repo = pname; 31 - rev = "refs/tags/${version}"; 32 - hash = "sha256-12EiEGI9Vkb6EUY/W2KWeLigxWra1Be4ozvi8njBpEU="; 22 + plugins = with python.pkgs; { 23 + poetry-audit-plugin = callPackage ./plugins/poetry-audit-plugin.nix { }; 24 + poetry-plugin-up = callPackage ./plugins/poetry-plugin-up.nix { }; 33 25 }; 34 26 35 - nativeBuildInputs = [ 36 - installShellFiles 37 - ]; 38 - 39 - propagatedBuildInputs = with python.pkgs; [ 40 - cachecontrol 41 - cleo 42 - crashtest 43 - dulwich 44 - filelock 45 - html5lib 46 - jsonschema 47 - keyring 48 - packaging 49 - pexpect 50 - pkginfo 51 - platformdirs 52 - poetry-core 53 - poetry-plugin-export 54 - requests 55 - requests-toolbelt 56 - shellingham 57 - tomlkit 58 - trove-classifiers 59 - virtualenv 60 - ] ++ lib.optionals (stdenv.isDarwin) [ 61 - xattr 62 - ] ++ lib.optionals (pythonOlder "3.11") [ 63 - tomli 64 - ] ++ lib.optionals (pythonOlder "3.10") [ 65 - importlib-metadata 66 - ] ++ lib.optionals (pythonOlder "3.8") [ 67 - backports-cached-property 68 - ] ++ cachecontrol.optional-dependencies.filecache; 69 - 70 - postInstall = '' 71 - installShellCompletion --cmd poetry \ 72 - --bash <($out/bin/poetry completions bash) \ 73 - --fish <($out/bin/poetry completions fish) \ 74 - --zsh <($out/bin/poetry completions zsh) \ 75 - ''; 76 - 77 - # Propagating dependencies leaks them through $PYTHONPATH which causes issues 78 - # when used in nix-shell. 79 - postFixup = '' 80 - rm $out/nix-support/propagated-build-inputs 81 - ''; 82 - 83 - nativeCheckInputs = with python.pkgs; [ 84 - cachy 85 - deepdiff 86 - flatdict 87 - pytestCheckHook 88 - httpretty 89 - pytest-mock 90 - pytest-xdist 91 - ]; 92 - 93 - preCheck = ('' 94 - export HOME=$TMPDIR 95 - '' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' 96 - # https://github.com/python/cpython/issues/74570#issuecomment-1093748531 97 - export no_proxy='*'; 98 - ''); 99 - 100 - postCheck = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' 101 - unset no_proxy 102 - ''; 27 + # selector is a function mapping pythonPackages to a list of plugins 28 + # e.g. poetry.withPlugins (ps: with ps; [ poetry-plugin-up ]) 29 + withPlugins = selector: let 30 + selected = selector plugins; 31 + in python.pkgs.toPythonApplication (python.pkgs.poetry.overridePythonAttrs (old: { 32 + propagatedBuildInputs = old.propagatedBuildInputs ++ selected; 103 33 104 - disabledTests = [ 105 - # touches network 106 - "git" 107 - "solver" 108 - "load" 109 - "vcs" 110 - "prereleases_if_they_are_compatible" 111 - "test_executor" 112 - # requires git history to work correctly 113 - "default_with_excluded_data" 114 - # toml ordering has changed 115 - "lock" 116 - # fs permission errors 117 - "test_builder_should_execute_build_scripts" 118 - ] ++ lib.optionals (python.pythonAtLeast "3.10") [ 119 - # RuntimeError: 'auto_spec' might be a typo; use unsafe=True if this is intended 120 - "test_info_setup_complex_pep517_error" 121 - ]; 34 + # save some build time when adding plugins by disabling tests 35 + doCheck = selected == [ ]; 122 36 123 - # Allow for package to use pep420's native namespaces 124 - pythonNamespaces = [ 125 - "poetry" 126 - ]; 37 + # Propagating dependencies leaks them through $PYTHONPATH which causes issues 38 + # when used in nix-shell. 39 + postFixup = '' 40 + rm $out/nix-support/propagated-build-inputs 41 + ''; 127 42 128 - meta = with lib; { 129 - changelog = "https://github.com/python-poetry/poetry/blob/${src.rev}/CHANGELOG.md"; 130 - homepage = "https://python-poetry.org/"; 131 - description = "Python dependency management and packaging made easy"; 132 - license = licenses.mit; 133 - maintainers = with maintainers; [ jakewaksbaum dotlambda ]; 134 - }; 135 - } 43 + passthru = rec { 44 + inherit plugins withPlugins; 45 + }; 46 + })); 47 + in withPlugins (ps: [ ])
+54
pkgs/tools/package-management/poetry/plugins/poetry-audit-plugin.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , pythonOlder 4 + , fetchFromGitHub 5 + , poetry-core 6 + , poetry 7 + , safety 8 + , pytestCheckHook 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "poetry-audit-plugin"; 13 + version = "0.3.0"; 14 + 15 + disabled = pythonOlder "3.7"; 16 + 17 + format = "pyproject"; 18 + 19 + src = fetchFromGitHub { 20 + owner = "opeco17"; 21 + repo = "poetry-audit-plugin"; 22 + rev = "refs/tags/${version}"; 23 + hash = "sha256-49OnYz3EFiqOe+cLgfynjy14Ve4Ga6OUrLdM8HhZuKQ="; 24 + }; 25 + 26 + nativeBuildInputs = [ 27 + poetry-core 28 + ]; 29 + 30 + buildInputs = [ 31 + poetry 32 + ]; 33 + 34 + propagatedBuildInputs = [ 35 + safety 36 + ]; 37 + 38 + pythonImportsCheck = [ "poetry_audit_plugin" ]; 39 + 40 + nativeCheckInputs = [ 41 + poetry # for the executable 42 + pytestCheckHook 43 + ]; 44 + 45 + # requires networking 46 + doCheck = false; 47 + 48 + meta = { 49 + description = "Poetry plugin for checking security vulnerabilities in dependencies"; 50 + homepage = "https://github.com/opeco17/poetry-audit-plugin"; 51 + license = lib.licenses.mit; 52 + maintainers = with lib.maintainers; [ dotlambda ]; 53 + }; 54 + }
+43
pkgs/tools/package-management/poetry/plugins/poetry-plugin-up.nix
··· 1 + { lib 2 + , fetchFromGitHub 3 + , buildPythonPackage 4 + , poetry-core 5 + , pytestCheckHook 6 + , pytest-mock 7 + , poetry 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "poetry-plugin-up"; 12 + version = "0.2.1"; 13 + format = "pyproject"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "MousaZeidBaker"; 17 + repo = pname; 18 + rev = "refs/tags/${version}"; 19 + hash = "sha256-16p0emvgWa56Km8U5HualCSStbulqyINbC3Jez9Y1n0="; 20 + }; 21 + 22 + nativeBuildInputs = [ 23 + poetry-core 24 + ]; 25 + 26 + nativeCheckInputs = [ 27 + pytestCheckHook 28 + pytest-mock 29 + poetry 30 + ]; 31 + 32 + preCheck = '' 33 + export HOME=$TMPDIR 34 + ''; 35 + 36 + meta = with lib; { 37 + description = "Poetry plugin to simplify package updates"; 38 + homepage = "https://github.com/MousaZeidBaker/poetry-plugin-up"; 39 + changelog = "https://github.com/MousaZeidBaker/poetry-plugin-up/releases/tag/${version}"; 40 + license = licenses.mit; 41 + maintainers = [ maintainers.k900 ]; 42 + }; 43 + }
+149
pkgs/tools/package-management/poetry/unwrapped.nix
··· 1 + { lib 2 + , stdenv 3 + , buildPythonPackage 4 + , pythonOlder 5 + , fetchFromGitHub 6 + , installShellFiles 7 + , cachecontrol 8 + , cleo 9 + , crashtest 10 + , dulwich 11 + , filelock 12 + , html5lib 13 + , jsonschema 14 + , keyring 15 + , packaging 16 + , pexpect 17 + , pkginfo 18 + , platformdirs 19 + , poetry-core 20 + , poetry-plugin-export 21 + , requests 22 + , requests-toolbelt 23 + , shellingham 24 + , tomlkit 25 + , trove-classifiers 26 + , virtualenv 27 + , xattr 28 + , tomli 29 + , importlib-metadata 30 + , backports-cached-property 31 + , cachy 32 + , deepdiff 33 + , flatdict 34 + , pytestCheckHook 35 + , httpretty 36 + , pytest-mock 37 + , pytest-xdist 38 + , pythonAtLeast 39 + }: 40 + 41 + buildPythonPackage rec { 42 + pname = "poetry"; 43 + version = "1.3.2"; 44 + format = "pyproject"; 45 + 46 + disabled = pythonOlder "3.7"; 47 + 48 + src = fetchFromGitHub { 49 + owner = "python-poetry"; 50 + repo = pname; 51 + rev = "refs/tags/${version}"; 52 + hash = "sha256-12EiEGI9Vkb6EUY/W2KWeLigxWra1Be4ozvi8njBpEU="; 53 + }; 54 + 55 + nativeBuildInputs = [ 56 + installShellFiles 57 + ]; 58 + 59 + propagatedBuildInputs = [ 60 + cachecontrol 61 + cleo 62 + crashtest 63 + dulwich 64 + filelock 65 + html5lib 66 + jsonschema 67 + keyring 68 + packaging 69 + pexpect 70 + pkginfo 71 + platformdirs 72 + poetry-core 73 + poetry-plugin-export 74 + requests 75 + requests-toolbelt 76 + shellingham 77 + tomlkit 78 + trove-classifiers 79 + virtualenv 80 + ] ++ lib.optionals (stdenv.isDarwin) [ 81 + xattr 82 + ] ++ lib.optionals (pythonOlder "3.11") [ 83 + tomli 84 + ] ++ lib.optionals (pythonOlder "3.10") [ 85 + importlib-metadata 86 + ] ++ lib.optionals (pythonOlder "3.8") [ 87 + backports-cached-property 88 + ] ++ cachecontrol.optional-dependencies.filecache; 89 + 90 + postInstall = '' 91 + installShellCompletion --cmd poetry \ 92 + --bash <($out/bin/poetry completions bash) \ 93 + --fish <($out/bin/poetry completions fish) \ 94 + --zsh <($out/bin/poetry completions zsh) \ 95 + ''; 96 + 97 + nativeCheckInputs = [ 98 + cachy 99 + deepdiff 100 + flatdict 101 + pytestCheckHook 102 + httpretty 103 + pytest-mock 104 + pytest-xdist 105 + ]; 106 + 107 + preCheck = ('' 108 + export HOME=$TMPDIR 109 + '' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' 110 + # https://github.com/python/cpython/issues/74570#issuecomment-1093748531 111 + export no_proxy='*'; 112 + ''); 113 + 114 + postCheck = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' 115 + unset no_proxy 116 + ''; 117 + 118 + disabledTests = [ 119 + # touches network 120 + "git" 121 + "solver" 122 + "load" 123 + "vcs" 124 + "prereleases_if_they_are_compatible" 125 + "test_executor" 126 + # requires git history to work correctly 127 + "default_with_excluded_data" 128 + # toml ordering has changed 129 + "lock" 130 + # fs permission errors 131 + "test_builder_should_execute_build_scripts" 132 + ] ++ lib.optionals (pythonAtLeast "3.10") [ 133 + # RuntimeError: 'auto_spec' might be a typo; use unsafe=True if this is intended 134 + "test_info_setup_complex_pep517_error" 135 + ]; 136 + 137 + # Allow for package to use pep420's native namespaces 138 + pythonNamespaces = [ 139 + "poetry" 140 + ]; 141 + 142 + meta = with lib; { 143 + changelog = "https://github.com/python-poetry/poetry/blob/${src.rev}/CHANGELOG.md"; 144 + homepage = "https://python-poetry.org/"; 145 + description = "Python dependency management and packaging made easy"; 146 + license = licenses.mit; 147 + maintainers = with maintainers; [ jakewaksbaum dotlambda ]; 148 + }; 149 + }
+12 -7
pkgs/tools/text/difftastic/default.nix
··· 1 1 { lib 2 + , rustPlatform 2 3 , fetchFromGitHub 3 4 , fetchpatch 4 - , rustPlatform 5 - , tree-sitter 5 + , testers 6 6 , difftastic 7 - , testers 8 7 }: 9 8 10 9 rustPlatform.buildRustPackage rec { 11 10 pname = "difftastic"; 12 - version = "0.42.0"; 11 + version = "0.43.0"; 13 12 14 13 src = fetchFromGitHub { 15 14 owner = "wilfred"; 16 15 repo = pname; 17 16 rev = version; 18 - sha256 = "sha256-9ooVXGZ7MEB4D0awciJJio3ttqxEQ8EUBbIQ6xxrXh0="; 17 + sha256 = "sha256-YL2rKsP5FSoG1gIyxQtt9kovBAyu8Flko5RxXRQy5mQ="; 19 18 }; 20 19 21 20 depsExtraArgs = { ··· 40 39 popd 41 40 ''; 42 41 }; 43 - cargoSha256 = "sha256-Zbnk5tcCRoaEH3A1mbsfpEhLe1EMcZqPQ4vzWxi0oG0="; 42 + cargoSha256 = "sha256-SUNBnJP8B/HvlozcCbehL1A2/WudYE20DIPc7/fYF/k="; 43 + 44 + checkFlags = [ 45 + # test is broken 46 + # https://github.com/Wilfred/difftastic/issues/479 47 + "--skip=files::tests::test_gzip_is_binary" 48 + ]; 44 49 45 50 passthru.tests.version = testers.testVersion { package = difftastic; }; 46 51 47 52 meta = with lib; { 48 53 description = "A syntax-aware diff"; 49 54 homepage = "https://github.com/Wilfred/difftastic"; 50 - changelog = "https://github.com/Wilfred/difftastic/raw/${version}/CHANGELOG.md"; 55 + changelog = "https://github.com/Wilfred/difftastic/blob/${version}/CHANGELOG.md"; 51 56 license = licenses.mit; 52 57 maintainers = with maintainers; [ ethancedwards8 figsoda ]; 53 58 mainProgram = "difft";
+30
pkgs/tools/wayland/swayrbar/default.nix
··· 1 + { lib, fetchFromSourcehut, rustPlatform }: 2 + 3 + rustPlatform.buildRustPackage rec { 4 + pname = "swayrbar"; 5 + version = "0.3.4"; 6 + 7 + src = fetchFromSourcehut { 8 + owner = "~tsdh"; 9 + repo = "swayr"; 10 + rev = "swayrbar-${version}"; 11 + sha256 = "sha256-OQhq5ZUe2OrfRFxoaAbbewoHgQVPv9cQy0VCpYe1SNo="; 12 + }; 13 + 14 + cargoHash = "sha256-vM4SoRbVylN90b378Qk18A8/2S2IB88lnGCM6sqrhs8="; 15 + 16 + # don't build swayr 17 + buildAndTestSubdir = pname; 18 + 19 + preCheck = '' 20 + export HOME=$TMPDIR 21 + ''; 22 + 23 + meta = with lib; { 24 + description = "Status command for sway's swaybar implementing the swaybar-protocol"; 25 + homepage = "https://git.sr.ht/~tsdh/swayr#a-idswayrbarswayrbara"; 26 + license = with licenses; [ gpl3Plus ]; 27 + platforms = platforms.linux; 28 + maintainers = with maintainers; [ sebtm ]; 29 + }; 30 + }
+3
pkgs/top-level/aliases.nix
··· 363 363 demjson = with python3Packages; toPythonApplication demjson; # Added 2022-01-18 364 364 desktop_file_utils = throw "'desktop_file_utils' has been renamed to/replaced by 'desktop-file-utils'"; # Converted to throw 2022-02-22 365 365 devicemapper = throw "'devicemapper' has been renamed to/replaced by 'lvm2'"; # Converted to throw 2022-02-22 366 + devserver = throw "'devserver' has been removed in favor of 'miniserve' or other alternatives"; # Added 2023-01-13 366 367 dfu-util-axoloti = throw "dfu-util-axoloti has been removed: abandoned by upstream"; # Added 2022-05-13 367 368 dhall-text = throw "'dhall-text' has been deprecated in favor of the 'dhall text' command from 'dhall'"; # Added 2022-03-26 368 369 digikam5 = throw "'digikam5' has been renamed to/replaced by 'digikam'"; # Converted to throw 2022-02-22 ··· 512 513 giflib_4_1 = throw "giflib_4_1 has been removed; use giflib instead"; # Added 2020-02-12 513 514 git-annex-remote-b2 = throw "git-annex-remote-b2 has been dropped due to the lack of maintanence from upstream since 2016"; # Added 2022-06-02 514 515 git-bz = throw "giz-bz has been removed from nixpkgs as it is stuck on python2"; # Added 2022-01-01 516 + git-subset = throw "'git-subset' has been removed in favor of 'git-filter-repo'"; # Added 2023-01-13 515 517 516 518 gitAndTools = self // { 517 519 darcsToGit = darcs-to-git; ··· 655 657 idea = throw "'idea' has been renamed to/replaced by 'jetbrains'"; # Converted to throw 2022-02-22 656 658 ike = throw "ike has been removed, because it was unmaintained"; # Added 2022-05-26 657 659 imapproxy = throw "imapproxy has been removed because it did not support a supported openssl version"; # added 2021-12-15 660 + imag = throw "'imag' has been removed, upstream gone"; # Added 2023-01-13 658 661 imagemagick7Big = imagemagickBig; # Added 2021-02-22 659 662 imagemagick7 = imagemagick; # Added 2021-02-22 660 663 imagemagick7_light = imagemagick_light; # Added 2021-02-22
+4 -18
pkgs/top-level/all-packages.nix
··· 1883 1883 1884 1884 git-subrepo = callPackage ../applications/version-management/git-subrepo { }; 1885 1885 1886 - git-subset = callPackage ../applications/version-management/git-subset { 1887 - openssl = openssl_1_1; 1888 - inherit (darwin.apple_sdk.frameworks) Security; 1889 - }; 1890 - 1891 1886 git-subtrac = callPackage ../applications/version-management/git-subtrac { }; 1892 1887 1893 1888 git-sync = callPackage ../applications/version-management/git-sync { }; ··· 4100 4095 swaycwd = callPackage ../tools/wayland/swaycwd { }; 4101 4096 4102 4097 swayr = callPackage ../tools/wayland/swayr { }; 4098 + 4099 + swayrbar = callPackage ../tools/wayland/swayrbar { }; 4103 4100 4104 4101 swaysome = callPackage ../tools/wayland/swaysome { }; 4105 4102 ··· 12732 12729 12733 12730 tunnelto = callPackage ../tools/networking/tunnelto { 12734 12731 inherit (darwin.apple_sdk.frameworks) Security; 12735 - openssl = openssl_1_1; 12736 12732 }; 12737 12733 12738 12734 tuptime = callPackage ../tools/system/tuptime { }; ··· 15838 15834 inherit (darwin.apple_sdk.frameworks) Security; 15839 15835 }; 15840 15836 15841 - devserver = callPackage ../development/tools/rust/devserver { 15842 - inherit (darwin.apple_sdk.frameworks) CoreServices; 15843 - openssl = openssl_1_1; 15844 - }; 15845 - 15846 15837 devspace = callPackage ../development/tools/misc/devspace { }; 15847 15838 15848 15839 maturin = callPackage ../development/tools/rust/maturin { ··· 16584 16575 pew = callPackage ../development/tools/pew {}; 16585 16576 16586 16577 poetry = callPackage ../tools/package-management/poetry { }; 16578 + 16579 + poetryPlugins = recurseIntoAttrs poetry.plugins; 16587 16580 16588 16581 poetry2nix = callPackage ../development/tools/poetry2nix/poetry2nix { 16589 16582 inherit pkgs lib; ··· 19228 19221 19229 19222 coinlive = callPackage ../tools/misc/coinlive { 19230 19223 inherit (darwin.apple_sdk.frameworks) Security; 19231 - openssl = openssl_1_1; 19232 19224 }; 19233 19225 19234 19226 cointop = callPackage ../applications/misc/cointop { }; ··· 29150 29142 29151 29143 finalfrontier = callPackage ../applications/science/machine-learning/finalfrontier { 29152 29144 inherit (darwin.apple_sdk.frameworks) Security; 29153 - openssl = openssl_1_1; 29154 29145 }; 29155 29146 29156 29147 finalfusion-utils = callPackage ../applications/science/machine-learning/finalfusion-utils { ··· 30284 30275 }; 30285 30276 30286 30277 avalonia-ilspy = callPackage ../applications/misc/avalonia-ilspy { }; 30287 - 30288 - imag = callPackage ../applications/misc/imag { 30289 - inherit (darwin.apple_sdk.frameworks) Security; 30290 - openssl = openssl_1_1; 30291 - }; 30292 30278 30293 30279 image-roll = callPackage ../applications/graphics/image-roll { }; 30294 30280
+12 -3
pkgs/top-level/linux-kernels.nix
··· 184 184 then latest 185 185 else testing; 186 186 187 - linux_testing_bcachefs = callPackage ../os-specific/linux/kernel/linux-testing-bcachefs.nix rec { 188 - kernel = linux_6_1; 189 - kernelPatches = kernel.kernelPatches; 187 + linux_testing_bcachefs = callPackage ../os-specific/linux/kernel/linux-testing-bcachefs.nix { 188 + # Pinned on the last version which Kent's commits can be cleany rebased up. 189 + kernel = buildLinux rec { 190 + version = "6.1.3"; 191 + modDirVersion = lib.versions.pad 3 version; 192 + extraMeta.branch = lib.versions.majorMinor version; 193 + src = fetchurl { 194 + url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz"; 195 + hash = "sha256-bcia56dRPkM8WXxzRu1/9L/RFepDo7XiemvbOMVYAxc="; 196 + }; 197 + }; 198 + kernelPatches = linux_6_1.kernelPatches; 190 199 }; 191 200 192 201 linux_hardkernel_4_14 = callPackage ../os-specific/linux/kernel/linux-hardkernel-4.14.nix {
+1 -1
pkgs/top-level/make-tarball.nix
··· 64 64 echo "generating packages.json" 65 65 mkdir -p $out/nix-support 66 66 echo -n '{"version":2,"packages":' > tmp 67 - nix-env -f . -I nixpkgs=$src -qa --meta --json --arg config 'import ${./packages-config.nix}' "''${opts[@]}" >> tmp 67 + nix-env -f . -I nixpkgs=$src -qa --meta --json --show-trace --arg config 'import ${./packages-config.nix}' "''${opts[@]}" >> tmp 68 68 echo -n '}' >> tmp 69 69 packages=$out/packages.json.br 70 70 < tmp sed "s|$(pwd)/||g" | jq -c | brotli -9 > $packages