Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2022-07-01 00:03:19 +00:00 committed by GitHub
commit d5a880feca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 291 additions and 84 deletions

View file

@ -27,13 +27,13 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "megapixels"; pname = "megapixels";
version = "1.4.3"; version = "1.5.0";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "postmarketOS"; owner = "postmarketOS";
repo = "megapixels"; repo = "megapixels";
rev = version; rev = version;
hash = "sha256-UHJ3Fayf+lS3nRuuhHHLN6mbHfHIPssWkghPMPF5ECg="; hash = "sha256-zOtHxnXDzsLfaQPS0BhbuoUXglCbRULVJfk1txoS72Y=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -0,0 +1,39 @@
{ stdenv, lib, buildGoModule, fetchFromGitHub }:
let
version = "1.4.8";
in
buildGoModule {
pname = "ktunnel";
inherit version;
src = fetchFromGitHub {
owner = "omrikiei";
repo = "ktunnel";
rev = "v${version}";
sha256 = "sha256-Iw7Z4iuKxmRrS51KP3k/ouXW4xssdNgxDDzNQR2Zygg=";
};
ldflags = [
"-s" "-w"
];
vendorSha256 = "sha256-p9AYZWNO2oqLich0qzZYuAk55HqB6ttS66ORuNZ4rJg=";
preCheck = "export HOME=$(mktemp -d)";
# # TODO investigate why some tests are failing
doCheck = false;
installCheckPhase = ''
runHook preInstallCheck
"$out/bin/ktunnel" --version
runHook postInstallCheck
'';
meta = with lib; {
description = "A cli that exposes your local resources to kubernetes ";
homepage = "https://github.com/omrikiei/ktunnel";
license = licenses.asl20;
maintainers = with maintainers; [ happysalada ];
};
}

View file

@ -3,16 +3,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "newsboat"; pname = "newsboat";
version = "2.27"; version = "2.28";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "newsboat"; owner = "newsboat";
repo = "newsboat"; repo = "newsboat";
rev = "r${version}"; rev = "r${version}";
hash = "sha256-cHUI95Zrwzg242BM8/roA40sAxijFw6go6BbQNZSzRw="; hash = "sha256-MHbGCGtFPXG+82Qveoiv7f8qqZOxThEYb9y9Kv3pnFc=";
}; };
cargoHash = "sha256-YZpaPfExKNLHWHmnCery4fGAJmOhpK3umuO343qe0Zo="; cargoHash = "sha256-9YcVKZn51fhkE6bZmaNu7PXsSG8j0M4piBnTWtX8Kcg=";
# TODO: Check if that's still needed # TODO: Check if that's still needed
postPatch = lib.optionalString stdenv.isDarwin '' postPatch = lib.optionalString stdenv.isDarwin ''

View file

@ -2,13 +2,16 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "communi"; pname = "communi";
version = "3.5.0"; version = "3.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "communi"; owner = "communi";
repo = "communi-desktop"; repo = "communi-desktop";
rev = "v${version}"; # Without https://github.com/communi/communi-desktop/pull/146 fetching fails with
sha256 = "sha256-Ua5uXs2mEDrljvtIcdn1Kb+l5NJtRpB0AAbBz+DU+YE="; # fatal: unable to connect to github.com:
# github.com[0: 140.82.112.3]: errno=Connection timed out
rev = "5d813dc6e64a623cd5d78f024c8a0720a5155a28";
hash = "sha256-ci91Bf0EkhlPDO+NcpnMmT/vE41i5RD2mXbRAnMB++M=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
@ -53,6 +56,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/communi/communi-desktop"; homepage = "https://github.com/communi/communi-desktop";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ hrdinka ]; maintainers = with maintainers; [ hrdinka ];
platforms = platforms.all; platforms = platforms.linux;
}; };
} }

View file

