Merge master into staging-next

This commit is contained in:
github-actions[bot] 2023-02-04 00:02:11 +00:00 committed by GitHub
commit 2e0f3bc57b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 412 additions and 304 deletions

View file

@ -23,7 +23,7 @@ pkgs.releaseTools.makeSourceTarball {
cp -prd . ../$releaseName cp -prd . ../$releaseName
chmod -R u+w ../$releaseName chmod -R u+w ../$releaseName
ln -s . ../$releaseName/nixpkgs # hack to make <nixpkgs> work ln -s . ../$releaseName/nixpkgs # hack to make <nixpkgs> work
NIX_STATE_DIR=$TMPDIR nix-env -f ../$releaseName/default.nix -qaP --meta --xml \* > /dev/null NIX_STATE_DIR=$TMPDIR nix-env -f ../$releaseName/default.nix -qaP --meta --show-trace --xml \* > /dev/null
cd .. cd ..
chmod -R u+w $releaseName chmod -R u+w $releaseName
tar cfJ $out/tarballs/$releaseName.tar.xz $releaseName tar cfJ $out/tarballs/$releaseName.tar.xz $releaseName

View file

@ -25,5 +25,9 @@ import ./make-test-python.nix ({ pkgs, ... }: {
print(machine.succeed("bpftrace -e 'kprobe:schedule { " print(machine.succeed("bpftrace -e 'kprobe:schedule { "
" printf(\"tgid: %d\", ((struct task_struct*) curtask)->tgid); exit() " " printf(\"tgid: %d\", ((struct task_struct*) curtask)->tgid); exit() "
"}'")) "}'"))
# module BTF (bpftrace >= 0.17)
print(machine.succeed("bpftrace -e 'kfunc:nft_trans_alloc_gfp { "
" printf(\"portid: %d\\n\",args->ctx->portid); "
"} BEGIN { exit() }'"))
''; '';
}) })

View file

@ -1,61 +0,0 @@
{ lib, stdenv
, rustPlatform
, fetchFromGitHub
, llvmPackages
, openssl
, pkg-config
, installShellFiles
, Security
, gitMinimal
, util-linuxMinimal
}:
rustPlatform.buildRustPackage rec {
pname = "imag";
version = "0.10.1";
src = fetchFromGitHub {
owner = "matthiasbeyer";
repo = pname;
rev = "v${version}";
sha256 = "0f9915f083z5qqcxyavj0w6m973c8m1x7kfb89pah5agryy5mkaq";
};
nativeBuildInputs = [ installShellFiles pkg-config rustPlatform.bindgenHook ];
buildInputs = [ openssl ]
++ lib.optional stdenv.isDarwin Security;
nativeCheckInputs = [ gitMinimal util-linuxMinimal ];
cargoSha256 = "1vnrc72g2271i2p847z30kplxmdpi60n3dzpw0s7dahg33g14ai6";
checkPhase = ''
export HOME=$TMPDIR
git config --global user.email "nobody@example.com"
git config --global user.name "Nobody"
# UI tests uses executables directly, so we need to build them before
# launching the tests
cargo build
'' + (
# CLI uses the presence of a controlling TTY to check if arguments are
# passed in stdin, or in the command-line, so we use script to create
# a PTY for us.
if !stdenv.isDarwin then ''
script -qfec "cargo test --workspace"
'' else ''
script -q "cargo test --workspace"
''
);
postInstall = ''
installShellCompletion target/imag.{bash,fish} --zsh target/_imag
'';
meta = with lib; {
description = "Commandline personal information management suite";
homepage = "https://imag-pim.org/";
license = licenses.lgpl21;
maintainers = with maintainers; [ Br1ght0ne minijackson ];
platforms = platforms.unix;
};
}

View file

