0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

Merge branch 'master' into staging-next

This commit is contained in:
Vladimír Čunát 2022-09-27 08:20:58 +02:00
commit 85d3dce182
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
17 changed files with 97 additions and 70 deletions

View file

@ -309,7 +309,7 @@ The attribute can also contain a list, a script followed by arguments to be pass
passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ]; passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ];
``` ```
The script will be run with `UPDATE_NIX_ATTR_PATH` environment variable set to the attribute path it is supposed to update. The script will be run with the `UPDATE_NIX_NAME`, `UPDATE_NIX_PNAME`, `UPDATE_NIX_OLD_VERSION` and `UPDATE_NIX_ATTR_PATH` environment variables set respectively to the name, pname, old version and attribute path of the package it is supposed to update.
::: {.note} ::: {.note}
The script will be usually run from the root of the Nixpkgs repository but you should not rely on that. Also note that the update scripts will be run in parallel by default; you should avoid running `git commit` or any other commands that cannot handle that. The script will be usually run from the root of the Nixpkgs repository but you should not rely on that. Also note that the update scripts will be run in parallel by default; you should avoid running `git commit` or any other commands that cannot handle that.

View file

@ -52,7 +52,17 @@ async def run_update_script(nixpkgs_root: str, merge_lock: asyncio.Lock, temp_di
eprint(f" - {package['name']}: UPDATING ...") eprint(f" - {package['name']}: UPDATING ...")
try: try:
update_process = await check_subprocess('env', f"UPDATE_NIX_ATTR_PATH={package['attrPath']}", *update_script_command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE, cwd=worktree) update_process = await check_subprocess(
'env',
f"UPDATE_NIX_NAME={package['name']}",
f"UPDATE_NIX_PNAME={package['pname']}",
f"UPDATE_NIX_OLD_VERSION={package['oldVersion']}",
f"UPDATE_NIX_ATTR_PATH={package['attrPath']}",
*update_script_command,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
cwd=worktree,
)
update_info = await update_process.stdout.read() update_info = await update_process.stdout.read()
await merge_changes(merge_lock, package, update_info, temp_dir) await merge_changes(merge_lock, package, update_info, temp_dir)

View file

@ -555,6 +555,9 @@ while read -u 3 mountPoint; do
umount /tmp-iso umount /tmp-iso
rmdir /tmp-iso rmdir /tmp-iso
if [ -n "$isoPath" ] && [ $fsType = "iso9660" ] && mountpoint -q /findiso; then
umount /findiso
fi
continue continue
fi fi

View file

@ -20,7 +20,9 @@ let
}); });
}; };
commonOverrides = [ commonOverrides = [
(mkOverride "jsonschema" "3.2.0" "0ykr61yiiizgvm3bzipa3l73rvj49wmrybbfwhvpgk3pscl5pa68") (self: super: {
jsonschema = super.jsonschema_3;
})
]; ];
}; };
mkGui = args: libsForQt5.callPackage (import ./gui.nix (addVersion args // extraArgs)) { }; mkGui = args: libsForQt5.callPackage (import ./gui.nix (addVersion args // extraArgs)) { };

View file

@ -10,6 +10,7 @@
, python3 , python3
, fetchFromGitHub , fetchFromGitHub
, wrapQtAppsHook , wrapQtAppsHook
, packageOverrides ? self: super: {}
}: }:
let let
@ -17,21 +18,7 @@ let
]; ];
python = python3.override { python = python3.override {
packageOverrides = lib.foldr lib.composeExtensions (self: super: { packageOverrides = lib.foldr lib.composeExtensions (self: super: { }) ([ packageOverrides ] ++ defaultOverrides);
jsonschema = super.jsonschema.overridePythonAttrs (oldAttrs: rec {
version = "3.2.0";
src = super.fetchPypi {
inherit (oldAttrs) pname;
inherit version;
sha256 = "sha256-yKhbKNN3zHc35G4tnytPRO48Dh3qxr9G3e/HGH0weXo=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
doCheck = false;
});
}) defaultOverrides;
}; };
in python.pkgs.buildPythonPackage rec { in python.pkgs.buildPythonPackage rec {
pname = "gns3-gui"; pname = "gns3-gui";

View file

@ -14,22 +14,6 @@
let let
defaultOverrides = commonOverrides ++ [ defaultOverrides = commonOverrides ++ [
(self: super: {
jsonschema = super.jsonschema.overridePythonAttrs (oldAttrs: rec {
version = "3.2.0";
src = super.fetchPypi {
inherit (oldAttrs) pname;
inherit version;
sha256 = "sha256-yKhbKNN3zHc35G4tnytPRO48Dh3qxr9G3e/HGH0weXo=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
doCheck = false;
});
})
]; ];
python = python3.override { python = python3.override {

View file

@ -13,19 +13,7 @@ let
packageOverrides = self: super: { packageOverrides = self: super: {
# The bravado-core dependency is incompatible with jschonschema 4.0: # The bravado-core dependency is incompatible with jschonschema 4.0:
# https://github.com/Yelp/bravado-core/pull/385 # https://github.com/Yelp/bravado-core/pull/385
jsonschema = super.jsonschema.overridePythonAttrs (oldAttrs: rec { jsonschema = super.jsonschema_3;
version = "3.2.0";
src = oldAttrs.src.override {
inherit version;
hash = "sha256-yKhbKNN3zHc35G4tnytPRO48Dh3qxr9G3e/HGH0weXo=";
sha256 = "";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
doCheck = false;
});
}; };
}; };

View file

@ -5,14 +5,14 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "snakemake"; pname = "snakemake";
version = "7.14.0"; version = "7.14.1";
format = "setuptools"; format = "setuptools";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "snakemake"; owner = "snakemake";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-JuoZ/xE3Z6uB7iJQj72l+VX0cHHi/ZV+6q3QZ/CYjAk="; hash = "sha256-o2pERzt6wU/EiXBc9kI2qn9PhXGyvNiEWbSRzI85R8c=";
}; };
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python3.pkgs; [

View file

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "nixpacks"; pname = "nixpacks";
version = "0.6.2"; version = "0.7.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "railwayapp"; owner = "railwayapp";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-PMWaaCcguziQAnuBL5He2AQaAhCTmpNsOHUNnExK0mU="; sha256 = "sha256-d38PocmvGRvyKMCNMhE8IFNGOn6r42ODLPVo/Ak3q/8=";
}; };
cargoSha256 = "sha256-IVlOenWvy6BsUCsSMWuJj7H8XKQRQkJtTYnmUhcesNw="; cargoSha256 = "sha256-74FIlSV/prlxuMxqVx27M0ltXY3m0ddUVyHTltQLnuM=";
# skip test due FHS dependency # skip test due FHS dependency
doCheck = false; doCheck = false;

View file

@ -13,10 +13,10 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "quarto"; pname = "quarto";
version = "1.1.189"; version = "1.1.251";
src = fetchurl { src = fetchurl {
url = "https://github.com/quarto-dev/quarto-cli/releases/download/v${version}/quarto-${version}-linux-amd64.tar.gz"; url = "https://github.com/quarto-dev/quarto-cli/releases/download/v${version}/quarto-${version}-linux-amd64.tar.gz";
sha256 = "1a3xsgqdccm4ky1xjnin1idpp8gsansskq37c00mrxz1raxn1mi7"; sha256 = "sha256-VEYUEI4xzQPXlyTbCThAW2npBCZNPDJ5x2cWnkNz7RE=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -1,8 +1,11 @@
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uchar, uutf, cmdliner }: { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uchar, uutf, cmdliner
, cmdlinerSupport ? lib.versionAtLeast cmdliner.version "1.1"
}:
let let
pname = "uunf"; pname = "uunf";
webpage = "https://erratique.ch/software/${pname}"; webpage = "https://erratique.ch/software/${pname}";
version = "14.0.0"; version = "15.0.0";
in in
if lib.versionOlder ocaml.version "4.03" if lib.versionOlder ocaml.version "4.03"
@ -15,11 +18,12 @@ stdenv.mkDerivation {
src = fetchurl { src = fetchurl {
url = "${webpage}/releases/${pname}-${version}.tbz"; url = "${webpage}/releases/${pname}-${version}.tbz";
sha256 = "sha256:17wv0nm3vvwcbzb1b09akw8jblmigyhbfmh1sy9lkb5756ni94a2"; sha256 = "sha256-B/prPAwfqS8ZPS3fyDDIzXWRbKofwOCyCfwvh9veuug=";
}; };
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
buildInputs = [ topkg uutf cmdliner ]; buildInputs = [ topkg uutf ]
++ lib.optional cmdlinerSupport cmdliner;
propagatedBuildInputs = [ uchar ]; propagatedBuildInputs = [ uchar ];
@ -27,7 +31,15 @@ stdenv.mkDerivation {
prePatch = lib.optionalString stdenv.isAarch64 "ulimit -s 16384"; prePatch = lib.optionalString stdenv.isAarch64 "ulimit -s 16384";
inherit (topkg) buildPhase installPhase; buildPhase = ''
runHook preBuild
${topkg.run} build \
--with-uutf true \
--with-cmdliner ${lib.boolToString cmdlinerSupport}
runHook postBuild
'';
inherit (topkg) installPhase;
meta = with lib; { meta = with lib; {
description = "An OCaml module for normalizing Unicode text"; description = "An OCaml module for normalizing Unicode text";

View file

@ -0,0 +1,39 @@
{ lib, buildPythonPackage, fetchPypi, isPy27
, attrs
, functools32
, importlib-metadata
, mock
, nose
, pyperf
, pyrsistent
, setuptools-scm
, twisted
, vcversioner
}:
buildPythonPackage rec {
pname = "jsonschema";
version = "3.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ attrs importlib-metadata functools32 pyrsistent ];
checkInputs = [ nose mock pyperf twisted vcversioner ];
# zope namespace collides on py27
doCheck = !isPy27;
checkPhase = ''
nosetests
'';
meta = with lib; {
homepage = "https://github.com/Julian/jsonschema";
description = "An implementation of JSON Schema validation for Python";
license = licenses.mit;
maintainers = with maintainers; [ domenkozar ];
};
}

View file

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "oh-my-posh"; pname = "oh-my-posh";
version = "10.1.0"; version = "11.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jandedobbeleer"; owner = "jandedobbeleer";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-Cbgpmew+2O59+7pvMv0QD0bi9f6cdWN1zAa9wUdJ1qM="; sha256 = "sha256-ovbhU23m4idWOSmdzPh5RH5/DxPjzsk1qqccIzGjNY4=";
}; };
vendorSha256 = "sha256-A4+sshIzPla7udHfnMmbFqn+fW3SOCrI6g7tArzmh1E="; vendorSha256 = "sha256-A4+sshIzPla7udHfnMmbFqn+fW3SOCrI6g7tArzmh1E=";

View file

@ -5,17 +5,17 @@
buildGoModule rec { buildGoModule rec {
pname = "node_exporter"; pname = "node_exporter";
version = "1.3.1"; version = "1.4.0";
rev = "v${version}"; rev = "v${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
inherit rev; inherit rev;
owner = "prometheus"; owner = "prometheus";
repo = "node_exporter"; repo = "node_exporter";
sha256 = "sha256-+0k9LBsHqNHmoOAY1UDzbbqni+ikj+c3ijfT41rCfLc="; sha256 = "sha256-KO33Cyrc4Oh6vvTMazo5iuekpyxNsi18gIb66Z8B9i4=";
}; };
vendorSha256 = "sha256-nAvODyy+PfkGFAaq+3hBhQaPji5GUMU7N8xcgbGQMeI="; vendorSha256 = "sha256-eJbb56U6VStwfi6iSemWrriDYNaPiDegW3KJr8rH1NU=";
# FIXME: tests fail due to read-only nix store # FIXME: tests fail due to read-only nix store
doCheck = false; doCheck = false;

View file

@ -5,17 +5,17 @@
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "onetun"; pname = "onetun";
version = "0.3.3"; version = "0.3.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "aramperes"; owner = "aramperes";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-TYDSAJxWwNF/e42KR9656vrWfIanFMaJKvof0gcZ80U="; sha256 = "sha256-gVw1aVbYjDPYTtMYIXq3k+LN0gUBAbQm275sxzwoYw8=";
}; };
cargoSha256 = "sha256-aki3jL+0ETPa/0eMyxuBKdF3K1wM86BZx8FrOkaUAFQ="; cargoSha256 = "sha256-/sOjd0JKk3MNNXYpTEXteFYtqDWYfyVItZrkX4uzjtc=";
meta = with lib; { meta = with lib; {
description = "A cross-platform, user-space WireGuard port-forwarder that requires no root-access or system network configurations"; description = "A cross-platform, user-space WireGuard port-forwarder that requires no root-access or system network configurations";

View file

@ -5,16 +5,16 @@
buildGoModule rec { buildGoModule rec {
pname = "scilla"; pname = "scilla";
version = "1.2.3"; version = "1.2.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "edoardottt"; owner = "edoardottt";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-VTX4NG3BzmLpf2sIxZ5DGjg9dnCTSO0VbGx2PMhjBPg="; sha256 = "sha256-8ZRYgQ4xME71vlO0nKnxiCqeju0G4SwgEXnUol1jQxk=";
}; };
vendorSha256 = "sha256-aoz2H7hkk85ntao6e5Chn++T2kA5jogHrd/ltVqNS3A="; vendorSha256 = "sha256-Y4Zi0Hy6ydGxLTohgJGF3L9O+79z+3t+4ZA64otCJpE=";
meta = with lib; { meta = with lib; {
description = "Information gathering tool for DNS, ports and more"; description = "Information gathering tool for DNS, ports and more";

View file

@ -4846,6 +4846,8 @@ in {
jsonschema = callPackage ../development/python-modules/jsonschema { }; jsonschema = callPackage ../development/python-modules/jsonschema { };
jsonschema_3 = callPackage ../development/python-modules/jsonschema/3_x.nix { };
jsonschema-spec = callPackage ../development/python-modules/jsonschema-spec { }; jsonschema-spec = callPackage ../development/python-modules/jsonschema-spec { };
jsonstreams = callPackage ../development/python-modules/jsonstreams { }; jsonstreams = callPackage ../development/python-modules/jsonstreams { };