@ -17,14 +17,14 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "warp"; pname = "warp";
version = "0.2.0"; version = "0.2.1";
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "gitlab.gnome.org"; domain = "gitlab.gnome.org";
owner = "World"; owner = "World";
repo = "warp"; repo = "warp";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-AtSU/vN20ePyxhSSl0RB2a4KKpd6PTUCC4n5RIuYVr4="; hash = "sha256-ajz450ix68TDkhyAZd1IgZA/jUnXULrYZOSdcoOL+S0=";
}; };
postPatch = '' postPatch = ''
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit src; inherit src;
name = "${pname}-${version}"; name = "${pname}-${version}";
hash = "sha256-DbKoZLB8XIZy5bIOC6blrNa3x4oCVG0Bl9xp6ARgw0c="; hash = "sha256-08xbd2YmJw2NTrxBrnJZMV2VvX6V0eX+fxbEEWFoC9c=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -12,13 +12,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "hypnotix"; pname = "hypnotix";
version = "2.7"; version = "2.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "linuxmint"; owner = "linuxmint";
repo = "hypnotix"; repo = "hypnotix";
rev = version; rev = version;
hash = "sha256-Mfj10CPYAI2QObgjbkhEPJ2nx6hsR5BHpmNofmdSz1k="; hash = "sha256-uj5Bn3K9SCKE4p1jylfQ8XnAwNnN4VXHLMLrwhKhzsk=";
}; };
patches = [ patches = [

View file

@ -22,6 +22,8 @@ if ! [ -f "$SSL_CERT_FILE" ]; then
curl+=(--insecure) curl+=(--insecure)
fi fi
eval "curl+=($curlOptsList)"
curl+=( curl+=(
$curlOpts $curlOpts
$NIX_CURL_FLAGS $NIX_CURL_FLAGS

View file

@ -46,8 +46,13 @@ in
urls ? [] urls ? []
, # Additional curl options needed for the download to succeed. , # Additional curl options needed for the download to succeed.
# Warning: Each space (no matter the escaping) will start a new argument.
# If you wish to pass arguments with spaces, use `curlOptsList`
curlOpts ? "" curlOpts ? ""
, # Additional curl options needed for the download to succeed.
curlOptsList ? []
, # Name of the file. If empty, use the basename of `url' (or of the , # Name of the file. If empty, use the basename of `url' (or of the
# first element of `urls'). # first element of `urls').
name ? "" name ? ""
@ -147,7 +152,14 @@ stdenvNoCC.mkDerivation {
outputHashMode = if (recursiveHash || executable) then "recursive" else "flat"; outputHashMode = if (recursiveHash || executable) then "recursive" else "flat";
inherit curlOpts showURLs mirrorsFile postFetch downloadToTemp executable; curlOpts = lib.warnIf (lib.isList curlOpts) ''
fetchurl for ${toString (builtins.head urls_)}: curlOpts is a list (${lib.generators.toPretty { multiline = false; } curlOpts}), which is not supported anymore.
- If you wish to get the same effect as before, for elements with spaces (even if escaped) to expand to multiple curl arguments, use a string argument instead:
curlOpts = ${lib.strings.escapeNixString (toString curlOpts)};
- If you wish for each list element to be passed as a separate curl argument, allowing arguments to contain spaces, use curlOptsList instead:
curlOptsList = [ ${lib.concatMapStringsSep " " lib.strings.escapeNixString curlOpts} ];'' curlOpts;
curlOptsList = lib.escapeShellArgs curlOptsList;
inherit showURLs mirrorsFile postFetch downloadToTemp executable;
impureEnvVars = impureEnvVars ++ netrcImpureEnvVars; impureEnvVars = impureEnvVars ++ netrcImpureEnvVars;

View file

@ -0,0 +1,13 @@
{ invalidateFetcherByDrvHash, fetchurl, jq, moreutils, ... }: {
# Tests that we can send custom headers with spaces in them
header =
let headerValue = "Test '\" <- These are some quotes";
in invalidateFetcherByDrvHash fetchurl {
url = "https://httpbin.org/headers";
sha256 = builtins.hashString "sha256" (headerValue + "\n");
curlOptsList = [ "-H" "Hello: ${headerValue}" ];
postFetch = ''
${jq}/bin/jq -r '.headers.Hello' $out | ${moreutils}/bin/sponge $out
'';
};
}

View file

@ -1,25 +1,18 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, python3 }: { lib, stdenv, fetchFromGitHub, python39 }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "monoid"; pname = "monoid";
version = "2018-06-03"; version = "2020-10-26";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "larsenwork"; owner = "larsenwork";
repo = "monoid"; repo = "monoid";
rev = "a331c7c5f402c449f623e0d0895bd2fd8dc30ccf"; rev = "0673c8d6728df093faee9f183b6dfa62939df8c0";
sha256 = "sha256-RV6lxv5CjywTMcuPMj6rdjLKrap7zLJ7niaNeF//U1Y="; sha256 = "sha256-u2jwVOC9QM2JHsdAVBuEpqqdiBAVs+IWnpp48A5Xk28=";
}; };
patches = [
(fetchpatch {
url = "https://github.com/larsenwork/monoid/pull/233/commits/f84f2ed61301ee84dadd16351314394f22ebed2f.patch";
sha256 = "sha256-CxfFHlR7TB64pvrfzVfUDkPwuRO2UdGOhXwW98c+oQU=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
(python3.withPackages (pp: with pp; [ (python39.withPackages (pp: with pp; [
fontforge fontforge
])) ]))
]; ];
@ -47,3 +40,4 @@ stdenv.mkDerivation {
maintainers = [ maintainers.romildo ]; maintainers = [ maintainers.romildo ];
}; };
} }