@ -11,16 +11,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "finalfrontier"; pname = "finalfrontier";
version = "0.9.4"; version = "unstable-2022-01-06";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "finalfusion"; owner = "finalfusion";
repo = pname; repo = pname;
rev = version; rev = "2461fb1dde13b73039926aa66606e470907a1b59";
sha256 = "1lvwv238p8hrl4sc5pmnvaargl2dd25p44gxl3kibq5ng03afd0n"; sha256 = "sha256-bnRzXIYairlBjv2JxU16UXYc5BB3VeKZNiJ4+XDzub4=";
}; };
cargoSha256 = "0lhcazcih48gc23q484h344bzz7p3lh189ljhswdyph2i11caarp"; cargoSha256 = "sha256-C/D9EPfifyajrCyXE8w/qRuzWEoyJJIcj4xii94/9l4=";
nativeBuildInputs = [ nativeBuildInputs = [
installShellFiles installShellFiles

View file

@ -1,26 +0,0 @@
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, curl, libiconv, Security }:
rustPlatform.buildRustPackage rec {
pname = "git-subset";
version = "0.1.1";
src = fetchFromGitHub {
owner = "jasonwhite";
repo = pname;
rev = "v${version}";
sha256 = "02z2r0kcd0nnn1zjslp6xxam5ddbhrmzn67qzxhlamsw0p9vvkbb";
};
cargoSha256 = "0lc9m9prmhr4ipjh95cfczvlmpp9scryksvqd49h4acyr904n7ry";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ curl libiconv Security ];
meta = with lib; {
description = "Super fast Git tree filtering";
homepage = "https://github.com/jasonwhite/git-subset";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "v2ray-geoip"; pname = "v2ray-geoip";
version = "202301260045"; version = "202302020047";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "v2fly"; owner = "v2fly";
repo = "geoip"; repo = "geoip";
rev = "dda29e7611d13ff6f580cf389a7b84194363f75c"; rev = "9ab244ed78fea88a1ce5bf789fb31bbcd81e8d17";
sha256 = "sha256-9X9Oh4WFFpuRG1jQyQHTqNOCcW5f+uNOjH1iv1i6Je0="; sha256 = "sha256-2NYuvzOU0W3qZqWZMr3rTNqX+0rH3fhIr1zCD5dSdWc=";
}; };
installPhase = '' installPhase = ''

View file

@ -1,31 +0,0 @@
{ lib
, stdenv
, fetchCrate
, rustPlatform
, openssl
, pkg-config
, CoreServices
}:
rustPlatform.buildRustPackage rec {
pname = "devserver";
version = "0.4.0";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-UcrLzsALwl0zqNRMS1kTTXsR6wN8XDd5Iq+yrudh6M4=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin CoreServices;
cargoSha256 = "sha256-XlrQ6CvjeWnzvfaeNbe8FtMXMVSQNLxDVIEjyHm57Js=";
meta = with lib; {
description = "An extremely tiny tool to serve a static folder locally";
homepage = "https://github.com/kettle11/devserver";
license = licenses.zlib;
maintainers = with maintainers; [ nickhu ];
};
}

View file

@ -17,15 +17,15 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "deno"; pname = "deno";
version = "1.30.0"; version = "1.30.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "denoland"; owner = "denoland";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-He8RgzmiL8Zp+klm0JPNeqbyjK/5CsE7HB2Hco7GZss="; sha256 = "sha256-WpS1pqy6o8FUWMdJpzG5T8xoCkQZ/SbWI4k9vellVb8=";
}; };
cargoSha256 = "sha256-lPgVivYsR3SljPkjRRkb3qM3ZO7RALfk1KGPd7cwSYQ="; cargoSha256 = "sha256-RVoXHrEWMwuC+nD6ypiZzGsYEr/BFReE67z7gqqDOzA=";
postPatch = '' postPatch = ''
# upstream uses lld on aarch64-darwin for faster builds # upstream uses lld on aarch64-darwin for faster builds

View file

@ -24,14 +24,14 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "vcmi"; pname = "vcmi";
version = "1.1.0"; version = "1.1.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "vcmi"; owner = "vcmi";
repo = "vcmi"; repo = "vcmi";
rev = version; rev = version;
fetchSubmodules = true; fetchSubmodules = true;
hash = "sha256-Ah+aAuU2ioUfvtxfcSb4GNqriqY71ee5RhW2L9UMYFY="; hash = "sha256-/BHpAXOCLi6d0+/uE79g8p6YO1swizItAwVlPVf/nkQ=";
}; };
postPatch = '' postPatch = ''
@ -69,7 +69,9 @@ stdenv.mkDerivation rec {
# Upstream assumes relative value while Nixpkgs passes absolute. # Upstream assumes relative value while Nixpkgs passes absolute.
# Both should be allowed: https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html # Both should be allowed: https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
# Meanwhile work it around by passing a relative value. # Meanwhile work it around by passing a relative value.
"-DCMAKE_INSTALL_BINDIR:STRING=bin"
"-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_LIBDIR:STRING=lib"
"-DCMAKE_INSTALL_DATAROOTDIR:STRING=share"
]; ];
postFixup = '' postFixup = ''

View file

@ -9,13 +9,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bpftrace"; pname = "bpftrace";
version = "0.16.0"; version = "0.17.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "iovisor"; owner = "iovisor";
repo = "bpftrace"; repo = "bpftrace";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-S43KS/qpzxU+Sgkcud4Cyx4yRjaT6SZzLv6R6bg5I2w="; sha256 = "sha256-PBqq3u8zym+RY6xudJ66ItzDZEJBNvJDtve1GtxcOdQ=";
}; };
buildInputs = with llvmPackages; buildInputs = with llvmPackages;

