Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2021-04-27 12:07:01 +00:00 committed by GitHub
commit c01456266d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 349 additions and 113 deletions

View file

@ -110,7 +110,6 @@ with lib.maintainers; {
members = [ members = [
mmilata mmilata
petabyteboy petabyteboy
prusnak
ryantm ryantm
]; ];
scope = "Maintain Jitsi."; scope = "Maintain Jitsi.";

View file

@ -3,7 +3,7 @@
, qca-qt5, qjson, qtquickcontrols2, qtscript, qtwebengine , qca-qt5, qjson, qtquickcontrols2, qtscript, qtwebengine
, karchive, kcmutils, kconfig, kdnssd, kguiaddons, kinit, kirigami2, knewstuff, knotifyconfig, ktexteditor, kwindowsystem , karchive, kcmutils, kconfig, kdnssd, kguiaddons, kinit, kirigami2, knewstuff, knotifyconfig, ktexteditor, kwindowsystem
, fftw, phonon, plasma-framework, threadweaver , fftw, phonon, plasma-framework, threadweaver
, curl, ffmpeg_3, gdk-pixbuf, libaio, liblastfm, libmtp, loudmouth, lzo, lz4, mysql57, pcre, snappy, taglib, taglib_extras , curl, ffmpeg, gdk-pixbuf, libaio, liblastfm, libmtp, loudmouth, lzo, lz4, mysql57, pcre, snappy, taglib, taglib_extras
}: }:
mkDerivation rec { mkDerivation rec {
@ -23,7 +23,7 @@ mkDerivation rec {
qca-qt5 qjson qtquickcontrols2 qtscript qtwebengine qca-qt5 qjson qtquickcontrols2 qtscript qtwebengine
karchive kcmutils kconfig kdnssd kguiaddons kinit kirigami2 knewstuff knotifyconfig ktexteditor kwindowsystem karchive kcmutils kconfig kdnssd kguiaddons kinit kirigami2 knewstuff knotifyconfig ktexteditor kwindowsystem
phonon plasma-framework threadweaver phonon plasma-framework threadweaver
curl fftw ffmpeg_3 gdk-pixbuf libaio liblastfm libmtp loudmouth lz4 lzo mysql57.server mysql57.server.static curl fftw ffmpeg gdk-pixbuf libaio liblastfm libmtp loudmouth lz4 lzo mysql57.server mysql57.server.static
pcre snappy taglib taglib_extras pcre snappy taglib taglib_extras
]; ];

View file

@ -3,7 +3,7 @@
, genericUpdater , genericUpdater
, substituteAll , substituteAll
, common-updater-scripts , common-updater-scripts
, ffmpeg_3 , ffmpeg
, python3Packages , python3Packages
, sox , sox
}: }:
@ -20,12 +20,10 @@ python3Packages.buildPythonApplication rec {
}; };
patches = [ patches = [
( (substituteAll {
substituteAll { src = ./ffmpeg-location.patch;
src = ./ffmpeg-location.patch; inherit ffmpeg;
ffmpeg = ffmpeg_3; })
}
)
]; ];
propagatedBuildInputs = with python3Packages; [ crcmod ffmpeg-python mutagen tqdm ]; propagatedBuildInputs = with python3Packages; [ crcmod ffmpeg-python mutagen tqdm ];

View file

@ -9,23 +9,25 @@
, qtbase , qtbase
, qtdeclarative , qtdeclarative
, qtmultimedia , qtmultimedia
, qtsvg
, qttools
}: }:
mkDerivation rec { mkDerivation rec {
pname = "mediaelch"; pname = "mediaelch";
version = "2.8.6"; version = "2.8.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Komet"; owner = "Komet";
repo = "MediaElch"; repo = "MediaElch";
rev = "v${version}"; rev = "v${version}";
sha256 = "1134vw7hr0mpqcsxjq4bqmg5760dngz17bzj97ypfc5cvzcxjh43"; sha256 = "0yif0ibmlj0bhl7fnhg9yclxg2iyjygmjhffinp5kgqy0vaabkzw";
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ qmake ]; nativeBuildInputs = [ qmake qttools ];
buildInputs = [ curl libmediainfo libzen ffmpeg qtbase qtdeclarative qtmultimedia ]; buildInputs = [ curl libmediainfo libzen ffmpeg qtbase qtdeclarative qtmultimedia qtsvg ];
prePatch = '' prePatch = ''
substituteInPlace MediaElch.pro --replace "/usr" "$out" substituteInPlace MediaElch.pro --replace "/usr" "$out"

View file

@ -29,7 +29,7 @@
# Media support (implies audio support) # Media support (implies audio support)
, mediaSupport ? true , mediaSupport ? true
, ffmpeg_3 , ffmpeg
, gmp , gmp
@ -81,7 +81,7 @@ let
] ]
++ optionals pulseaudioSupport [ libpulseaudio ] ++ optionals pulseaudioSupport [ libpulseaudio ]
++ optionals mediaSupport [ ++ optionals mediaSupport [
ffmpeg_3 ffmpeg
]; ];
# Library search path for the fte transport # Library search path for the fte transport