View file

@ -21,13 +21,13 @@ assert lib.assertMsg (unknownTweaks == [ ]) ''
stdenvNoCC.mkDerivation stdenvNoCC.mkDerivation
rec { rec {
pname = "orchis-theme"; pname = "orchis-theme";
version = "2022-05-01"; version = "2022-05-29";
src = fetchFromGitHub { src = fetchFromGitHub {
repo = "Orchis-theme"; repo = "Orchis-theme";
owner = "vinceliuice"; owner = "vinceliuice";
rev = version; rev = version;
sha256 = "sha256-OYB/TnVm8AOQTdF+rGiY5tQjUjkSSpMrqFo0+TXSHzA="; sha256 = "sha256-F4kqQ1B8JNo2TAdGFondAtQu5C/6os9SQ8NS2gfRCQM=";
}; };
nativeBuildInputs = [ gtk3 sassc ]; nativeBuildInputs = [ gtk3 sassc ];

View file

@ -14,7 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "hahomematic"; pname = "hahomematic";
version = "1.9.0"; version = "1.9.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "danielperna84"; owner = "danielperna84";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
sha256 = "sha256-BmFJuugU6SsKxSB60O5dtODmgApClRT/AAzzTWAMXKI="; sha256 = "sha256-HenIglv9aOVjniFunPcHq7Ktx6g0e7NYy0zgdVknDWI=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -7,7 +7,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "motionblinds"; pname = "motionblinds";
version = "0.6.8"; version = "0.6.10";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -16,7 +16,7 @@ buildPythonPackage rec {
owner = "starkillerOG"; owner = "starkillerOG";
repo = "motion-blinds"; repo = "motion-blinds";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
sha256 = "sha256-xlAQD0sJVhbr0nfJZdrBbskVbgC9Lrbrgu6rvT3jQCs="; sha256 = "sha256-WCwj/2iUXOhmww4hiI5KPA7VyoVEYDeEMmnZM+DGHmc=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -23,7 +23,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pikepdf"; pname = "pikepdf";
version = "5.1.5"; version = "5.1.5.post1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -38,7 +38,7 @@ buildPythonPackage rec {
postFetch = '' postFetch = ''
rm "$out/.git_archival.txt" rm "$out/.git_archival.txt"
''; '';
hash = "sha256-DEgxdMVX5gQOsV9EyJtO/MO7padYMZrekanpp+nNvek="; hash = "sha256-CGhkfQgsKUxiZzs1i2B2SlM++7G6Yrd9ruFh4sSJPbI=";
}; };
patches = [ patches = [

View file

@ -6,13 +6,15 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pykeepass"; pname = "pykeepass";
version = "4.0.2"; version = "4.0.3";
format = "setuptools";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "libkeepass"; owner = "libkeepass";
repo = "pykeepass"; repo = "pykeepass";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-q6cBowEki5iJh04Hp1jwbWdteEu3HXtD3tG/TsYDRNI="; hash = "sha256-HyveBBsd1OFWoY3PgqqaKRLBhsxgFv8PRAxEF6r+bf4=";
}; };
postPatch = '' postPatch = ''

View file

@ -18,15 +18,15 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "qiskit-optimization"; pname = "qiskit-optimization";
version = "0.3.2"; version = "0.4.0";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "qiskit"; owner = "qiskit";
repo = pname; repo = pname;
rev = version; rev = "refs/tags/${version}";
sha256 = "sha256-SWrHNHZjynpWcwwrWzRPpbNWz8EhVujMoY8uIJQeT6U="; sha256 = "sha256-7MksgbCID4x1qW06BCBzcbiS/eNHjZiDKIvKYTPx6cc=";
}; };
postPatch = '' postPatch = ''