View file

@ -1,32 +1,56 @@
{ rustPlatform, lib, fetchFromGitHub, xz, pkg-config, openssl, dbus, glib, udev, cairo, pango, atk, gdk-pixbuf, gtk3, wrapGAppsHook }: { lib
rustPlatform.buildRustPackage rec { , stdenv
, rustPlatform
, fetchFromGitHub
, xz
, pkg-config
, openssl
, dbus
, glib
, udev
, cairo
, pango
, atk
, gdk-pixbuf
, gtk3
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "firmware-manager"; pname = "firmware-manager";
version = "0.1.2"; version = "unstable-2022-12-09";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pop-os"; owner = "pop-os";
repo = pname; repo = pname;
rev = version; rev = "9be8160346689bd74f95db7897884a91fa48afe3";
sha256 = "sha256-aKatdjHa/k7j48upkR1O6PFxCUfJYE3KhhzZ9Ohe0Jc="; sha256 = "sha256-zZk2RVghhKxETSVv/Jtv8Wq6+ITx/BudE/o7h4jKk5M=";
}; };
nativeBuildInputs = [ pkg-config wrapGAppsHook ]; cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
buildInputs = [ xz openssl dbus glib udev cairo pango atk gdk-pixbuf gtk3 ]; sha256 = "sha256-3drsOmlmy1xXRWg7WMDNN+iuVmPYf60sDLIdCvu4rEw=";
};
depsExtraArgs.postPatch = "make prefix='$(out)' toml-gen";
postPatch = '' postPatch = ''
sed -i 's|etc|$(prefix)/etc|' Makefile substituteInPlace Makefile --replace '$(DESTDIR)/etc' '$(DESTDIR)$(prefix)/etc'
''; '';
buildPhase = "make prefix='$(out)'"; nativeBuildInputs = with rustPlatform; [
rust.cargo
rust.rustc
pkg-config
cargoSetupHook
wrapGAppsHook
];
installPhase = "make prefix='$(out)' install"; buildInputs = [
openssl
gtk3
udev
];
cargoSha256 = "sha256-BUo77ERHvuc8IkDdU3Z/gZZicNHT26IbAgEBnVM3O4U="; makeFlags = [ "prefix=$(out)" ];
doCheck = false;
meta = { meta = {
description = "Graphical frontend for firmware management"; description = "Graphical frontend for firmware management";

View file

@ -1,9 +1,9 @@
{ lib { lib
, fetchpatch , fetchpatch
, kernel , kernel
, commitDate ? "2022-12-29" , commitDate ? "2023-02-01"
, currentCommit ? "8f064a4cb5c7cce289b83d7a459e6d8620188b37" , currentCommit ? "65960c284ad149cc4bfbd64f21e6889c1e3d1c5f"
, diffHash ? "sha256-RnlM7uOSWhFHG1aj5BOjrfRtoZfbx+tqQw1V49nW5vw=" , diffHash ? "sha256-4wpY3aYZ93OXSU4wmQs9K62nPyIzjKu4RBQTwksmyyk="
, kernelPatches # must always be defined in bcachefs' all-packages.nix entry because it's also a top-level attribute supplied by callPackage , kernelPatches # must always be defined in bcachefs' all-packages.nix entry because it's also a top-level attribute supplied by callPackage
, argsOverride ? {} , argsOverride ? {}
@ -17,7 +17,7 @@
extraMeta = { extraMeta = {
branch = "master"; branch = "master";
maintainers = with lib.maintainers; [ davidak Madouura ]; maintainers = with lib.maintainers; [ davidak Madouura pedrohlc ];
}; };
} // argsOverride; } // argsOverride;

View file

@ -25,13 +25,13 @@
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "bcachefs-tools"; pname = "bcachefs-tools";
version = "unstable-2022-12-29"; version = "unstable-2023-01-31";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "koverstreet"; owner = "koverstreet";
repo = "bcachefs-tools"; repo = "bcachefs-tools";
rev = "42cf74fd1d0ef58927967e6236988e86cfc0d086"; rev = "3c39b422acd3346321185be0ce263809e2a9a23f";
sha256 = "sha256-N/1heStwmB7CzE/ddTud/ywnMdhq8ZkLju+x0UL0yjY="; hash = "sha256-2ci/m4JfodLiPoWfP+QCEqlk0k48zq3mKb8Pdrtln0o=";
}; };
postPatch = '' postPatch = ''

View file

@ -9,16 +9,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "coinlive"; pname = "coinlive";
version = "0.2.1"; version = "0.2.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mayeranalytics"; owner = "mayeranalytics";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-i21C1ZSAPoUOBlnDQl40/17yRqmNx3wkjswHJeV9vko="; hash = "sha256-llw97jjfPsDd4nYi6lb9ug6sApPoD54WlzpJswvdbRs=";
}; };
cargoSha256 = "sha256-0pUXCY5rZWh26KGD2OU2+M9L0RtCIan6hmuNeIeBEHI="; cargoSha256 = "sha256-T1TgwnohUDvfpn6GXNP4xJGHM3aenMK+ORxE3z3PPA4=";
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
@ -30,6 +30,11 @@ rustPlatform.buildRustPackage rec {
Security Security
]; ];
checkFlags = [
# requires network access
"--skip=utils::test_get_infos"
];
meta = with lib; { meta = with lib; {
description = "Live cryptocurrency prices CLI"; description = "Live cryptocurrency prices CLI";
homepage = "https://github.com/mayeranalytics/coinlive"; homepage = "https://github.com/mayeranalytics/coinlive";

View file

@ -8,16 +8,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "tunnelto"; pname = "tunnelto";
version = "0.1.18"; version = "unstable-2022-09-25";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "agrinman"; owner = "agrinman";
repo = pname; repo = pname;
rev = version; rev = "06428f13c638180dd349a4c42a17b569ab51a25f";
sha256 = "sha256-dCHl5EXjUagOKeHxqb3GlAoSDw0u3tQ4GKEtbFF8OSs="; sha256 = "sha256-84jGcR/E1QoqIlbGu67muYUtZU66ZJtj4tdZvmYbII4=";
}; };
cargoSha256 = "sha256-6HU1w69cJj+tE1IUUNoxh0cHEwlRKF5qWx7FiOHeUNk="; cargoSha256 = "sha256-bVHvQRtnKwrwS0huax6OrteYfxws2Ce2fFaBQ3oeoow=";
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ]; nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
buildInputs = [ ] buildInputs = [ ]