View file

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "istioctl"; pname = "istioctl";
version = "1.9.2"; version = "1.9.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "istio"; owner = "istio";
repo = "istio"; repo = "istio";
rev = version; rev = version;
sha256 = "sha256-co/0ogI48FxrwVGwIuMqeFPFYtQF4/rv9V6b225TZc4="; sha256 = "sha256-gCI4LRUjsE6V7fomWaQsseX1Xi2f+2ZgtvWBDarpXvw=";
}; };
vendorSha256 = "sha256-yJHYyRPl1V1WNV0nJoR3bRTTGRTQaT/tG4TSQeL5U88="; vendorSha256 = "sha256-yJHYyRPl1V1WNV0nJoR3bRTTGRTQaT/tG4TSQeL5U88=";

View file

@ -2,16 +2,16 @@
buildGoModule rec { buildGoModule rec {
pname = "kube-score"; pname = "kube-score";
version = "1.10.1"; version = "1.11.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "zegl"; owner = "zegl";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-TYsuSPWTiIlPscul/QO59+lt6sbjJdt7pJuJYO5R9Tc="; sha256 = "sha256-O0RtlFkyo01kcxWSzrkhh7vvV76B7I5V19dSzaxvv4Y=";
}; };
vendorSha256 = "sha256-ob7mNheyeTcDWml4gi1SD3Pq+oWtJeySIUg2ZrCj0y0="; vendorSha256 = "sha256-qFS+N0tOf3zxqs1tN6Z1EnR3qLR1FfZNfJ21NoRXek0=";
meta = with lib; { meta = with lib; {
description = "Kubernetes object analysis with recommendations for improved reliability and security"; description = "Kubernetes object analysis with recommendations for improved reliability and security";

View file

@ -165,9 +165,9 @@ in rec {
}); });
terraform_0_15 = pluggable (generic { terraform_0_15 = pluggable (generic {
version = "0.15.0"; version = "0.15.1";
sha256 = "0d7hai57x6qczacdnzzvs3766180n6grmq0a7rlw5jp3zgzp8bmr"; sha256 = "02bqg05wsqld9xybvg7swvmympq5bggkw8vcq91z6vkpawm8z3kg";
vendorSha256 = "1l67kkrk8jw7v1rqpwj6n0l7lvmfgf1ir430j1n96459s1dzf0cn"; vendorSha256 = "1lnz6b2kjilidvs4flx9vj5j6dxliqdxni96fn2537nqaz4hc7l2";
patches = [ ./provider-path-0_15.patch ]; patches = [ ./provider-path-0_15.patch ];
passthru = { inherit plugins; }; passthru = { inherit plugins; };
}); });

View file

@ -32,6 +32,6 @@ buildGoModule rec {
changelog = "https://github.com/gruntwork-io/terragrunt/releases/tag/v${version}"; changelog = "https://github.com/gruntwork-io/terragrunt/releases/tag/v${version}";
description = "A thin wrapper for Terraform that supports locking for Terraform state and enforces best practices"; description = "A thin wrapper for Terraform that supports locking for Terraform state and enforces best practices";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ peterhoeg jk ]; maintainers = with maintainers; [ jk ];
}; };
} }

View file

