Merge master into staging-next
This commit is contained in:
commit
049a283a15
17 changed files with 536 additions and 76 deletions
65
pkgs/applications/networking/cluster/kuma/default.nix
Normal file
65
pkgs/applications/networking/cluster/kuma/default.nix
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, buildGoModule
|
||||||
|
, coredns
|
||||||
|
, installShellFiles
|
||||||
|
, isFull ? false
|
||||||
|
, enableGateway ? false
|
||||||
|
, pname ? "kuma"
|
||||||
|
, components ? lib.optionals isFull [
|
||||||
|
"kumactl"
|
||||||
|
"kuma-cp"
|
||||||
|
"kuma-prometheus-sd"
|
||||||
|
"kuma-dp"
|
||||||
|
]
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
inherit pname ;
|
||||||
|
version = "1.4.0";
|
||||||
|
tags = lib.optionals enableGateway ["gateway"];
|
||||||
|
vendorSha256 = "1fc5psvbd9bpc6c3y2cpx5dx8cgr2fcp7nln3kwfgbryahq2y8wl";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "kumahq";
|
||||||
|
repo = "kuma";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0agib3w5s270n5rhg54m3p4f21s5fhdrhaks374j7l21njs7xhqb";
|
||||||
|
};
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
nativeBuildInputs = [installShellFiles] ++ lib.optionals isFull [coredns];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
export HOME=$TMPDIR
|
||||||
|
'';
|
||||||
|
|
||||||
|
subPackages = map (p: "app/" + p) components;
|
||||||
|
|
||||||
|
postInstall = lib.concatMapStringsSep "\n" (p: ''
|
||||||
|
installShellCompletion --cmd ${p} \
|
||||||
|
--bash <($out/bin/${p} completion bash) \
|
||||||
|
--fish <($out/bin/${p} completion fish) \
|
||||||
|
--zsh <($out/bin/${p} completion zsh)
|
||||||
|
'') components + lib.optionalString isFull ''
|
||||||
|
ln -sLf ${coredns}/bin/coredns $out/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
ldflags = let
|
||||||
|
prefix = "github.com/kumahq/kuma/pkg/version";
|
||||||
|
in [
|
||||||
|
"-s" "-w"
|
||||||
|
"-X ${prefix}.version=${version}"
|
||||||
|
"-X ${prefix}.gitTag=${version}"
|
||||||
|
"-X ${prefix}.gitCommit=${version}"
|
||||||
|
"-X ${prefix}.buildDate=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Service mesh controller";
|
||||||
|
homepage = "https://kuma.io/";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ zbioe ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,34 +0,0 @@
|
||||||
{ lib, fetchFromGitHub, buildGoModule }:
|
|
||||||
|
|
||||||
buildGoModule rec {
|
|
||||||
pname = "kumactl";
|
|
||||||
version = "1.3.1";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "kumahq";
|
|
||||||
repo = "kuma";
|
|
||||||
rev = version;
|
|
||||||
sha256 = "0b554cngg2j3wnadpqwhq3dv3la8vvvzyww2diw4il4gl4j6xj0j";
|
|
||||||
};
|
|
||||||
|
|
||||||
vendorSha256 = "0r26h4vp11wbl7nk3y7c22p60q7lspy8nr58khxyczdqjk6wrdjp";
|
|
||||||
|
|
||||||
subPackages = [ "app/kumactl" ];
|
|
||||||
|
|
||||||
ldflags = let
|
|
||||||
prefix = "github.com/kumahq/kuma/pkg/version";
|
|
||||||
in [
|
|
||||||
"-s" "-w"
|
|
||||||
"-X ${prefix}.version=${version}"
|
|
||||||
"-X ${prefix}.gitTag=${version}"
|
|
||||||
"-X ${prefix}.gitCommit=${version}"
|
|
||||||
"-X ${prefix}.buildDate=${version}"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Kuma service mesh controller";
|
|
||||||
homepage = "https://kuma.io/";
|
|
||||||
license = licenses.asl20;
|
|
||||||
maintainers = with maintainers; [ zbioe ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "elementary-files";
|
pname = "elementary-files";
|
||||||
version = "6.0.4";
|
version = "6.1.0";
|
||||||
|
|
||||||
repoName = "files";
|
repoName = "files";
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
|
||||||
owner = "elementary";
|
owner = "elementary";
|
||||||
repo = repoName;
|
repo = repoName;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-FH6EYtgKADp8jjBoCwsdRdknlKS9v3iOtPiT3CyEc/8=";
|
sha256 = "sha256-aGiFEeSvDV5rPD2Ll/BuDoWclEPhR1UuoCxUSS9CGmw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
@ -67,6 +67,7 @@ stdenv.mkDerivation rec {
|
||||||
bamf
|
bamf
|
||||||
elementary-dock
|
elementary-dock
|
||||||
elementary-icon-theme
|
elementary-icon-theme
|
||||||
|
glib
|
||||||
granite
|
granite
|
||||||
gtk3
|
gtk3
|
||||||
libcanberra
|
libcanberra
|
||||||
|
@ -82,16 +83,9 @@ stdenv.mkDerivation rec {
|
||||||
zeitgeist
|
zeitgeist
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
|
||||||
./filechooser-portal-hardcode-gsettings-for-nixos.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
chmod +x meson/post_install.py
|
chmod +x meson/post_install.py
|
||||||
patchShebangs meson/post_install.py
|
patchShebangs meson/post_install.py
|
||||||
|
|
||||||
substituteInPlace filechooser-portal/LegacyFileChooserDialog.vala \
|
|
||||||
--subst-var-by ELEMENTARY_FILES_GSETTINGS_PATH ${glib.makeSchemaPath "$out" "${pname}-${version}"}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
From 726ab4c0ab01273cb2197e4c151a5b69ff0954b6 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Bobby Rong <rjl931189261@126.com>
|
|
||||||
Date: Fri, 16 Jul 2021 18:24:58 +0800
|
|
||||||
Subject: [PATCH] filechooser-portal: hardcode gsettings for nixos
|
|
||||||
|
|
||||||
---
|
|
||||||
filechooser-portal/LegacyFileChooserDialog.vala | 4 +++-
|
|
||||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/filechooser-portal/LegacyFileChooserDialog.vala b/filechooser-portal/LegacyFileChooserDialog.vala
|
|
||||||
index 330718f..f383bb1 100644
|
|
||||||
--- a/filechooser-portal/LegacyFileChooserDialog.vala
|
|
||||||
+++ b/filechooser-portal/LegacyFileChooserDialog.vala
|
|
||||||
@@ -60,7 +60,9 @@ public class Files.LegacyFileChooserDialog : Object {
|
|
||||||
/* If not local only during creation, strange bug occurs on fresh installs */
|
|
||||||
chooser_dialog.local_only = true;
|
|
||||||
|
|
||||||
- var chooser_settings = new Settings ("io.elementary.files.file-chooser");
|
|
||||||
+ SettingsSchemaSource sss = new SettingsSchemaSource.from_directory ("@ELEMENTARY_FILES_GSETTINGS_PATH@", SettingsSchemaSource.get_default (), true);
|
|
||||||
+ SettingsSchema chooser_schema = sss.lookup ("io.elementary.files.file-chooser", false);
|
|
||||||
+ var chooser_settings = new Settings.full (chooser_schema, null, null);
|
|
||||||
|
|
||||||
action_area = (Gtk.ButtonBox) chooser_dialog.get_action_area ();
|
|
||||||
|
|
34
pkgs/development/libraries/nghttp3/default.nix
Normal file
34
pkgs/development/libraries/nghttp3/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ lib, stdenv, fetchFromGitHub
|
||||||
|
, autoreconfHook, pkg-config
|
||||||
|
, cunit, file
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "nghttp3";
|
||||||
|
version = "unstable-2021-11-10";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ngtcp2";
|
||||||
|
repo = pname;
|
||||||
|
rev = "270e75447ed9e2a05b78ba89d0699d076230ea60";
|
||||||
|
sha256 = "01cla03cv8nd2rf5p77h0xzvn9f8sfwn8pp3r2jshvqp9ipa8065";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoreconfHook pkg-config cunit file ];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file
|
||||||
|
'';
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/ngtcp2/nghttp3";
|
||||||
|
description = "nghttp3 is an implementation of HTTP/3 mapping over QUIC and QPACK in C.";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ izorkin ];
|
||||||
|
};
|
||||||
|
}
|
36
pkgs/development/libraries/ngtcp2/default.nix
Normal file
36
pkgs/development/libraries/ngtcp2/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{ lib, stdenv, fetchFromGitHub
|
||||||
|
, autoreconfHook, pkg-config
|
||||||
|
, cunit, file
|
||||||
|
, jemalloc, libev, nghttp3, quictls
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "ngtcp2";
|
||||||
|
version = "unstable-2021-11-10";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ngtcp2";
|
||||||
|
repo = pname;
|
||||||
|
rev = "7039808c044152c14b44046468bd16249b4d7048";
|
||||||
|
sha256 = "1cjsky24f6fazw9b1r6w9cgp09vi8wp99sv76gg2b1r8ic3hgq23";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoreconfHook pkg-config cunit file ];
|
||||||
|
buildInputs = [ jemalloc libev nghttp3 quictls ];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file
|
||||||
|
'';
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/ngtcp2/ngtcp2";
|
||||||
|
description = "ngtcp2 project is an effort to implement QUIC protocol which is now being discussed in IETF QUICWG for its standardization.";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ izorkin ];
|
||||||
|
};
|
||||||
|
}
|
170
pkgs/development/libraries/quictls/default.nix
Normal file
170
pkgs/development/libraries/quictls/default.nix
Normal file
|
@ -0,0 +1,170 @@
|
||||||
|
{ lib, stdenv, fetchurl, buildPackages, perl, coreutils, fetchFromGitHub
|
||||||
|
, withCryptodev ? false, cryptodev
|
||||||
|
, enableSSL2 ? false
|
||||||
|
, enableSSL3 ? false
|
||||||
|
, static ? stdenv.hostPlatform.isStatic
|
||||||
|
# Used to avoid cross compiling perl, for example, in darwin bootstrap tools.
|
||||||
|
# This will cause c_rehash to refer to perl via the environment, but otherwise
|
||||||
|
# will produce a perfectly functional openssl binary and library.
|
||||||
|
, withPerl ? stdenv.hostPlatform == stdenv.buildPlatform
|
||||||
|
}:
|
||||||
|
|
||||||
|
assert (
|
||||||
|
lib.assertMsg (!withPerl -> stdenv.hostPlatform != stdenv.buildPlatform)
|
||||||
|
"withPerl should not be disabled unless cross compiling"
|
||||||
|
);
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "quictls";
|
||||||
|
version = "3.0.0+quick_unstable-2021-11.02";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "quictls";
|
||||||
|
repo = "openssl";
|
||||||
|
rev = "62d4de00abfa82fc01efa2eba1982a86c4864f39";
|
||||||
|
sha256 = "11mi4bkkyy4qd2wml6p7xcsbps0mabk3bp537rp7n43qnhwyg1g3";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
../openssl/3.0/nix-ssl-cert-file.patch
|
||||||
|
|
||||||
|
# openssl will only compile in KTLS if the current kernel supports it.
|
||||||
|
# This patch disables build-time detection.
|
||||||
|
../openssl/3.0/openssl-disable-kernel-detection.patch
|
||||||
|
|
||||||
|
(if stdenv.hostPlatform.isDarwin
|
||||||
|
then ../openssl/use-etc-ssl-certs-darwin.patch
|
||||||
|
else ../openssl/use-etc-ssl-certs.patch)
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs Configure
|
||||||
|
''
|
||||||
|
# config is a configure script which is not installed.
|
||||||
|
+ ''
|
||||||
|
substituteInPlace config --replace '/usr/bin/env' '${buildPackages.coreutils}/bin/env'
|
||||||
|
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
|
substituteInPlace crypto/async/arch/async_posix.h \
|
||||||
|
--replace '!defined(__ANDROID__) && !defined(__OpenBSD__)' \
|
||||||
|
'!defined(__ANDROID__) && !defined(__OpenBSD__) && 0'
|
||||||
|
'';
|
||||||
|
|
||||||
|
outputs = [ "bin" "dev" "out" "man" "doc" ];
|
||||||
|
setOutputFlags = false;
|
||||||
|
separateDebugInfo =
|
||||||
|
!stdenv.hostPlatform.isDarwin &&
|
||||||
|
!(stdenv.hostPlatform.useLLVM or false) &&
|
||||||
|
stdenv.cc.isGNU;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ perl ];
|
||||||
|
buildInputs = lib.optional withCryptodev cryptodev
|
||||||
|
# perl is included to allow the interpreter path fixup hook to set the
|
||||||
|
# correct interpreter in c_rehash.
|
||||||
|
++ lib.optional withPerl perl;
|
||||||
|
|
||||||
|
# TODO(@Ericson2314): Improve with mass rebuild
|
||||||
|
configurePlatforms = [];
|
||||||
|
configureScript = {
|
||||||
|
armv5tel-linux = "./Configure linux-armv4 -march=armv5te";
|
||||||
|
armv6l-linux = "./Configure linux-armv4 -march=armv6";
|
||||||
|
armv7l-linux = "./Configure linux-armv4 -march=armv7-a";
|
||||||
|
x86_64-darwin = "./Configure darwin64-x86_64-cc";
|
||||||
|
aarch64-darwin = "./Configure darwin64-arm64-cc";
|
||||||
|
x86_64-linux = "./Configure linux-x86_64";
|
||||||
|
x86_64-solaris = "./Configure solaris64-x86_64-gcc";
|
||||||
|
riscv64-linux = "./Configure linux64-riscv64";
|
||||||
|
}.${stdenv.hostPlatform.system} or (
|
||||||
|
if stdenv.hostPlatform == stdenv.buildPlatform
|
||||||
|
then "./config"
|
||||||
|
else if stdenv.hostPlatform.isBSD && stdenv.hostPlatform.isx86_64
|
||||||
|
then "./Configure BSD-x86_64"
|
||||||
|
else if stdenv.hostPlatform.isBSD && stdenv.hostPlatform.isx86_32
|
||||||
|
then "./Configure BSD-x86" + lib.optionalString (stdenv.hostPlatform.parsed.kernel.execFormat.name == "elf") "-elf"
|
||||||
|
else if stdenv.hostPlatform.isBSD
|
||||||
|
then "./Configure BSD-generic${toString stdenv.hostPlatform.parsed.cpu.bits}"
|
||||||
|
else if stdenv.hostPlatform.isMinGW
|
||||||
|
then "./Configure mingw${lib.optionalString
|
||||||
|
(stdenv.hostPlatform.parsed.cpu.bits != 32)
|
||||||
|
(toString stdenv.hostPlatform.parsed.cpu.bits)}"
|
||||||
|
else if stdenv.hostPlatform.isLinux
|
||||||
|
then "./Configure linux-generic${toString stdenv.hostPlatform.parsed.cpu.bits}"
|
||||||
|
else if stdenv.hostPlatform.isiOS
|
||||||
|
then "./Configure ios${toString stdenv.hostPlatform.parsed.cpu.bits}-cross"
|
||||||
|
else
|
||||||
|
throw "Not sure what configuration to use for ${stdenv.hostPlatform.config}"
|
||||||
|
);
|
||||||
|
|
||||||
|
# OpenSSL doesn't like the `--enable-static` / `--disable-shared` flags.
|
||||||
|
dontAddStaticConfigureFlags = true;
|
||||||
|
configureFlags = [
|
||||||
|
"shared" # "shared" builds both shared and static libraries
|
||||||
|
"--libdir=lib"
|
||||||
|
"--openssldir=etc/ssl"
|
||||||
|
"enable-ktls"
|
||||||
|
] ++ lib.optionals withCryptodev [
|
||||||
|
"-DHAVE_CRYPTODEV"
|
||||||
|
"-DUSE_CRYPTODEV_DIGESTS"
|
||||||
|
] ++ lib.optional enableSSL2 "enable-ssl2"
|
||||||
|
++ lib.optional enableSSL3 "enable-ssl3"
|
||||||
|
++ lib.optional stdenv.hostPlatform.isAarch64 "no-afalgeng"
|
||||||
|
# OpenSSL needs a specific `no-shared` configure flag.
|
||||||
|
# See https://wiki.openssl.org/index.php/Compilation_and_Installation#Configure_Options
|
||||||
|
# for a comprehensive list of configuration options.
|
||||||
|
++ lib.optional static "no-shared";
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"MANDIR=$(man)/share/man"
|
||||||
|
# This avoids conflicts between man pages of openssl subcommands (for
|
||||||
|
# example 'ts' and 'err') man pages and their equivalent top-level
|
||||||
|
# command in other packages (respectively man-pages and moreutils).
|
||||||
|
# This is done in ubuntu and archlinux, and possiibly many other distros.
|
||||||
|
"MANSUFFIX=ssl"
|
||||||
|
];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
postInstall = lib.optionalString (!static) ''
|
||||||
|
# If we're building dynamic libraries, then don't install static
|
||||||
|
# libraries.
|
||||||
|
if [ -n "$(echo $out/lib/*.so $out/lib/*.dylib $out/lib/*.dll)" ]; then
|
||||||
|
rm "$out/lib/"*.a
|
||||||
|
fi
|
||||||
|
'' + lib.optionalString (!stdenv.hostPlatform.isWindows)
|
||||||
|
# Fix bin/c_rehash's perl interpreter line
|
||||||
|
#
|
||||||
|
# - openssl 1_0_2: embeds a reference to buildPackages.perl
|
||||||
|
# - openssl 1_1: emits "#!/usr/bin/env perl"
|
||||||
|
#
|
||||||
|
# In the case of openssl_1_0_2, reset the invalid reference and let the
|
||||||
|
# interpreter hook take care of it.
|
||||||
|
#
|
||||||
|
# In both cases, if withPerl = false, the intepreter line is expected be
|
||||||
|
# "#!/usr/bin/env perl"
|
||||||
|
''
|
||||||
|
substituteInPlace $out/bin/c_rehash --replace ${buildPackages.perl}/bin/perl "/usr/bin/env perl"
|
||||||
|
'' + ''
|
||||||
|
mkdir -p $bin
|
||||||
|
mv $out/bin $bin/bin
|
||||||
|
mkdir $dev
|
||||||
|
mv $out/include $dev/
|
||||||
|
# remove dependency on Perl at runtime
|
||||||
|
rm -r $out/etc/ssl/misc
|
||||||
|
rmdir $out/etc/ssl/{certs,private}
|
||||||
|
'';
|
||||||
|
|
||||||
|
postFixup = lib.optionalString (!stdenv.hostPlatform.isWindows) ''
|
||||||
|
# Check to make sure the main output doesn't depend on perl
|
||||||
|
if grep -r '${buildPackages.perl}' $out; then
|
||||||
|
echo "Found an erroneous dependency on perl ^^^" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://quictls.github.io/openssl/";
|
||||||
|
description = "TLS/SSL and crypto library with QUIC APIs";
|
||||||
|
license = licenses.openssl;
|
||||||
|
platforms = platforms.all;
|
||||||
|
maintainers = with maintainers; [ izorkin ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchFromGitHub }:
|
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "re2";
|
pname = "re2";
|
||||||
|
@ -11,6 +11,15 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1fyhypw345xz8zdh53gz6j1fwgrx0gszk1d349ja37dpxh4jp2jh";
|
sha256 = "1fyhypw345xz8zdh53gz6j1fwgrx0gszk1d349ja37dpxh4jp2jh";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Pull upstreal fix for parallel testing.
|
||||||
|
(fetchpatch {
|
||||||
|
name = "parallel-tests.patch";
|
||||||
|
url = "https://github.com/google/re2/commit/9262284a7edc1b83e7172f4ec2d7967d695e7420.patch";
|
||||||
|
sha256 = "1knhfx9cs4841r09jw4ha6mdx9qwpvlcxvd04i8vr84kd0lilqms";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace Makefile --replace "/usr/local" "$out"
|
substituteInPlace Makefile --replace "/usr/local" "$out"
|
||||||
# we're using gnu sed, even on darwin
|
# we're using gnu sed, even on darwin
|
||||||
|
@ -19,6 +28,8 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildFlags = lib.optionals stdenv.hostPlatform.isStatic [ "static" ];
|
buildFlags = lib.optionals stdenv.hostPlatform.isStatic [ "static" ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
preCheck = "patchShebangs runtests";
|
preCheck = "patchShebangs runtests";
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, mock
|
, mock
|
||||||
, pytorch
|
, pytorch
|
||||||
, pynvml
|
|
||||||
, scikit-learn
|
, scikit-learn
|
||||||
, tqdm
|
, tqdm
|
||||||
}:
|
}:
|
||||||
|
@ -25,7 +24,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook matplotlib mock pytest-xdist torchvision ];
|
checkInputs = [ pytestCheckHook matplotlib mock pytest-xdist torchvision ];
|
||||||
propagatedBuildInputs = [ pytorch scikit-learn tqdm pynvml ];
|
propagatedBuildInputs = [ pytorch scikit-learn tqdm ];
|
||||||
|
|
||||||
# runs succesfully in 3.9, however, async isn't correctly closed so it will fail after test suite.
|
# runs succesfully in 3.9, however, async isn't correctly closed so it will fail after test suite.
|
||||||
doCheck = pythonOlder "3.9";
|
doCheck = pythonOlder "3.9";
|
||||||
|
@ -51,6 +50,7 @@ buildPythonPackage rec {
|
||||||
"idist"
|
"idist"
|
||||||
"mlflow"
|
"mlflow"
|
||||||
"tensorboard"
|
"tensorboard"
|
||||||
|
"test_gpu_info" # needs pynvml
|
||||||
"test_integration"
|
"test_integration"
|
||||||
"test_output_handler" # needs mlflow
|
"test_output_handler" # needs mlflow
|
||||||
"test_pbar" # slight output differences
|
"test_pbar" # slight output differences
|
||||||
|
|
|
@ -22,6 +22,8 @@ buildPythonPackage rec {
|
||||||
substituteInPlace vex/Makefile-gcc --replace '/usr/bin/ar' 'ar'
|
substituteInPlace vex/Makefile-gcc --replace '/usr/bin/ar' 'ar'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
setupPyBuildFlags = lib.optionals stdenv.isLinux [ "--plat-name" "linux" ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
archinfo
|
archinfo
|
||||||
bitstring
|
bitstring
|
||||||
|
@ -45,7 +47,5 @@ buildPythonPackage rec {
|
||||||
homepage = "https://github.com/angr/pyvex";
|
homepage = "https://github.com/angr/pyvex";
|
||||||
license = with licenses; [ bsd2 gpl3Plus lgpl3Plus ];
|
license = with licenses; [ bsd2 gpl3Plus lgpl3Plus ];
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
# ERROR: pyvex-X-py3-none-manylinux1_aarch64.whl is not a supported wheel on this platform.
|
|
||||||
broken = stdenv.isAarch64;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
43
pkgs/development/python-modules/socid-extractor/default.nix
Normal file
43
pkgs/development/python-modules/socid-extractor/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{ lib
|
||||||
|
, beautifulsoup4
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python-dateutil
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "socid-extractor";
|
||||||
|
version = "0.0.22";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "soxoj";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "kHF9CBlUKrD/DRVwJveenpFMr7pIrxEBNkFHHLa46KQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
beautifulsoup4
|
||||||
|
python-dateutil
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
# Test require network access
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"socid_extractor"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python module to extract details from personal pages";
|
||||||
|
homepage = "https://github.com/soxoj/socid-extractor";
|
||||||
|
license = with licenses; [ gpl3Only ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
34
pkgs/development/python-modules/xmind/default.nix
Normal file
34
pkgs/development/python-modules/xmind/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "xmind";
|
||||||
|
version = "1.2.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "zhuifengshen";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "xC1WpHz2eHb5+xShM/QUQAIYnJNyK1EKWbTXJKhDwbQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Projec thas no tests
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"xmind"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python module to create mindmaps";
|
||||||
|
homepage = "https://github.com/zhuifengshen/xmind";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,16 +2,16 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "chezmoi";
|
pname = "chezmoi";
|
||||||
version = "2.7.4";
|
version = "2.9.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "twpayne";
|
owner = "twpayne";
|
||||||
repo = "chezmoi";
|
repo = "chezmoi";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-RX9Hgjl/i/FWXHFp+yYWQEYDiOQijU+eiBnREu4K1Mg=";
|
sha256 = "sha256-jeg9XI2enNyZvv2D4URWluCaT+oD8QbHItx2etrGBpQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-tz3Vcw/p7BKcgc3EsLsSPOKhwqN5kysOcmER7OoKQ+w=";
|
vendorSha256 = "sha256-jaEaVfPlYbmQ998KwZm8PUfbNlPEIr1lX5fx90jcqV4=";
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,12 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = [ ncurses ] ++ lib.optional stdenv.isLinux pam
|
buildInputs = [ ncurses ] ++ lib.optional stdenv.isLinux pam
|
||||||
++ lib.optional stdenv.isDarwin utmp;
|
++ lib.optional stdenv.isDarwin utmp;
|
||||||
|
|
||||||
|
# Build fails due to missing dependencies on autogenerated header:
|
||||||
|
# screen.h:48:10: fatal error: comm.h: No such file or directory
|
||||||
|
# It will be fixed in next screen-4.9.0 release. The patches are
|
||||||
|
# invasive. Disabling parallelism for 4.8.0.
|
||||||
|
enableParallelBuilding = false;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
92
pkgs/tools/security/maigret/default.nix
Normal file
92
pkgs/tools/security/maigret/default.nix
Normal file
|
@ -0,0 +1,92 @@
|
||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python3
|
||||||
|
}:
|
||||||
|
|
||||||
|
python3.pkgs.buildPythonApplication rec {
|
||||||
|
pname = "maigret";
|
||||||
|
version = "0.3.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "soxoj";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "cq7pATICVQa2yTx2uiP58OBTn4B6iCjIB6LMmpaQfx0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
aiodns
|
||||||
|
aiohttp
|
||||||
|
aiohttp-socks
|
||||||
|
arabic-reshaper
|
||||||
|
async-timeout
|
||||||
|
attrs
|
||||||
|
beautifulsoup4
|
||||||
|
certifi
|
||||||
|
chardet
|
||||||
|
colorama
|
||||||
|
future
|
||||||
|
html5lib
|
||||||
|
idna
|
||||||
|
jinja2
|
||||||
|
lxml
|
||||||
|
markupsafe
|
||||||
|
mock
|
||||||
|
multidict
|
||||||
|
networkx
|
||||||
|
pycountry
|
||||||
|
pypdf2
|
||||||
|
pysocks
|
||||||
|
python-bidi
|
||||||
|
pyvis
|
||||||
|
requests
|
||||||
|
requests-futures
|
||||||
|
six
|
||||||
|
socid-extractor
|
||||||
|
soupsieve
|
||||||
|
stem
|
||||||
|
torrequest
|
||||||
|
tqdm
|
||||||
|
typing-extensions
|
||||||
|
webencodings
|
||||||
|
xhtml2pdf
|
||||||
|
xmind
|
||||||
|
yarl
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = with python3.pkgs; [
|
||||||
|
pytest-httpserver
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Remove all version pinning
|
||||||
|
sed -i -e "s/==[0-9.]*//" requirements.txt
|
||||||
|
# We are not build for Python < 3.7
|
||||||
|
sed -i -e '/future-annotations/d' requirements.txt
|
||||||
|
# We can't work with dummy packages
|
||||||
|
sed -i -e 's/bs4/beautifulsoup4/g' requirements.txt
|
||||||
|
'';
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Tests require network access
|
||||||
|
"test_extract_ids_from_page"
|
||||||
|
"test_import_aiohttp_cookies"
|
||||||
|
"test_maigret_results"
|
||||||
|
"test_pdf_report"
|
||||||
|
"test_self_check_db_negative_enabled"
|
||||||
|
"test_self_check_db_positive_enable"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"maigret"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Tool to collect details about an username";
|
||||||
|
homepage = "https://maigret.readthedocs.io";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -3278,6 +3278,8 @@ with pkgs;
|
||||||
|
|
||||||
lynis = callPackage ../tools/security/lynis { };
|
lynis = callPackage ../tools/security/lynis { };
|
||||||
|
|
||||||
|
maigret = callPackage ../tools/security/maigret { };
|
||||||
|
|
||||||
mapcidr = callPackage ../tools/misc/mapcidr { };
|
mapcidr = callPackage ../tools/misc/mapcidr { };
|
||||||
|
|
||||||
mapproxy = callPackage ../applications/misc/mapproxy { };
|
mapproxy = callPackage ../applications/misc/mapproxy { };
|
||||||
|
@ -8952,6 +8954,8 @@ with pkgs;
|
||||||
|
|
||||||
quickserve = callPackage ../tools/networking/quickserve { };
|
quickserve = callPackage ../tools/networking/quickserve { };
|
||||||
|
|
||||||
|
quictls = callPackage ../development/libraries/quictls { };
|
||||||
|
|
||||||
quicktun = callPackage ../tools/networking/quicktun { };
|
quicktun = callPackage ../tools/networking/quicktun { };
|
||||||
|
|
||||||
quilt = callPackage ../development/tools/quilt { };
|
quilt = callPackage ../development/tools/quilt { };
|
||||||
|
@ -18831,6 +18835,10 @@ with pkgs;
|
||||||
nghttp2 = callPackage ../development/libraries/nghttp2 { };
|
nghttp2 = callPackage ../development/libraries/nghttp2 { };
|
||||||
libnghttp2 = nghttp2.lib;
|
libnghttp2 = nghttp2.lib;
|
||||||
|
|
||||||
|
nghttp3 = callPackage ../development/libraries/nghttp3 { };
|
||||||
|
|
||||||
|
ngtcp2 = callPackage ../development/libraries/ngtcp2 { };
|
||||||
|
|
||||||
nix-plugins = callPackage ../development/libraries/nix-plugins { };
|
nix-plugins = callPackage ../development/libraries/nix-plugins { };
|
||||||
|
|
||||||
nika-fonts = callPackage ../data/fonts/nika-fonts { };
|
nika-fonts = callPackage ../data/fonts/nika-fonts { };
|
||||||
|
@ -26409,7 +26417,28 @@ with pkgs;
|
||||||
linkerd_edge = callPackage ../applications/networking/cluster/linkerd/edge.nix { };
|
linkerd_edge = callPackage ../applications/networking/cluster/linkerd/edge.nix { };
|
||||||
linkerd_stable = linkerd;
|
linkerd_stable = linkerd;
|
||||||
|
|
||||||
kumactl = callPackage ../applications/networking/cluster/kumactl { };
|
kuma = callPackage ../applications/networking/cluster/kuma { isFull = true; };
|
||||||
|
kuma-experimental = callPackage ../applications/networking/cluster/kuma {
|
||||||
|
isFull = true;
|
||||||
|
enableGateway = true;
|
||||||
|
pname = "kuma-experimental";
|
||||||
|
};
|
||||||
|
kumactl = callPackage ../applications/networking/cluster/kuma {
|
||||||
|
components = ["kumactl"];
|
||||||
|
pname = "kumactl";
|
||||||
|
};
|
||||||
|
kuma-cp = callPackage ../applications/networking/cluster/kuma {
|
||||||
|
components = ["kuma-cp"];
|
||||||
|
pname = "kuma-cp";
|
||||||
|
};
|
||||||
|
kuma-dp = callPackage ../applications/networking/cluster/kuma {
|
||||||
|
components = ["kuma-dp"];
|
||||||
|
pname = "kuma-dp";
|
||||||
|
};
|
||||||
|
kuma-prometheus-sd = callPackage ../applications/networking/cluster/kuma {
|
||||||
|
components = ["kuma-prometheus-sd"];
|
||||||
|
pname = "kuma-prometheus-sd";
|
||||||
|
};
|
||||||
|
|
||||||
kile-wl = callPackage ../applications/misc/kile-wl { };
|
kile-wl = callPackage ../applications/misc/kile-wl { };
|
||||||
|
|
||||||
|
|
|
@ -8803,6 +8803,8 @@ in {
|
||||||
|
|
||||||
socialscan = callPackage ../development/python-modules/socialscan { };
|
socialscan = callPackage ../development/python-modules/socialscan { };
|
||||||
|
|
||||||
|
socid-extractor = callPackage ../development/python-modules/socid-extractor { };
|
||||||
|
|
||||||
sockjs = callPackage ../development/python-modules/sockjs { };
|
sockjs = callPackage ../development/python-modules/sockjs { };
|
||||||
|
|
||||||
sockjs-tornado = callPackage ../development/python-modules/sockjs-tornado { };
|
sockjs-tornado = callPackage ../development/python-modules/sockjs-tornado { };
|
||||||
|
@ -10147,6 +10149,8 @@ in {
|
||||||
|
|
||||||
xlwt = callPackage ../development/python-modules/xlwt { };
|
xlwt = callPackage ../development/python-modules/xlwt { };
|
||||||
|
|
||||||
|
xmind = callPackage ../development/python-modules/xmind { };
|
||||||
|
|
||||||
xml2rfc = callPackage ../development/python-modules/xml2rfc { };
|
xml2rfc = callPackage ../development/python-modules/xml2rfc { };
|
||||||
|
|
||||||
xmldiff = callPackage ../development/python-modules/xmldiff { };
|
xmldiff = callPackage ../development/python-modules/xmldiff { };
|
||||||
|
|
Loading…
Reference in a new issue