View file

@ -1,13 +1,13 @@
{ lib { lib
, stdenv
, python3 , python3
, fetchFromGitHub
, installShellFiles
}: }:
let let
python = python3.override { python = python3.override {
packageOverrides = self: super: { packageOverrides = self: super: {
poetry = self.callPackage ./unwrapped.nix { };
# version overrides required by poetry and its plugins
dulwich = super.dulwich.overridePythonAttrs (old: rec { dulwich = super.dulwich.overridePythonAttrs (old: rec {
version = "0.20.50"; version = "0.20.50";
src = self.fetchPypi { src = self.fetchPypi {
@ -18,118 +18,30 @@ let
}); });
}; };
}; };
in python.pkgs.buildPythonApplication rec {
pname = "poetry";
version = "1.3.2";
format = "pyproject";
disabled = python.pkgs.pythonOlder "3.7"; plugins = with python.pkgs; {
poetry-audit-plugin = callPackage ./plugins/poetry-audit-plugin.nix { };
src = fetchFromGitHub { poetry-plugin-up = callPackage ./plugins/poetry-plugin-up.nix { };
owner = "python-poetry";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-12EiEGI9Vkb6EUY/W2KWeLigxWra1Be4ozvi8njBpEU=";
}; };
nativeBuildInputs = [ # selector is a function mapping pythonPackages to a list of plugins
installShellFiles # e.g. poetry.withPlugins (ps: with ps; [ poetry-plugin-up ])
]; withPlugins = selector: let
selected = selector plugins;
in python.pkgs.toPythonApplication (python.pkgs.poetry.overridePythonAttrs (old: {
propagatedBuildInputs = old.propagatedBuildInputs ++ selected;
propagatedBuildInputs = with python.pkgs; [ # save some build time when adding plugins by disabling tests
cachecontrol doCheck = selected == [ ];
cleo
crashtest
dulwich
filelock
html5lib
jsonschema
keyring
packaging
pexpect
pkginfo
platformdirs
poetry-core
poetry-plugin-export
requests
requests-toolbelt
shellingham
tomlkit
trove-classifiers
virtualenv
] ++ lib.optionals (stdenv.isDarwin) [
xattr
] ++ lib.optionals (pythonOlder "3.11") [
tomli
] ++ lib.optionals (pythonOlder "3.10") [
importlib-metadata
] ++ lib.optionals (pythonOlder "3.8") [
backports-cached-property
] ++ cachecontrol.optional-dependencies.filecache;
postInstall = '' # Propagating dependencies leaks them through $PYTHONPATH which causes issues
installShellCompletion --cmd poetry \ # when used in nix-shell.
--bash <($out/bin/poetry completions bash) \ postFixup = ''
--fish <($out/bin/poetry completions fish) \ rm $out/nix-support/propagated-build-inputs
--zsh <($out/bin/poetry completions zsh) \ '';
'';
# Propagating dependencies leaks them through $PYTHONPATH which causes issues passthru = rec {
# when used in nix-shell. inherit plugins withPlugins;
postFixup = '' };
rm $out/nix-support/propagated-build-inputs }));
''; in withPlugins (ps: [ ])
nativeCheckInputs = with python.pkgs; [
cachy
deepdiff
flatdict
pytestCheckHook
httpretty
pytest-mock
pytest-xdist
];
preCheck = (''
export HOME=$TMPDIR
'' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
# https://github.com/python/cpython/issues/74570#issuecomment-1093748531
export no_proxy='*';
'');
postCheck = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
unset no_proxy
'';
disabledTests = [
# touches network
"git"
"solver"
"load"
"vcs"
"prereleases_if_they_are_compatible"
"test_executor"
# requires git history to work correctly
"default_with_excluded_data"
# toml ordering has changed
"lock"
# fs permission errors
"test_builder_should_execute_build_scripts"
] ++ lib.optionals (python.pythonAtLeast "3.10") [
# RuntimeError: 'auto_spec' might be a typo; use unsafe=True if this is intended
"test_info_setup_complex_pep517_error"
];
# Allow for package to use pep420's native namespaces
pythonNamespaces = [
"poetry"
];
meta = with lib; {
changelog = "https://github.com/python-poetry/poetry/blob/${src.rev}/CHANGELOG.md";
homepage = "https://python-poetry.org/";
description = "Python dependency management and packaging made easy";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum dotlambda ];
};
}