@ -4,7 +4,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "openbazaar"; pname = "openbazaar";
version = "0.14.3"; version = "0.14.6";
suffix = { suffix = {
i686-linux = "linux-386"; i686-linux = "linux-386";
@ -15,9 +15,9 @@ stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "https://github.com/OpenBazaar/openbazaar-go/releases/download/v${version}/${pname}-go-${suffix}"; url = "https://github.com/OpenBazaar/openbazaar-go/releases/download/v${version}/${pname}-go-${suffix}";
sha256 = { sha256 = {
i686-linux = "098dgxpz9m4rfswc9yg77s3bvaifd4453s20n8kmh55g5ipgs2x1"; i686-linux = "1cmv3gyfd6q7y6yn6kigksy2abkq5b8mfgk51d04ky1ckgbriaqq";
x86_64-darwin = "0q989m4zj7x9d6vimmpfkla78hmx2zr7bxm9yg61ir00w60l14jx"; x86_64-darwin = "0n32a0pyj1k2had3imimdyhdhyb285y1dj04f7g3jajmy5zndaxx";
x86_64-linux = "093rwn4nfirknbxz58n16v0l0apj2h0yr63f64fqysmy78883al2"; x86_64-linux = "105i5yl2yvhcvyh1wf35kqq1qyxgbl9j2kxs6yshsk14b2p02j5i";
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
}; };

View file

@ -0,0 +1,72 @@
{ lib
, cni-plugins
, buildGoModule
, firecracker
, containerd
, runc
, makeWrapper
, fetchFromGitHub
, git
}:
buildGoModule rec{
pname = "ignite";
version = "0.9.0";
src = fetchFromGitHub {
owner = "weaveworks";
repo = "ignite";
rev = "v${version}";
sha256 = "sha256-rjCsZ12DHcSw5GZu6jGTtqCPOZDSbYoMplkqvspbvO8=";
leaveDotGit = true;
};
vendorSha256 = null;
doCheck = false;
postPatch = ''
# ignite tries to run cni-plugins programs from /opt/cni/bin
substituteInPlace pkg/constants/dependencies.go \
--replace "/opt/cni/bin/loopback" ${cni-plugins}/bin/loopback \
--replace "/opt/cni/bin/bridge" ${cni-plugins}/bin/bridge
# ignite tries to run cni-plugins programs from /opt/cni/bin
substituteInPlace pkg/network/cni/cni.go \
--replace "/opt/cni/bin" ${cni-plugins}/bin
# fetchgit doesn't fetch tags from git repository so it's necessary to force IGNITE_GIT_VERSION to be ${version}
# also forcing git state to be clean because if it's dirty ignite will try to fetch the image weaveworks/ignite:dev
# which is not in docker.io, we want it to fetch the image weaveworks/ignite:v${version}
substituteInPlace hack/ldflags.sh \
--replace '$(git describe --tags --abbrev=14 "''${IGNITE_GIT_COMMIT}^{commit}" 2>/dev/null)' "v${version}" \
--replace 'IGNITE_GIT_TREE_STATE="dirty"' 'IGNITE_GIT_TREE_STATE="clean"'
'';
nativeBuildInputs = [
git
makeWrapper
];
buildInputs = [
firecracker
];
preBuild = ''
patchShebangs ./hack/ldflags.sh
export buildFlagsArray+=("-ldflags=$(./hack/ldflags.sh)")
'';
postInstall = ''
for prog in hack ignite ignited ignite-spawn; do
wrapProgram "$out/bin/$prog" --prefix PATH : ${lib.makeBinPath [ cni-plugins firecracker containerd runc ]}
done
'';
meta = with lib; {
description = "Ignite a Firecracker microVM";
homepage = "https://github.com/weaveworks/ignite";
license = licenses.asl20;
maintainers = with maintainers; [ tfmoraes ];
};
}

View file

@ -2,7 +2,7 @@
let let
ocamlDependencies = version: ocamlDependencies = version:
if lib.versionAtLeast version "4.0" if lib.versionAtLeast version "4.2"
then with ocaml-ng.ocamlPackages; [ then with ocaml-ng.ocamlPackages; [
ocaml ocaml
findlib findlib
@ -13,8 +13,19 @@ let
sha sha
dune_2 dune_2
luv luv
(if lib.versionAtLeast version "4.2" ocaml_extlib
then ocaml_extlib else ocaml_extlib-1-7-7) ] else if lib.versionAtLeast version "4.0"
then with ocaml-ng.ocamlPackages_4_10; [
ocaml
findlib
sedlex_2
xml-light
ptmap
camlp5
sha
dune_2
luv
ocaml_extlib-1-7-7
] else with ocaml-ng.ocamlPackages_4_05; [ ] else with ocaml-ng.ocamlPackages_4_05; [
ocaml ocaml
camlp4 camlp4

View file

@ -1,14 +1,33 @@
{ { mkDerivation
mkDerivation, , lib
extra-cmake-modules, , extra-cmake-modules
attr, ebook_tools, exiv2, ffmpeg_3, karchive, kcoreaddons, ki18n, poppler, qtbase, qtmultimedia, taglib , attr
, ebook_tools
, exiv2
, ffmpeg
, karchive
, kcoreaddons
, ki18n
, poppler
, qtbase
, qtmultimedia
, taglib
}: }:
mkDerivation { mkDerivation {
name = "kfilemetadata"; name = "kfilemetadata";
nativeBuildInputs = [ extra-cmake-modules ]; nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [ buildInputs = [
attr ebook_tools exiv2 ffmpeg_3 karchive kcoreaddons ki18n poppler qtbase qtmultimedia attr
ebook_tools
exiv2
ffmpeg
karchive
kcoreaddons
ki18n
poppler
qtbase
qtmultimedia
taglib taglib
]; ];
patches = [ patches = [

View file

@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
''; '';
configureFlags = [ "--disable-appliance" "--disable-daemon" "--with-distro=NixOS" ] configureFlags = [ "--disable-appliance" "--disable-daemon" "--with-distro=NixOS" ]
++ lib.optionals (!javaSupport) [ "--disable-java" "--without-java" ]; ++ lib.optionals (!javaSupport) [ "--disable-java" "--without-java" ];
patches = [ ./libguestfs-syms.patch ]; patches = [ ./libguestfs-syms.patch ./ocaml-4.12.patch ];
NIX_CFLAGS_COMPILE="-I${libxml2.dev}/include/libxml2/"; NIX_CFLAGS_COMPILE="-I${libxml2.dev}/include/libxml2/";
installFlags = [ "REALLY_INSTALL=yes" ]; installFlags = [ "REALLY_INSTALL=yes" ];
enableParallelBuilding = true; enableParallelBuilding = true;

View file

@ -0,0 +1,11 @@
--- a/common/mlstdutils/std_utils.ml 2019-02-07 15:45:56.516955598 +0100
+++ b/common/mlstdutils/std_utils.ml 2019-02-07 15:45:56.516955598 +0100
@@ -305,7 +305,7 @@
| x::xs, y::ys, z::zs -> (x, y, z) :: combine3 xs ys zs
| _ -> invalid_arg "combine3"
- let rec assoc_lbl ?(cmp = compare) ~default x = function
+ let rec assoc_lbl ?(cmp = Pervasives.compare) ~default x = function
| [] -> default
| (y, y') :: _ when cmp x y = 0 -> y'
| _ :: ys -> assoc_lbl ~cmp ~default x ys

View file

@ -1,11 +1,14 @@
# Older version of extlib for Haxe 4.0 and 4.1. # Older version of extlib for Haxe 4.0 and 4.1.
# May be replaceable by the next extlib + extlib-base64 release. # May be replaceable by the next extlib + extlib-base64 release.
{ fetchurl, ocaml_extlib }: { lib, fetchurl, ocaml, ocaml_extlib }:
ocaml_extlib.overrideAttrs (_: rec { ocaml_extlib.overrideAttrs (x: rec {
version = "1.7.7"; version = "1.7.7";
src = fetchurl { src = fetchurl {
url = "https://github.com/ygrek/ocaml-extlib/releases/download/${version}/extlib-${version}.tar.gz"; url = "https://github.com/ygrek/ocaml-extlib/releases/download/${version}/extlib-${version}.tar.gz";
sha256 = "1sxmzc1mx3kg62j8kbk0dxkx8mkf1rn70h542cjzrziflznap0s1"; sha256 = "1sxmzc1mx3kg62j8kbk0dxkx8mkf1rn70h542cjzrziflznap0s1";
}; };
meta = x.meta // {
broken = lib.versionAtLeast ocaml.version "4.12";
};
}) })

View file

@ -1,4 +1,5 @@
{ self { self
, lib
, openssl , openssl
, zstd , zstd
}: }:
@ -40,6 +41,7 @@ with self;
version = "0.14.1"; version = "0.14.1";
hash = "1cdkv34m6czhacivpbb2sasj83fgcid6gnqk30ig9i84z8nh2gw2"; hash = "1cdkv34m6czhacivpbb2sasj83fgcid6gnqk30ig9i84z8nh2gw2";
meta.description = "Accessors for Core types, for use with the Accessor library"; meta.description = "Accessors for Core types, for use with the Accessor library";
meta.broken = lib.versionAtLeast ocaml.version "4.12";
propagatedBuildInputs = [ accessor_base core_kernel ]; propagatedBuildInputs = [ accessor_base core_kernel ];
}; };

View file

@ -6,12 +6,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "adafruit-platformdetect"; pname = "adafruit-platformdetect";
version = "3.6.0"; version = "3.8.0";
src = fetchPypi { src = fetchPypi {
pname = "Adafruit-PlatformDetect"; pname = "Adafruit-PlatformDetect";
inherit version; inherit version;
sha256 = "sha256-096bMTAh5d2wikrmlDcUspD9GYZlPHbdDcf/e/BLAHI="; sha256 = "sha256-AjUpxdY/5IoWMBtufP3OVnMpUwpxgpCNWoydH1w+t+Y=";
}; };
nativeBuildInputs = [ setuptools-scm ]; nativeBuildInputs = [ setuptools-scm ];

View file

@ -2,7 +2,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "adb-enhanced"; pname = "adb-enhanced";
version = "2.5.10"; version = "2.5.11";
disabled = pythonOlder "3.4"; disabled = pythonOlder "3.4";
@ -10,7 +10,7 @@ buildPythonPackage rec {
owner = "ashishb"; owner = "ashishb";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-JMbcOk9Yr4WbfVUMKe5zZZWvvjKwhpPMdBt9d7xE6ek="; sha256 = "sha256-jb5O7Qxk2xAX5sax6nqywcGBJao5Xfff9s1yvdfvDCs=";
}; };
postPatch = '' postPatch = ''

View file

@ -1,4 +1,5 @@
{ lib { lib
, stdenv
, fetchPypi , fetchPypi
, buildPythonPackage , buildPythonPackage
, isPy27 , isPy27
@ -63,6 +64,9 @@ buildPythonPackage rec {
"test_role_handler_positive" "test_role_handler_positive"
]; ];
# fails to run tests due to issues with temporary directory
doCheck = !stdenv.isDarwin;
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ansible ]}" ]; makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ansible ]}" ];
meta = with lib; { meta = with lib; {

View file

@ -8,7 +8,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bip_utils"; pname = "bip_utils";
version = "1.7.0"; version = "1.9.0";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -16,7 +16,7 @@ buildPythonPackage rec {
owner = "ebellocchia"; owner = "ebellocchia";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1dj0c9sj0c4dkdf7rbz3s1z5kfzw22hpncm4bnwqigjzi6nrk81z"; sha256 = "0i1jdpdsrc8cal5x0b1am9mgbca69ymxlaqpkw0y4d0m3m6vs33k";
}; };
propagatedBuildInputs = [ ecdsa pysha3 ]; propagatedBuildInputs = [ ecdsa pysha3 ];

View file

@ -72,7 +72,10 @@ buildPythonPackage rec {
--replace "cmdclass=versioneer.get_cmdclass()," "" --replace "cmdclass=versioneer.get_cmdclass()," ""
''; '';
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ]; pytestFlagsArray = [
"-n $NIX_BUILD_CORES"
"-m 'not network'"
];
disabledTests = [ disabledTests = [
"test_annotation_pack_unpack" "test_annotation_pack_unpack"
@ -82,6 +85,8 @@ buildPythonPackage rec {
"test_auto_blocksize_csv" "test_auto_blocksize_csv"
]; ];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "dask.dataframe" "dask" "dask.array" ]; pythonImportsCheck = [ "dask.dataframe" "dask" "dask.array" ];
meta = with lib; { meta = with lib; {

View file

@ -2,9 +2,9 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, substituteAll , substituteAll
, ffmpeg_3 , pytestCheckHook
, ffmpeg
, future , future
, pytest
, pytestrunner , pytestrunner
, pytest-mock , pytest-mock
}: }:
@ -21,23 +21,20 @@ buildPythonPackage rec {
}; };
patches = [ patches = [
( (substituteAll {
substituteAll { src = ./ffmpeg-location.patch;
src = ./ffmpeg-location.patch; inherit ffmpeg;
ffmpeg = ffmpeg_3; })
}
)
]; ];
buildInputs = [ pytestrunner ]; buildInputs = [ pytestrunner ];
propagatedBuildInputs = [ future ]; propagatedBuildInputs = [ future ];
checkInputs = [ pytest pytest-mock ]; checkInputs = [ pytestCheckHook pytest-mock ];
meta = with lib; { meta = with lib; {
description = "Python bindings for FFmpeg - with complex filtering support"; description = "Python bindings for FFmpeg - with complex filtering support";
homepage = "https://github.com/kkroening/ffmpeg-python"; homepage = "https://github.com/kkroening/ffmpeg-python";
license = licenses.asl20; license = licenses.asl20;
maintainers = [ maintainers.AluisioASG ]; maintainers = [ maintainers.AluisioASG ];
platforms = platforms.all;
}; };
} }

View file

@ -14,26 +14,32 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "slither-analyzer"; pname = "slither-analyzer";
version = "0.7.0"; version = "0.7.1";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
# No Python tests
doCheck = false;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "10r479xidgxvas4wb0z6injp59jrn7rfq8d7bxlcalc2dy4mawr0"; sha256 = "sha256-v/UuxxgMmkGfP962AfOQU05MI8xJocpD8SkENCZi04I=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [
propagatedBuildInputs = [ crytic-compile prettytable setuptools ]; makeWrapper
];
propagatedBuildInputs = [
crytic-compile
prettytable
setuptools
];
postFixup = lib.optionalString withSolc '' postFixup = lib.optionalString withSolc ''
wrapProgram $out/bin/slither \ wrapProgram $out/bin/slither \
--prefix PATH : "${lib.makeBinPath [ solc ]}" --prefix PATH : "${lib.makeBinPath [ solc ]}"
''; '';
# No Python tests
doCheck = false;
meta = with lib; { meta = with lib; {
description = "Static Analyzer for Solidity"; description = "Static Analyzer for Solidity";
longDescription = '' longDescription = ''
@ -43,6 +49,6 @@ buildPythonPackage rec {
''; '';
homepage = "https://github.com/trailofbits/slither"; homepage = "https://github.com/trailofbits/slither";
license = licenses.agpl3Plus; license = licenses.agpl3Plus;
maintainers = with maintainers; [ arturcygan ]; maintainers = with maintainers; [ arturcygan fab ];
}; };
} }