View file

@ -1,38 +1,52 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub
, pytest
, pytest-cov
, numpy
, scipy
, cython , cython
, fetchFromGitHub
, numba , numba
, six , numpy
, pytestCheckHook
, pythonOlder
, scipy
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "resampy"; pname = "resampy";
version = "0.2.2"; version = "0.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
# No tests in PyPi Archive
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bmcfee"; owner = "bmcfee";
repo = pname; repo = pname;
rev = version; rev = "refs/tags/${version}";
sha256 = "0qmkxl5sbgh0j73n667vyi7ywzh09iaync91yp1j5rrcmwsn0qfs"; hash = "sha256-OVj5dQafIoKeA04yTGBKTinldMjEccxrdiuRFIvRzcE=";
}; };
checkInputs = [ pytest pytest-cov ]; propagatedBuildInputs = [
propagatedBuildInputs = [ numpy scipy cython numba six ]; numpy
cython
numba
];
checkPhase = '' checkInputs = [
pytest tests pytestCheckHook
scipy
];
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov-report term-missing --cov resampy --cov-report=xml" ""
''; '';
meta = with lib; { pythonImportsCheck = [
homepage = "https://github.com/bmcfee/resampy"; "resampy"
description = "Efficient signal resampling"; ];
license = licenses.isc;
};
meta = with lib; {
description = "Efficient signal resampling";
homepage = "https://github.com/bmcfee/resampy";
license = licenses.isc;
maintainers = with maintainers; [ ];
};
} }

View file

@ -12,14 +12,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "schwifty"; pname = "schwifty";
version = "2022.6.2"; version = "2022.6.3";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-urXYEX7QFl2HwoCwTSj+83TYQOkfqbc+aGJaBwKVorU="; sha256 = "sha256-IBkEfc6sKk9fDFZF/4Xfcl4GbMPro75e7DmrF94ARlU=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -0,0 +1,23 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "simple-rlp";
version = "0.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "5c4a9c58f1b742f7fa8af0fe4ea6ff9fb02294ae041912f771570dfaf339d2b9";
};
pythonImportsCheck = [ "rlp" ];
meta = with lib; {
description = "Simple RLP (Recursive Length Prefix)";
homepage = "https://github.com/SamuelHaidu/simple-rlp";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
};
}

View file

@ -2,11 +2,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "textdistance"; pname = "textdistance";
version = "4.2.2"; version = "4.3.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "a43bb6f71dcccd3fc2060065c9513a7927879680512889749fd1fd800c4bad8e"; sha256 = "sha256-T2vAf2ZX5pNA1MytsleAoScCWy9rccQELi0BByC0yo4=";
}; };
# There aren't tests # There aren't tests

View file