View file

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, poetry
, safety
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "poetry-audit-plugin";
version = "0.3.0";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "opeco17";
repo = "poetry-audit-plugin";
rev = "refs/tags/${version}";
hash = "sha256-49OnYz3EFiqOe+cLgfynjy14Ve4Ga6OUrLdM8HhZuKQ=";
};
nativeBuildInputs = [
poetry-core
];
buildInputs = [
poetry
];
propagatedBuildInputs = [
safety
];
pythonImportsCheck = [ "poetry_audit_plugin" ];
nativeCheckInputs = [
poetry # for the executable
pytestCheckHook
];
# requires networking
doCheck = false;
meta = {
description = "Poetry plugin for checking security vulnerabilities in dependencies";
homepage = "https://github.com/opeco17/poetry-audit-plugin";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View file

@ -0,0 +1,43 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, poetry-core
, pytestCheckHook
, pytest-mock
, poetry
}:
buildPythonPackage rec {
pname = "poetry-plugin-up";
version = "0.2.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "MousaZeidBaker";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-16p0emvgWa56Km8U5HualCSStbulqyINbC3Jez9Y1n0=";
};
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
poetry
];
preCheck = ''
export HOME=$TMPDIR
'';
meta = with lib; {
description = "Poetry plugin to simplify package updates";
homepage = "https://github.com/MousaZeidBaker/poetry-plugin-up";
changelog = "https://github.com/MousaZeidBaker/poetry-plugin-up/releases/tag/${version}";
license = licenses.mit;
maintainers = [ maintainers.k900 ];
};
}

View file

@ -0,0 +1,149 @@
{ lib
, stdenv
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, installShellFiles
, cachecontrol
, cleo
, crashtest
, dulwich
, filelock
, html5lib
, jsonschema
, keyring
, packaging
, pexpect
, pkginfo
, platformdirs
, poetry-core
, poetry-plugin-export
, requests
, requests-toolbelt
, shellingham
, tomlkit
, trove-classifiers
, virtualenv
, xattr
, tomli
, importlib-metadata
, backports-cached-property
, cachy
, deepdiff
, flatdict
, pytestCheckHook
, httpretty
, pytest-mock
, pytest-xdist
, pythonAtLeast
}:
buildPythonPackage rec {
pname = "poetry";
version = "1.3.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "python-poetry";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-12EiEGI9Vkb6EUY/W2KWeLigxWra1Be4ozvi8njBpEU=";
};
nativeBuildInputs = [
installShellFiles
];
propagatedBuildInputs = [
cachecontrol
cleo
crashtest
dulwich
filelock
html5lib
jsonschema
keyring
packaging
pexpect
pkginfo
platformdirs
poetry-core
poetry-plugin-export
requests
requests-toolbelt
shellingham
tomlkit
trove-classifiers
virtualenv
] ++ lib.optionals (stdenv.isDarwin) [
xattr
] ++ lib.optionals (pythonOlder "3.11") [
tomli
] ++ lib.optionals (pythonOlder "3.10") [
importlib-metadata
] ++ lib.optionals (pythonOlder "3.8") [
backports-cached-property
] ++ cachecontrol.optional-dependencies.filecache;
postInstall = ''
installShellCompletion --cmd poetry \
--bash <($out/bin/poetry completions bash) \
--fish <($out/bin/poetry completions fish) \
--zsh <($out/bin/poetry completions zsh) \
'';
nativeCheckInputs = [
cachy
deepdiff
flatdict
pytestCheckHook
httpretty
pytest-mock
pytest-xdist
];
preCheck = (''
export HOME=$TMPDIR
'' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
# https://github.com/python/cpython/issues/74570#issuecomment-1093748531
export no_proxy='*';
'');
postCheck = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
unset no_proxy
'';
disabledTests = [
# touches network
"git"
"solver"
"load"
"vcs"
"prereleases_if_they_are_compatible"
"test_executor"
# requires git history to work correctly
"default_with_excluded_data"
# toml ordering has changed
"lock"
# fs permission errors
"test_builder_should_execute_build_scripts"
] ++ lib.optionals (pythonAtLeast "3.10") [
# RuntimeError: 'auto_spec' might be a typo; use unsafe=True if this is intended
"test_info_setup_complex_pep517_error"
];
# Allow for package to use pep420's native namespaces
pythonNamespaces = [
"poetry"
];
meta = with lib; {
changelog = "https://github.com/python-poetry/poetry/blob/${src.rev}/CHANGELOG.md";
homepage = "https://python-poetry.org/";
description = "Python dependency management and packaging made easy";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum dotlambda ];
};
}