View file

@ -2,7 +2,7 @@
buildGoModule rec { buildGoModule rec {
pname = "kustomize"; pname = "kustomize";
version = "4.0.5"; version = "4.1.2";
# rev is the commit of the tag, mainly for kustomize version command output # rev is the commit of the tag, mainly for kustomize version command output
rev = "9e8e7a7fe99ec9fbf801463e8607928322fc5245"; rev = "9e8e7a7fe99ec9fbf801463e8607928322fc5245";
@ -17,7 +17,7 @@ buildGoModule rec {
owner = "kubernetes-sigs"; owner = "kubernetes-sigs";
repo = pname; repo = pname;
rev = "kustomize/v${version}"; rev = "kustomize/v${version}";
sha256 = "sha256-rv65sDr6V6hEYgIRxS1OSu9txmW75F7/YGAy/zRXGyY="; sha256 = "sha256-uomtW6PPs/UHvKRbHToot6kU4YJGLJuet8vJENbwEgI=";
}; };
# TODO: Remove once https://github.com/kubernetes-sigs/kustomize/pull/3708 got merged. # TODO: Remove once https://github.com/kubernetes-sigs/kustomize/pull/3708 got merged.
@ -26,7 +26,7 @@ buildGoModule rec {
# avoid finding test and development commands # avoid finding test and development commands
sourceRoot = "source/kustomize"; sourceRoot = "source/kustomize";
vendorSha256 = "sha256-lLUi0vD7uyfDR4HjDiosoTU0NbfQTY7ewZGm38ZT9nU="; vendorSha256 = "sha256-fcsjxtCojahI6ZIcaSG5ubNqlWEC6DnNHtVYwTtbSw4=";
meta = with lib; { meta = with lib; {
description = "Customization of kubernetes YAML configurations"; description = "Customization of kubernetes YAML configurations";

View file

@ -25,8 +25,10 @@ let src =
}."${version}"; }."${version}";
}; };
ocamlPackages = ocamlPackages =
if lib.versionAtLeast version "0.14.3" if lib.versionAtLeast version "0.17.0"
then ocaml-ng.ocamlPackages then ocaml-ng.ocamlPackages
else if lib.versionAtLeast version "0.14.3"
then ocaml-ng.ocamlPackages_4_10
else ocaml-ng.ocamlPackages_4_07 else ocaml-ng.ocamlPackages_4_07
; in ; in

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ncurses, cmdliner, re }: { lib, stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, ncurses, cmdliner, re }:
let let
version = "1.99.21"; version = "1.99.21";
in in
@ -13,6 +13,14 @@ stdenv.mkDerivation {
sha256 = "1641xzik98c7xnjwxpacijd6d9jzx340fmdn6i372z8h554jjlg9"; sha256 = "1641xzik98c7xnjwxpacijd6d9jzx340fmdn6i372z8h554jjlg9";
}; };
patches = [
# Fix compilation with OCaml 4.12
(fetchpatch {
url = "https://github.com/OCamlPro/ocp-build/commit/104e4656ca6dba9edb03b62539c9f1e10abcaae8.patch";
sha256 = "0sbyi4acig9q8x1ky4hckfg5pm2nad6zasi51ravaf1spgl148c2";
})
];
buildInputs = [ ocaml findlib cmdliner re ]; buildInputs = [ ocaml findlib cmdliner re ];
propagatedBuildInputs = [ ncurses ]; propagatedBuildInputs = [ ncurses ];
preInstall = "mkdir -p $out/bin"; preInstall = "mkdir -p $out/bin";