@ -8,14 +8,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "traitsui"; pname = "traitsui";
version = "7.3.1"; version = "7.4.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-lHStZ/NF2Wsya0AemgFAXICCyS+kO/R8CwOYGOWHrGk="; hash = "sha256-JTNa/+4jQtR+NcJd9ed4XSKlM1hP4b4JQ8y6Rdwa5Yk=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -15,8 +15,8 @@
, protobuf , protobuf
, pyblake2 , pyblake2
, requests , requests
, rlp
, shamir-mnemonic , shamir-mnemonic
, simple-rlp
, typing-extensions , typing-extensions
, trezor-udev-rules , trezor-udev-rules
, pytestCheckHook , pytestCheckHook
@ -24,13 +24,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "trezor"; pname = "trezor";
version = "0.13.0"; version = "0.13.2";
disabled = !isPy3k; disabled = !isPy3k;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "4571aa09dbfe88b31eb2f16c7c359b4809621b75a04b7b5bc9dbffe17046c99a"; sha256 = "cdb696fd01dad6a0cb23b61ea3a4867bb51cecda5cb2a77366fb6a53bff58ac4";
}; };
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
@ -47,8 +47,8 @@ buildPythonPackage rec {
protobuf protobuf
pyblake2 pyblake2
requests requests
rlp
shamir-mnemonic shamir-mnemonic
simple-rlp
typing-extensions typing-extensions
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [
trezor-udev-rules trezor-udev-rules

View file

@ -6,11 +6,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "venstarcolortouch"; pname = "venstarcolortouch";
version = "0.16"; version = "0.17";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-kV/fPxvJPMZVmRyyKJnmHgDMsD5tvxcolPSdO13GV90="; sha256 = "sha256-HgUtGC2lXJ6BFhOnFK7DF4b/IooXIFPGcpJ4ru3kPNs=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -32,14 +32,14 @@ with py.pkgs;
buildPythonApplication rec { buildPythonApplication rec {
pname = "checkov"; pname = "checkov";
version = "2.1.16"; version = "2.1.20";
format = "setuptools"; format = "setuptools";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bridgecrewio"; owner = "bridgecrewio";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-/sYxR7xaNTScyv0rB+7CHUPnxPXMX2aIGl9WtrBo+Jc="; hash = "sha256-dXpgm9S++jtBhuzX9db8Pm5LF6Qb4isXx5uyOGdWGUc=";
}; };
nativeBuildInputs = with py.pkgs; [ nativeBuildInputs = with py.pkgs; [

View file

@ -1,17 +1,17 @@
{ {
"version": "0.1.8", "version": "0.1.9",
"assets": { "assets": {
"aarch64-darwin": { "aarch64-darwin": {
"asset": "scala-cli-x86_64-apple-darwin.gz", "asset": "scala-cli-x86_64-apple-darwin.gz",
"sha256": "1dxhwhdk7kflzn4ckqxfxkz4v26l39ki6ykpml6k6kvy3nn0wwz3" "sha256": "10lirk7h0ir2k20rf0xl72642axdhik8g66lcbyn689jybj6vks6"
}, },
"x86_64-darwin": { "x86_64-darwin": {
"asset": "scala-cli-x86_64-apple-darwin.gz", "asset": "scala-cli-x86_64-apple-darwin.gz",
"sha256": "1dxhwhdk7kflzn4ckqxfxkz4v26l39ki6ykpml6k6kvy3nn0wwz3" "sha256": "10lirk7h0ir2k20rf0xl72642axdhik8g66lcbyn689jybj6vks6"
}, },
"x86_64-linux": { "x86_64-linux": {
"asset": "scala-cli-x86_64-pc-linux.gz", "asset": "scala-cli-x86_64-pc-linux.gz",
"sha256": "0hj22lcmbbfgv69k778myb0kp79gbg7xx9a3b66g3svxmanlbvxf" "sha256": "11h471rcds0b396r6nqadzmny5dvmz8rxh1kwcj4bldss2mdcckz"
} }
} }
} }

View file

@ -85,7 +85,7 @@ let
(lib.overrideDerivation (lib.overrideDerivation
(fetchurl { (fetchurl {
inherit name url sha256; inherit name url sha256;
curlOpts = [ curlOptsList = [
"--get" "--get"
"--data-urlencode" "username@username" "--data-urlencode" "username@username"
"--data-urlencode" "token@token" "--data-urlencode" "token@token"

View file

@ -135,6 +135,55 @@ rec {
}; };
keyValue = {
# Represents lists as duplicate keys
listsAsDuplicateKeys ? false,
# Alternative to listsAsDuplicateKeys, converts list to non-list
# listToValue :: [Atom] -> Atom
listToValue ? null,
...
}@args:
assert !listsAsDuplicateKeys || listToValue == null;
{
type = with lib.types; let
singleAtom = nullOr (oneOf [
bool
int
float
str
]) // {
description = "atom (null, bool, int, float or string)";
};
atom =
if listsAsDuplicateKeys then
coercedTo singleAtom lib.singleton (listOf singleAtom) // {
description = singleAtom.description + " or a list of them for duplicate keys";
}
else if listToValue != null then
coercedTo singleAtom lib.singleton (nonEmptyListOf singleAtom) // {
description = singleAtom.description + " or a non-empty list of them";
}
else
singleAtom;
in attrsOf atom;
generate = name: value:
let
transformedValue =
if listToValue != null
then
lib.mapAttrs (key: val:
if lib.isList val then listToValue val else val
) value
else value;
in pkgs.writeText name (lib.generators.toKeyValue (removeAttrs args ["listToValue"]) transformedValue);
};
gitIni = { listsAsDuplicateKeys ? false, ... }@args: { gitIni = { listsAsDuplicateKeys ? false, ... }@args: {
type = with lib.types; let type = with lib.types; let

View file

@ -147,6 +147,51 @@ in runBuildTests {
''; '';
}; };
testKeyValueAtoms = {
drv = evalFormat formats.keyValue {} {
bool = true;
int = 10;
float = 3.141;
str = "string";
};
expected = ''
bool=true
float=3.141000
int=10
str=string
'';
};
testKeyValueDuplicateKeys = {
drv = evalFormat formats.keyValue { listsAsDuplicateKeys = true; } {
bar = [ null true "test" 1.2 10 ];
baz = false;
qux = "qux";
};
expected = ''
bar=null
bar=true
bar=test
bar=1.200000
bar=10
baz=false
qux=qux
'';
};
testKeyValueListToValue = {
drv = evalFormat formats.keyValue { listToValue = concatMapStringsSep ", " (generators.mkValueStringDefault {}); } {
bar = [ null true "test" 1.2 10 ];
baz = false;
qux = "qux";
};
expected = ''
bar=null, true, test, 1.200000, 10
baz=false
qux=qux
'';
};
testTomlAtoms = { testTomlAtoms = {
drv = evalFormat formats.toml {} { drv = evalFormat formats.toml {} {
false = false; false = false;

View file

@ -29,6 +29,7 @@ with pkgs;
cc-multilib-gcc = callPackage ./cc-wrapper/multilib.nix { stdenv = gccMultiStdenv; }; cc-multilib-gcc = callPackage ./cc-wrapper/multilib.nix { stdenv = gccMultiStdenv; };
cc-multilib-clang = callPackage ./cc-wrapper/multilib.nix { stdenv = clangMultiStdenv; }; cc-multilib-clang = callPackage ./cc-wrapper/multilib.nix { stdenv = clangMultiStdenv; };
fetchurl = callPackages ../build-support/fetchurl/tests.nix { };
fetchpatch = callPackages ../build-support/fetchpatch/tests.nix { }; fetchpatch = callPackages ../build-support/fetchpatch/tests.nix { };
fetchzip = callPackages ../build-support/fetchzip/tests.nix { }; fetchzip = callPackages ../build-support/fetchzip/tests.nix { };
fetchgit = callPackages ../build-support/fetchgit/tests.nix { }; fetchgit = callPackages ../build-support/fetchgit/tests.nix { };

View file

@ -30,7 +30,7 @@
let let
pname = "vector"; pname = "vector";
version = "0.22.2"; version = "0.22.3";
in in
rustPlatform.buildRustPackage { rustPlatform.buildRustPackage {
inherit pname version; inherit pname version;
@ -39,10 +39,10 @@ rustPlatform.buildRustPackage {
owner = "vectordotdev"; owner = "vectordotdev";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-5vfV58UvukD4CGAKUzew/se6wZw+JLSpDs8nwNihuWg="; sha256 = "sha256-62oPttkdahTeMsd9lpd9/tc95kluVJuWxzP94i+gWhA=";
}; };
cargoSha256 = "sha256-FlWwUIau7QJsH3ax4y3yz+iBRP/KaEB/eHzUPTq0+tQ="; cargoSha256 = "sha256-WWX47pbva7ZmPR6hBstJ5VqOwu3mkhhsHK3LHHqQjDE=";
nativeBuildInputs = [ pkg-config cmake perl ]; nativeBuildInputs = [ pkg-config cmake perl ];
buildInputs = [ oniguruma openssl protobuf rdkafka zstd ] buildInputs = [ oniguruma openssl protobuf rdkafka zstd ]
++ lib.optionals stdenv.isDarwin [ Security libiconv coreutils CoreServices ]; ++ lib.optionals stdenv.isDarwin [ Security libiconv coreutils CoreServices ];

View file

@ -18,6 +18,14 @@ python3Packages.buildPythonApplication rec {
sha256 = "0hrpg7yiv50xmbajfy0zdilsyhbj5iv0qnlrgkfv99q1dvd5qy56"; sha256 = "0hrpg7yiv50xmbajfy0zdilsyhbj5iv0qnlrgkfv99q1dvd5qy56";
}; };
patches = [
(fetchpatch {
name = "support-for-pykeepass-4.0.3.patch";
url = "https://github.com/roddhjav/pass-import/commit/f1b167578916d971ee4f99be99ba0e86ef49015e.patch";
hash = "sha256-u6bJbV3/QTfRaPauKSyCWNodpy6CKsreMXUZWKRbee0=";
})
];
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
cryptography cryptography
defusedxml defusedxml

View file

@ -28018,6 +28018,8 @@ with pkgs;
k9s = callPackage ../applications/networking/cluster/k9s { }; k9s = callPackage ../applications/networking/cluster/k9s { };
ktunnel = callPackage ../applications/networking/cluster/ktunnel { };
pgo-client = callPackage ../applications/networking/cluster/pgo-client { }; pgo-client = callPackage ../applications/networking/cluster/pgo-client { };
popeye = callPackage ../applications/networking/cluster/popeye { }; popeye = callPackage ../applications/networking/cluster/popeye { };
@ -29262,9 +29264,7 @@ with pkgs;
pdfchain = callPackage ../tools/typesetting/pdfchain { }; pdfchain = callPackage ../tools/typesetting/pdfchain { };
pdfcpu = callPackage ../applications/graphics/pdfcpu { }; pdfcpu = callPackage ../applications/graphics/pdfcpu { };
pdftk = callPackage ../tools/typesetting/pdftk { pdftk = callPackage ../tools/typesetting/pdftk { };
jre = jre8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
};
pdfgrep = callPackage ../tools/typesetting/pdfgrep { }; pdfgrep = callPackage ../tools/typesetting/pdfgrep { };
pdfpc = callPackage ../applications/misc/pdfpc { pdfpc = callPackage ../applications/misc/pdfpc {

View file

@ -9738,6 +9738,8 @@ in {
simple-rest-client = callPackage ../development/python-modules/simple-rest-client { }; simple-rest-client = callPackage ../development/python-modules/simple-rest-client { };
simple-rlp = callPackage ../development/python-modules/simple-rlp { };
simple-salesforce = callPackage ../development/python-modules/simple-salesforce { }; simple-salesforce = callPackage ../development/python-modules/simple-salesforce { };
simple-websocket-server = callPackage ../development/python-modules/simple-websocket-server { }; simple-websocket-server = callPackage ../development/python-modules/simple-websocket-server { };