Merge branch 'staging-next' into staging
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
From 411b8a413baf39e9b967949b17a992e81a11abfe Mon Sep 17 00:00:00 2001
|
||||
From 0de195de31dc311976af52a7c2b547bc23af2691 Mon Sep 17 00:00:00 2001
|
||||
From: Frederik Rietdijk <fridh@fridh.nl>
|
||||
Date: Tue, 29 Oct 2019 14:08:07 +0100
|
||||
Date: Sat, 14 Dec 2019 19:27:14 +0100
|
||||
Subject: [PATCH] Don't use distutils.StrictVersion that cannot handle certain
|
||||
versions
|
||||
|
||||
@@ -18,13 +18,13 @@ line 137, in parse
|
||||
ValueError: invalid version number '41.4.0.post20191022'
|
||||
```
|
||||
---
|
||||
setup.py | 15 +--------------
|
||||
certbot/setup.py | 15 +--------------
|
||||
1 file changed, 1 insertion(+), 14 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 1f4838c90..831528d77 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
diff --git a/certbot/setup.py b/certbot/setup.py
|
||||
index c1bf914..7456bf2 100644
|
||||
--- a/certbot/setup.py
|
||||
+++ b/certbot/setup.py
|
||||
@@ -3,7 +3,6 @@ import os
|
||||
import re
|
||||
import sys
|
||||
@@ -40,7 +40,7 @@ index 1f4838c90..831528d77 100644
|
||||
-# However environment markers are supported only with setuptools >= 36.2.
|
||||
-# So this dependency is not added for old Linux distributions with old setuptools,
|
||||
-# in order to allow these systems to build certbot from sources.
|
||||
pywin32_req = 'pywin32>=224'
|
||||
pywin32_req = 'pywin32>=227' # do not forget to edit pywin32 dependency accordingly in windows-installer/construct.py
|
||||
-if StrictVersion(setuptools_version) >= StrictVersion('36.2'):
|
||||
- install_requires.append(pywin32_req + " ; sys_platform == 'win32'")
|
||||
-elif 'bdist_wheel' in sys.argv[1:]:
|
||||
@@ -56,5 +56,5 @@ index 1f4838c90..831528d77 100644
|
||||
dev_extras = [
|
||||
'astroid==1.6.5',
|
||||
--
|
||||
2.23.0
|
||||
2.24.1
|
||||
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
From 8ddf2697508eca514a0dde4646ad14ac3ba34b2a Mon Sep 17 00:00:00 2001
|
||||
From: Florian Klink <flokli@flokli.de>
|
||||
Date: Fri, 18 Oct 2019 16:06:50 +0200
|
||||
Subject: [PATCH] pebble_artifacts: hardcode pebble location
|
||||
|
||||
---
|
||||
certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py b/certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py
|
||||
index 2b1557928..d2603c51a 100644
|
||||
--- a/certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py
|
||||
+++ b/certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py
|
||||
@@ -22,6 +22,7 @@ def fetch(workspace):
|
||||
|
||||
|
||||
def _fetch_asset(asset, suffix):
|
||||
+ return "@pebble@"
|
||||
asset_path = os.path.join(ASSETS_PATH, '{0}_{1}_{2}'.format(asset, PEBBLE_VERSION, suffix))
|
||||
if not os.path.exists(asset_path):
|
||||
asset_url = ('https://github.com/letsencrypt/pebble/releases/download/{0}/{1}_{2}'
|
||||
--
|
||||
2.23.0
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
{ stdenv, python37Packages, fetchFromGitHub, fetchurl, dialog, autoPatchelfHook, nginx, pebble }:
|
||||
{ stdenv, python37Packages, fetchFromGitHub, fetchurl, dialog, autoPatchelfHook }:
|
||||
|
||||
|
||||
python37Packages.buildPythonApplication rec {
|
||||
pname = "certbot";
|
||||
version = "0.39.0";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1s32xg2ljz7ci78wc8rqkjvgrz7vprb7fkznrlf9a4blm55pp54c";
|
||||
sha256 = "180x7gcpfbrzw8k654s7b5nxdy2yg61lq513dykyn3wz4gssw465";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./0001-pebble_artifacts-hardcode-pebble-location.patch
|
||||
./0001-Don-t-use-distutils.StrictVersion-that-cannot-handle.patch
|
||||
];
|
||||
|
||||
@@ -43,9 +42,8 @@ python37Packages.buildPythonApplication rec {
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace certbot/notify.py --replace "/usr/sbin/sendmail" "/run/wrappers/bin/sendmail"
|
||||
substituteInPlace certbot/util.py --replace "sw_vers" "/usr/bin/sw_vers"
|
||||
substituteInPlace certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py --replace "@pebble@" "${pebble}/bin/pebble"
|
||||
cd certbot
|
||||
substituteInPlace certbot/_internal/notify.py --replace "/usr/sbin/sendmail" "/run/wrappers/bin/sendmail"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
@@ -55,15 +53,7 @@ python37Packages.buildPythonApplication rec {
|
||||
done
|
||||
'';
|
||||
|
||||
# tests currently time out, because they're trying to do network access
|
||||
# Upstream issue: https://github.com/certbot/certbot/issues/7450
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
PATH="$out/bin:${nginx}/bin:$PATH" pytest certbot-ci/certbot_integration_tests
|
||||
'';
|
||||
|
||||
dontUseSetuptoolsCheck = true;
|
||||
doCheck = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = src.meta.homepage;
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "simp_le-client";
|
||||
version = "0.16.0";
|
||||
version = "0.17.0";
|
||||
|
||||
src = python3Packages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "17azqlb1xsnh9p0m75apb19j7pramgj00cf5k6fwzz2zqz0x0hpp";
|
||||
sha256 = "0m1jynar4calaffp2zdxr5yy9vnhw2qf2hsfxwzfwf8fqb5h7bjb";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -25,9 +25,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# Filesystem resize functions were reintroduced in parted 3.1 due to no other available free alternatives
|
||||
# but in a sepparate library -> libparted-fs-resize --- that's why the added LDFLAG
|
||||
makeFlags = ''
|
||||
LDFLAGS=-lparted-fs-resize
|
||||
'';
|
||||
makeFlags = [ "LDFLAGS=-lparted-fs-resize" ];
|
||||
|
||||
propagatedBuildInputs = [ parted utillinux ];
|
||||
|
||||
|
||||
@@ -75,20 +75,20 @@ stdenv.mkDerivation rec {
|
||||
libxkbcommon libxml2 dbus cairo gtk2 gtk3 pango qt4 libuuid
|
||||
];
|
||||
|
||||
cmakeFlags = ''
|
||||
-DENABLE_QT_IM_MODULE=ON
|
||||
-DENABLE_GTK2_IM_MODULE=ON
|
||||
-DENABLE_GTK3_IM_MODULE=ON
|
||||
-DENABLE_GIR=OFF
|
||||
-DENABLE_OPENCC=OFF
|
||||
-DENABLE_PRESAGE=OFF
|
||||
-DENABLE_XDGAUTOSTART=OFF
|
||||
-DENABLE_PINYIN=${if withPinyin then "ON" else "OFF"}
|
||||
-DENABLE_TABLE=ON
|
||||
-DENABLE_SPELL=ON
|
||||
-DENABLE_QT_GUI=ON
|
||||
-DXKB_RULES_XML_FILE='${xkeyboard_config}/share/X11/xkb/rules/evdev.xml'
|
||||
'';
|
||||
cmakeFlags = [
|
||||
"-DENABLE_QT_IM_MODULE=ON"
|
||||
"-DENABLE_GTK2_IM_MODULE=ON"
|
||||
"-DENABLE_GTK3_IM_MODULE=ON"
|
||||
"-DENABLE_GIR=OFF"
|
||||
"-DENABLE_OPENCC=OFF"
|
||||
"-DENABLE_PRESAGE=OFF"
|
||||
"-DENABLE_XDGAUTOSTART=OFF"
|
||||
"-DENABLE_PINYIN=${if withPinyin then "ON" else "OFF"}"
|
||||
"-DENABLE_TABLE=ON"
|
||||
"-DENABLE_SPELL=ON"
|
||||
"-DENABLE_QT_GUI=ON"
|
||||
"-DXKB_RULES_XML_FILE='${xkeyboard_config}/share/X11/xkb/rules/evdev.xml'"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/fcitx/fcitx;
|
||||
|
||||
@@ -9,12 +9,13 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0xf0r6zxaqan1drz61nqf95p2pkiiihpvrjhrr9dx9j3vswyx31g";
|
||||
};
|
||||
|
||||
buildFlags = with stdenv;
|
||||
buildFlags = with stdenv; [ (
|
||||
if isDarwin then "osx"
|
||||
else if isFreeBSD then "freebsd"
|
||||
else "cpulimit";
|
||||
else "cpulimit"
|
||||
) ];
|
||||
|
||||
installFlags = "PREFIX=$(out)";
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://limitcpu.sourceforge.net/;
|
||||
|
||||
@@ -14,7 +14,7 @@ stdenv.mkDerivation {
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
buildFlags = if stdenv.cc.isClang then [ "CC=clang" ] else null;
|
||||
buildFlags = stdenv.lib.optional stdenv.cc.isClang "CC=clang";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "starship";
|
||||
version = "0.32.1";
|
||||
version = "0.32.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "starship";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "047nvi231hzwjfci13x8lhszmaccb94mn5lvnyq24zb0im8br6d3";
|
||||
sha256 = "1yn2xr7142xnrsglrabxzgv16hp16i5d2dybazpzxflfnn52c0am";
|
||||
};
|
||||
|
||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
|
||||
@@ -19,7 +19,7 @@ rustPlatform.buildRustPackage rec {
|
||||
--replace "/bin/echo" "echo"
|
||||
'';
|
||||
|
||||
cargoSha256 = "0r1kbv6f5v95wnshxj1wkqvp1adyrivzlr606c6blhl9z9j7m3d7";
|
||||
cargoSha256 = "0i3jrk7qyyzhk4855z0vsdf64n14xqqg9by0dr62jz83hdx89x1w";
|
||||
checkPhase = "cargo test -- --skip directory::home_directory --skip directory::directory_in_root";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -26,6 +26,12 @@ python3Packages.buildPythonApplication rec {
|
||||
url = "https://github.com/andreafrancia/trash-cli/commit/a21b80d1e69783bb09376c3f60dd2f2a10578805.patch";
|
||||
sha256 = "0w49rjh433sjfc2cl5a9wlbr6kcn9f1qg905qsyv7ay3ar75wvyp";
|
||||
})
|
||||
|
||||
# Fix listing trashed files over mount points, see https://github.com/andreafrancia/trash-cli/issues/95
|
||||
(fetchpatch {
|
||||
url = "https://github.com/andreafrancia/trash-cli/commit/436dfddb4c2932ba3ff696e4732750b7bdc58461.patch";
|
||||
sha256 = "02pkcz7nj67jbnqpw1943nrv95m8xyjvab4j62fa64r73fagm8m4";
|
||||
})
|
||||
];
|
||||
|
||||
checkInputs = with python3Packages; [
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, rustPlatform, cargo, cmake, sphinx, lib, prefix ? "uutils-" }:
|
||||
{ stdenv, fetchFromGitHub, rustPlatform, cargo, cmake, sphinx, lib, prefix ? "uutils-"
|
||||
, Security
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage {
|
||||
name = "uutils-coreutils-2019-05-03";
|
||||
@@ -19,13 +21,13 @@ rustPlatform.buildRustPackage {
|
||||
++ lib.optional (prefix != null) [ "PROG_PREFIX=${prefix}" ];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ cargo sphinx ];
|
||||
buildInputs = [ cargo sphinx ] ++ lib.optional stdenv.isDarwin Security;
|
||||
|
||||
# empty {build,install}Phase to use defaults of `stdenv.mkDerivation` rather than rust defaults
|
||||
buildPhase = "";
|
||||
installPhase = "";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Cross-platform Rust rewrite of the GNU coreutils";
|
||||
longDescription = ''
|
||||
uutils is an attempt at writing universal (as in cross-platform)
|
||||
|
||||
23
pkgs/tools/networking/clash/default.nix
Normal file
23
pkgs/tools/networking/clash/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ stdenv, fetchFromGitHub, buildGoModule }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "clash";
|
||||
version = "0.16.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Dreamacro";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1k6afpazggpd7cabbw6ldv77bjj43083d5diy2w0iq5nw69gmwd3";
|
||||
};
|
||||
|
||||
modSha256 = "1fx53df67mq7p3ampr96x8hd99v2991alb16v8iq36f032raa32f";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A rule-based tunnel in Go";
|
||||
homepage = "https://github.com/Dreamacro/clash";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ contrun ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
@@ -11,14 +11,13 @@ let
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [] ++
|
||||
stdenv.lib.optionals stdenv.isDarwin [ which cctools ];
|
||||
nativeBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ which cctools ];
|
||||
|
||||
patches = stdenv.lib.optional stdenv.isFreeBSD ./freebsd.patch;
|
||||
|
||||
doCheck = !stdenv.isFreeBSD;
|
||||
|
||||
makeFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)";
|
||||
makeFlags = [ "PREFIX=$(out)" "INSTALLPREFIX=$(out)" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://miniupnp.free.fr/;
|
||||
|
||||
@@ -8,12 +8,12 @@ stdenv.mkDerivation ({
|
||||
sha256 = "0a2a00hbakh0640r2wdpnwr8789z59wnk7rfsihh3j0vbhmmmqak";
|
||||
};
|
||||
|
||||
makeFlags = if stdenv.isDarwin
|
||||
makeFlags = [ (if stdenv.isDarwin
|
||||
then "osx"
|
||||
else "lnp" # Linux with PAM modules;
|
||||
else "lnp") ] # Linux with PAM modules;
|
||||
# -fPIC is required to compile php with imap on x86_64 systems
|
||||
+ stdenv.lib.optionalString stdenv.isx86_64 " EXTRACFLAGS=-fPIC"
|
||||
+ stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) " CC=${stdenv.hostPlatform.config}-gcc RANLIB=${stdenv.hostPlatform.config}-ranlib";
|
||||
++ stdenv.lib.optional stdenv.isx86_64 "EXTRACFLAGS=-fPIC"
|
||||
++ stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "CC=${stdenv.hostPlatform.config}-gcc" "RANLIB=${stdenv.hostPlatform.config}-ranlib" ];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ cmake pkgconfig ];
|
||||
|
||||
cmakeFlags="-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}";
|
||||
cmakeFlags = ["-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}" ];
|
||||
|
||||
buildInputs = [ python libxml2 glib openssl curl check gpgme ];
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ stdenv.mkDerivation {
|
||||
${if static then "LDFLAGS=-static --enable-static --disable-shared" else "--enable-shared"}
|
||||
)
|
||||
'';
|
||||
makeFlags = if static then "AM_LDFLAGS=-all-static" else "";
|
||||
makeFlags = stdenv.lib.optional static "AM_LDFLAGS=-all-static";
|
||||
dontDisableStatic = static;
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -14,7 +14,9 @@ stdenv.mkDerivation rec {
|
||||
# _FORTIFY_SOURCE requires compiling with optimization (-O)
|
||||
NIX_CFLAGS_COMPILE = "-O";
|
||||
|
||||
makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
|
||||
makeFlags = [
|
||||
"PREFIX=${placeholder "out"}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "simple markup - markdown like syntax";
|
||||
|
||||
Reference in New Issue
Block a user