View file

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "wrangler"; pname = "wrangler";
version = "1.16.0"; version = "1.16.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cloudflare"; owner = "cloudflare";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-ZOkoUMkpp89ON60xgz0ZzL9RAZeHstKTTl/UEc/y3Ls="; sha256 = "sha256-chKmn38yB05NqDvtYWo4EwEIiD6kjy/1OMaMFM4qAA8=";
}; };
cargoSha256 = "sha256-Cppj3sRJzH8UiyM8lXT2dWqsWr83EApYKqYq3nJQZi8="; cargoSha256 = "sha256-pG3ZsRPa/7QRkUik6a987SlGrl3B0thnN3h62JyzdJo=";
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];

View file

@ -1,40 +1,100 @@
{ lib, wayland, wayland-protocols, xorgserver, xkbcomp, xkeyboard_config { egl-wayland
, epoxy, libxslt, libunwind, makeWrapper, egl-wayland , epoxy
, fetchurl
, fontutil
, lib
, libGL
, libGLU
, libX11
, libXau
, libXaw
, libXdmcp
, libXext
, libXfixes
, libXfont2
, libXmu
, libXpm
, libXrender
, libXres
, libXt
, libdrm
, libtirpc
, libunwind
, libxcb
, libxkbfile
, libxshmfence
, mesa
, meson
, ninja
, openssl
, pkg-config
, pixman
, stdenv
, wayland
, wayland-protocols
, xkbcomp
, xkeyboard_config
, xorgproto
, xtrans
, zlib
, defaultFontPath ? "" }: , defaultFontPath ? "" }:
with lib; stdenv.mkDerivation rec {
xorgserver.overrideAttrs (oldAttrs: { pname = "xwayland";
version = "21.1.1";
name = "xwayland-${xorgserver.version}"; src = fetchurl {
buildInputs = oldAttrs.buildInputs ++ [ egl-wayland ]; url = "mirror://xorg/individual/xserver/${pname}-${version}.tar.xz";
propagatedBuildInputs = oldAttrs.propagatedBuildInputs sha256 = "sha256-MfJhzlG77namyj7AKqNn/6K176K5hBLfV8zv16GQA84=";
++ [wayland wayland-protocols epoxy libxslt makeWrapper libunwind]; };
configureFlags = [ nativeBuildInputs = [ pkg-config meson ninja ];
"--disable-docs" buildInputs = [
"--disable-devel-docs" egl-wayland
"--enable-xwayland" epoxy
"--enable-xwayland-eglstream" fontutil
"--disable-xorg" libGL
"--disable-xvfb" libGLU
"--disable-xnest" libX11
"--disable-xquartz" libXau
"--disable-xwin" libXaw
"--enable-glamor" libXdmcp
"--with-default-font-path=${defaultFontPath}" libXext
"--with-xkb-bin-directory=${xkbcomp}/bin" libXfixes
"--with-xkb-path=${xkeyboard_config}/etc/X11/xkb" libXfont2
"--with-xkb-output=$(out)/share/X11/xkb/compiled" libXmu
libXpm
libXrender
libXres
libXt
libdrm
libtirpc
libunwind
libxcb
libxkbfile
libxshmfence
mesa
openssl
pixman
wayland
wayland-protocols
xkbcomp
xorgproto
xtrans
zlib
];
mesonFlags = [
"-Dxwayland-eglstream=true"
"-Ddefault-font-path=${defaultFontPath}"
"-Dxkb_bin_dir=${xkbcomp}/bin"
"-Dxkb_dir=${xkeyboard_config}/etc/X11/xkb"
"-Dxkb_output_dir=${placeholder "out"}/share/X11/xkb/compiled"
]; ];
postInstall = '' meta = with lib; {
rm -fr $out/share/X11/xkb/compiled
'';
meta = {
description = "An X server for interfacing X11 apps with the Wayland protocol"; description = "An X server for interfacing X11 apps with the Wayland protocol";
homepage = "https://wayland.freedesktop.org/xserver.html"; homepage = "https://wayland.freedesktop.org/xserver.html";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ emantor ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
}) }

View file

@ -49,6 +49,7 @@ rustPlatform.buildRustPackage rec {
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ Br1ght0ne johntitor marsam ]; maintainers = with maintainers; [ Br1ght0ne johntitor marsam ];
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ]; platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ];
mainProgram = "nu";
}; };
passthru = { passthru = {

View file

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, rtmpdump, php, wget, python3Packages, ffmpeg_3 }: { lib, fetchFromGitHub, rtmpdump, php, wget, python3Packages, ffmpeg }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "yle-dl"; pname = "yle-dl";
@ -12,12 +12,12 @@ python3Packages.buildPythonApplication rec {
}; };
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
attrs ConfigArgParse ffmpeg_3 future lxml requests attrs ConfigArgParse ffmpeg future lxml requests
]; ];
pythonPath = [ rtmpdump php wget ]; pythonPath = [ rtmpdump php wget ];
doCheck = false; # tests require network access doCheck = false; # tests require network access
checkInputs = with python3Packages; [ ffmpeg_3 pytest pytestrunner ]; checkInputs = with python3Packages; [ ffmpeg pytest pytestrunner ];
meta = with lib; { meta = with lib; {
description = "Downloads videos from Yle (Finnish Broadcasting Company) servers"; description = "Downloads videos from Yle (Finnish Broadcasting Company) servers";

View file

@ -0,0 +1,29 @@
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "nbtscanner";
version = "0.0.1";
src = fetchFromGitHub {
owner = "jonkgrimes";
repo = pname;
rev = version;
sha256 = "06507a8y41v42cmvjpzimyrzdp972w15fjpc6c6750n1wa2wdl6c";
};
cargoSha256 = "0cis54zmr2x0f4z664lmhk9dzx00hvds6jh3x417308sz7ak11gd";
buildInputs = lib.optional stdenv.isDarwin Security;
meta = with lib; {
description = "NetBIOS scanner written in Rust";
homepage = "https://github.com/jonkgrimes/nbtscanner";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, rustPlatform, makeWrapper, ffmpeg_3 { stdenv, lib, fetchFromGitHub, rustPlatform, makeWrapper, ffmpeg
, pandoc, poppler_utils, ripgrep, Security, imagemagick, tesseract , pandoc, poppler_utils, ripgrep, Security, imagemagick, tesseract
}: }:
@ -19,7 +19,7 @@ rustPlatform.buildRustPackage rec {
postInstall = '' postInstall = ''
wrapProgram $out/bin/rga \ wrapProgram $out/bin/rga \
--prefix PATH ":" "${lib.makeBinPath [ ffmpeg_3 pandoc poppler_utils ripgrep imagemagick tesseract ]}" --prefix PATH ":" "${lib.makeBinPath [ ffmpeg pandoc poppler_utils ripgrep imagemagick tesseract ]}"
''; '';
# Use upstream's example data to run a couple of queries to ensure the dependencies # Use upstream's example data to run a couple of queries to ensure the dependencies

View file

@ -2371,7 +2371,8 @@ in
duf = callPackage ../tools/misc/duf { }; duf = callPackage ../tools/misc/duf { };
inherit (ocamlPackages) dune_1 dune_2 dune-release; inherit (ocaml-ng.ocamlPackages_4_10) dune_1;
inherit (ocamlPackages) dune_2 dune-release;
duperemove = callPackage ../tools/filesystems/duperemove { }; duperemove = callPackage ../tools/filesystems/duperemove { };
@ -5591,6 +5592,8 @@ in
irods irods
irods-icommands; irods-icommands;
ignite = callPackage ../applications/virtualization/ignite { };
igmpproxy = callPackage ../tools/networking/igmpproxy { }; igmpproxy = callPackage ../tools/networking/igmpproxy { };
ihaskell = callPackage ../development/tools/haskell/ihaskell/wrapper.nix { ihaskell = callPackage ../development/tools/haskell/ihaskell/wrapper.nix {
@ -6180,6 +6183,10 @@ in
nbench = callPackage ../tools/misc/nbench { }; nbench = callPackage ../tools/misc/nbench { };
nbtscanner = callPackage ../tools/security/nbtscanner {
inherit (darwin.apple_sdk.frameworks) Security;
};
ncrack = callPackage ../tools/security/ncrack { }; ncrack = callPackage ../tools/security/ncrack { };
nerdctl = callPackage ../applications/networking/cluster/nerdctl { }; nerdctl = callPackage ../applications/networking/cluster/nerdctl { };
@ -23052,7 +23059,7 @@ in
gomuks = callPackage ../applications/networking/instant-messengers/gomuks { }; gomuks = callPackage ../applications/networking/instant-messengers/gomuks { };
inherit (ocamlPackages) google-drive-ocamlfuse; inherit (ocaml-ng.ocamlPackages_4_10) google-drive-ocamlfuse;
googler = callPackage ../applications/misc/googler { googler = callPackage ../applications/misc/googler {
python = python3; python = python3;

View file

@ -1283,7 +1283,7 @@ let
if lib.versionOlder "4.08" ocaml.version if lib.versionOlder "4.08" ocaml.version
then import ../development/ocaml-modules/janestreet/0.14.nix { then import ../development/ocaml-modules/janestreet/0.14.nix {
inherit self; inherit self;
inherit (pkgs) openssl zstd; inherit (pkgs) lib openssl zstd;
} }
else if lib.versionOlder "4.07" ocaml.version else if lib.versionOlder "4.07" ocaml.version
then import ../development/ocaml-modules/janestreet/0.12.nix { then import ../development/ocaml-modules/janestreet/0.12.nix {
@ -1501,5 +1501,5 @@ in let inherit (pkgs) callPackage; in rec
ocamlPackages_latest = ocamlPackages_4_12; ocamlPackages_latest = ocamlPackages_4_12;
ocamlPackages = ocamlPackages_4_10; ocamlPackages = ocamlPackages_4_12;
} }