View file

@ -1,21 +1,20 @@
{ lib { lib
, rustPlatform
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
, rustPlatform
, tree-sitter
, difftastic
, testers , testers
, difftastic
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "difftastic"; pname = "difftastic";
version = "0.42.0"; version = "0.43.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wilfred"; owner = "wilfred";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-9ooVXGZ7MEB4D0awciJJio3ttqxEQ8EUBbIQ6xxrXh0="; sha256 = "sha256-YL2rKsP5FSoG1gIyxQtt9kovBAyu8Flko5RxXRQy5mQ=";
}; };
depsExtraArgs = { depsExtraArgs = {
@ -40,14 +39,20 @@ rustPlatform.buildRustPackage rec {
popd popd
''; '';
}; };
cargoSha256 = "sha256-Zbnk5tcCRoaEH3A1mbsfpEhLe1EMcZqPQ4vzWxi0oG0="; cargoSha256 = "sha256-SUNBnJP8B/HvlozcCbehL1A2/WudYE20DIPc7/fYF/k=";
checkFlags = [
# test is broken
# https://github.com/Wilfred/difftastic/issues/479
"--skip=files::tests::test_gzip_is_binary"
];
passthru.tests.version = testers.testVersion { package = difftastic; }; passthru.tests.version = testers.testVersion { package = difftastic; };
meta = with lib; { meta = with lib; {
description = "A syntax-aware diff"; description = "A syntax-aware diff";
homepage = "https://github.com/Wilfred/difftastic"; homepage = "https://github.com/Wilfred/difftastic";
changelog = "https://github.com/Wilfred/difftastic/raw/${version}/CHANGELOG.md"; changelog = "https://github.com/Wilfred/difftastic/blob/${version}/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ ethancedwards8 figsoda ]; maintainers = with maintainers; [ ethancedwards8 figsoda ];
mainProgram = "difft"; mainProgram = "difft";

View file

@ -0,0 +1,30 @@
{ lib, fetchFromSourcehut, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "swayrbar";
version = "0.3.4";
src = fetchFromSourcehut {
owner = "~tsdh";
repo = "swayr";
rev = "swayrbar-${version}";
sha256 = "sha256-OQhq5ZUe2OrfRFxoaAbbewoHgQVPv9cQy0VCpYe1SNo=";
};
cargoHash = "sha256-vM4SoRbVylN90b378Qk18A8/2S2IB88lnGCM6sqrhs8=";
# don't build swayr
buildAndTestSubdir = pname;
preCheck = ''
export HOME=$TMPDIR
'';
meta = with lib; {
description = "Status command for sway's swaybar implementing the swaybar-protocol";
homepage = "https://git.sr.ht/~tsdh/swayr#a-idswayrbarswayrbara";
license = with licenses; [ gpl3Plus ];
platforms = platforms.linux;
maintainers = with maintainers; [ sebtm ];
};
}

View file

@ -363,6 +363,7 @@ mapAliases ({
demjson = with python3Packages; toPythonApplication demjson; # Added 2022-01-18 demjson = with python3Packages; toPythonApplication demjson; # Added 2022-01-18
desktop_file_utils = throw "'desktop_file_utils' has been renamed to/replaced by 'desktop-file-utils'"; # Converted to throw 2022-02-22 desktop_file_utils = throw "'desktop_file_utils' has been renamed to/replaced by 'desktop-file-utils'"; # Converted to throw 2022-02-22
devicemapper = throw "'devicemapper' has been renamed to/replaced by 'lvm2'"; # Converted to throw 2022-02-22 devicemapper = throw "'devicemapper' has been renamed to/replaced by 'lvm2'"; # Converted to throw 2022-02-22
devserver = throw "'devserver' has been removed in favor of 'miniserve' or other alternatives"; # Added 2023-01-13
dfu-util-axoloti = throw "dfu-util-axoloti has been removed: abandoned by upstream"; # Added 2022-05-13 dfu-util-axoloti = throw "dfu-util-axoloti has been removed: abandoned by upstream"; # Added 2022-05-13
dhall-text = throw "'dhall-text' has been deprecated in favor of the 'dhall text' command from 'dhall'"; # Added 2022-03-26 dhall-text = throw "'dhall-text' has been deprecated in favor of the 'dhall text' command from 'dhall'"; # Added 2022-03-26
digikam5 = throw "'digikam5' has been renamed to/replaced by 'digikam'"; # Converted to throw 2022-02-22 digikam5 = throw "'digikam5' has been renamed to/replaced by 'digikam'"; # Converted to throw 2022-02-22
@ -512,6 +513,7 @@ mapAliases ({
giflib_4_1 = throw "giflib_4_1 has been removed; use giflib instead"; # Added 2020-02-12 giflib_4_1 = throw "giflib_4_1 has been removed; use giflib instead"; # Added 2020-02-12
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 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
git-bz = throw "giz-bz has been removed from nixpkgs as it is stuck on python2"; # Added 2022-01-01 git-bz = throw "giz-bz has been removed from nixpkgs as it is stuck on python2"; # Added 2022-01-01
git-subset = throw "'git-subset' has been removed in favor of 'git-filter-repo'"; # Added 2023-01-13
gitAndTools = self // { gitAndTools = self // {
darcsToGit = darcs-to-git; darcsToGit = darcs-to-git;
@ -655,6 +657,7 @@ mapAliases ({
idea = throw "'idea' has been renamed to/replaced by 'jetbrains'"; # Converted to throw 2022-02-22 idea = throw "'idea' has been renamed to/replaced by 'jetbrains'"; # Converted to throw 2022-02-22
ike = throw "ike has been removed, because it was unmaintained"; # Added 2022-05-26 ike = throw "ike has been removed, because it was unmaintained"; # Added 2022-05-26
imapproxy = throw "imapproxy has been removed because it did not support a supported openssl version"; # added 2021-12-15 imapproxy = throw "imapproxy has been removed because it did not support a supported openssl version"; # added 2021-12-15
imag = throw "'imag' has been removed, upstream gone"; # Added 2023-01-13
imagemagick7Big = imagemagickBig; # Added 2021-02-22 imagemagick7Big = imagemagickBig; # Added 2021-02-22
imagemagick7 = imagemagick; # Added 2021-02-22 imagemagick7 = imagemagick; # Added 2021-02-22
imagemagick7_light = imagemagick_light; # Added 2021-02-22 imagemagick7_light = imagemagick_light; # Added 2021-02-22

View file

@ -1883,11 +1883,6 @@ with pkgs;
git-subrepo = callPackage ../applications/version-management/git-subrepo { }; git-subrepo = callPackage ../applications/version-management/git-subrepo { };
git-subset = callPackage ../applications/version-management/git-subset {
openssl = openssl_1_1;
inherit (darwin.apple_sdk.frameworks) Security;
};
git-subtrac = callPackage ../applications/version-management/git-subtrac { }; git-subtrac = callPackage ../applications/version-management/git-subtrac { };
git-sync = callPackage ../applications/version-management/git-sync { }; git-sync = callPackage ../applications/version-management/git-sync { };
@ -4101,6 +4096,8 @@ with pkgs;
swayr = callPackage ../tools/wayland/swayr { }; swayr = callPackage ../tools/wayland/swayr { };
swayrbar = callPackage ../tools/wayland/swayrbar { };
swaysome = callPackage ../tools/wayland/swaysome { }; swaysome = callPackage ../tools/wayland/swaysome { };
swayimg = callPackage ../tools/wayland/swayimg { }; swayimg = callPackage ../tools/wayland/swayimg { };
@ -12732,7 +12729,6 @@ with pkgs;
tunnelto = callPackage ../tools/networking/tunnelto { tunnelto = callPackage ../tools/networking/tunnelto {
inherit (darwin.apple_sdk.frameworks) Security; inherit (darwin.apple_sdk.frameworks) Security;
openssl = openssl_1_1;
}; };
tuptime = callPackage ../tools/system/tuptime { }; tuptime = callPackage ../tools/system/tuptime { };
@ -15838,11 +15834,6 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security; inherit (darwin.apple_sdk.frameworks) Security;
}; };
devserver = callPackage ../development/tools/rust/devserver {
inherit (darwin.apple_sdk.frameworks) CoreServices;
openssl = openssl_1_1;
};
devspace = callPackage ../development/tools/misc/devspace { }; devspace = callPackage ../development/tools/misc/devspace { };
maturin = callPackage ../development/tools/rust/maturin { maturin = callPackage ../development/tools/rust/maturin {
@ -16585,6 +16576,8 @@ with pkgs;
poetry = callPackage ../tools/package-management/poetry { }; poetry = callPackage ../tools/package-management/poetry { };
poetryPlugins = recurseIntoAttrs poetry.plugins;
poetry2nix = callPackage ../development/tools/poetry2nix/poetry2nix { poetry2nix = callPackage ../development/tools/poetry2nix/poetry2nix {
inherit pkgs lib; inherit pkgs lib;
}; };
@ -19228,7 +19221,6 @@ with pkgs;
coinlive = callPackage ../tools/misc/coinlive { coinlive = callPackage ../tools/misc/coinlive {
inherit (darwin.apple_sdk.frameworks) Security; inherit (darwin.apple_sdk.frameworks) Security;
openssl = openssl_1_1;
}; };
cointop = callPackage ../applications/misc/cointop { }; cointop = callPackage ../applications/misc/cointop { };
@ -29150,7 +29142,6 @@ with pkgs;
finalfrontier = callPackage ../applications/science/machine-learning/finalfrontier { finalfrontier = callPackage ../applications/science/machine-learning/finalfrontier {
inherit (darwin.apple_sdk.frameworks) Security; inherit (darwin.apple_sdk.frameworks) Security;
openssl = openssl_1_1;
}; };
finalfusion-utils = callPackage ../applications/science/machine-learning/finalfusion-utils { finalfusion-utils = callPackage ../applications/science/machine-learning/finalfusion-utils {
@ -30285,11 +30276,6 @@ with pkgs;
avalonia-ilspy = callPackage ../applications/misc/avalonia-ilspy { }; avalonia-ilspy = callPackage ../applications/misc/avalonia-ilspy { };
imag = callPackage ../applications/misc/imag {
inherit (darwin.apple_sdk.frameworks) Security;
openssl = openssl_1_1;
};
image-roll = callPackage ../applications/graphics/image-roll { }; image-roll = callPackage ../applications/graphics/image-roll { };
imagej = callPackage ../applications/graphics/imagej { }; imagej = callPackage ../applications/graphics/imagej { };

View file

@ -184,9 +184,18 @@ in {
then latest then latest
else testing; else testing;
linux_testing_bcachefs = callPackage ../os-specific/linux/kernel/linux-testing-bcachefs.nix rec { linux_testing_bcachefs = callPackage ../os-specific/linux/kernel/linux-testing-bcachefs.nix {
kernel = linux_6_1; # Pinned on the last version which Kent's commits can be cleany rebased up.
kernelPatches = kernel.kernelPatches; kernel = buildLinux rec {
version = "6.1.3";
modDirVersion = lib.versions.pad 3 version;
extraMeta.branch = lib.versions.majorMinor version;
src = fetchurl {
url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz";
hash = "sha256-bcia56dRPkM8WXxzRu1/9L/RFepDo7XiemvbOMVYAxc=";
};
};
kernelPatches = linux_6_1.kernelPatches;
}; };
linux_hardkernel_4_14 = callPackage ../os-specific/linux/kernel/linux-hardkernel-4.14.nix { linux_hardkernel_4_14 = callPackage ../os-specific/linux/kernel/linux-hardkernel-4.14.nix {

View file

@ -64,7 +64,7 @@ pkgs.releaseTools.sourceTarball {
echo "generating packages.json" echo "generating packages.json"
mkdir -p $out/nix-support mkdir -p $out/nix-support
echo -n '{"version":2,"packages":' > tmp echo -n '{"version":2,"packages":' > tmp
nix-env -f . -I nixpkgs=$src -qa --meta --json --arg config 'import ${./packages-config.nix}' "''${opts[@]}" >> tmp nix-env -f . -I nixpkgs=$src -qa --meta --json --show-trace --arg config 'import ${./packages-config.nix}' "''${opts[@]}" >> tmp
echo -n '}' >> tmp echo -n '}' >> tmp
packages=$out/packages.json.br packages=$out/packages.json.br
< tmp sed "s|$(pwd)/||g" | jq -c | brotli -9 > $packages < tmp sed "s|$(pwd)/||g" | jq -c | brotli -9 > $packages