Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2021-10-08 06:01:53 +00:00 committed by GitHub
commit a9e549579c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 849 additions and 814 deletions

View File

@ -16,6 +16,15 @@ with lib;
'';
};
package = mkOption {
type = types.package;
default = pkgs.v2ray;
defaultText = literalExpression "pkgs.v2ray";
description = ''
Which v2ray package to use.
'';
};
configFile = mkOption {
type = types.nullOr types.str;
default = null;
@ -62,7 +71,7 @@ with lib;
name = "v2ray.json";
text = builtins.toJSON cfg.config;
checkPhase = ''
${pkgs.v2ray}/bin/v2ray -test -config $out
${cfg.package}/bin/v2ray -test -config $out
'';
};
@ -78,10 +87,9 @@ with lib;
description = "v2ray Daemon";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
path = [ pkgs.v2ray ];
script = ''
exec v2ray -config ${configFile}
'';
serviceConfig = {
ExecStart = "${cfg.package}/bin/v2ray -config ${configFile}";
};
};
};
}

View File

@ -14,11 +14,11 @@ in
buildPythonPackage rec {
pname = "vyper";
version = "0.2.16";
version = "0.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "6cf347440716964012d46686faefc9c689f01872f19736287a63aa8652ac3ddd";
sha256 = "3e50cd802696ea3f5e6ab1bf4c9a90a39c332591d416c99f3d2fa93d7d7ba394";
};
nativeBuildInputs = [ pytest-runner ];

View File

@ -1,15 +1,10 @@
{ lib, fetchurl, vscode-utils, terraform-ls }:
{ lib, vscode-utils, terraform-ls }:
vscode-utils.buildVscodeMarketplaceExtension rec {
mktplcRef = {
name = "terraform";
publisher = "hashicorp";
version = "2.14.0";
};
vsix = fetchurl {
name = "${mktplcRef.publisher}-${mktplcRef.name}.zip";
url = "https://github.com/hashicorp/vscode-terraform/releases/download/v${mktplcRef.version}/${mktplcRef.name}-${mktplcRef.version}.vsix";
sha256 = "1q43a28l6xfp3yw6wlr1kcidik0dbp8b7lg9vc83rhw4rjgvjsfm";
version = "2.15.0";
sha256 = "0bqf9ry0idqw61714dc6y1rh5js35mi14q19yqhiwayyfakwraq9";
};
patches = [ ./fix-terraform-ls.patch ];

View File

@ -231,16 +231,32 @@ in rec {
inherit storeDir stateDir confDir;
});
nixUnstable = lib.lowPrio (callPackage common rec {
nix_2_4 = callPackage common (rec {
pname = "nix";
version = "2.4${suffix}";
suffix = "pre20211006_${lib.substring 0 7 src.rev}";
version = "2.4pre-rc1";
src = fetchFromGitHub {
owner = "NixOS";
repo = "nix";
rev = "53e479428958b39a126ce15de85d7397fdcfe2e1";
sha256 = "18mm3f0n964msj5bha6wpnwckg5lwjwdm6r7frrwdj75v10jiyb7";
rev = version;
sha256 = "sha256-KOb8etMm5LksvT2l+CkvqzMO1bgmo9tJmyaNh0LvaR8=";
};
boehmgc = boehmgc_nixUnstable;
inherit storeDir stateDir confDir;
});
nixUnstable = lib.lowPrio (callPackage common rec {
pname = "nix";
version = "2.5${suffix}";
suffix = "pre20211007_${lib.substring 0 7 src.rev}";
src = fetchFromGitHub {
owner = "NixOS";
repo = "nix";
rev = "844dd901a7debe8b03ec93a7f717b6c4038dc572";
sha256 = "sha256-fe1B4lXkS6/UfpO0rJHwLC06zhOPrdSh4s9PmQ1JgPo=";
};
boehmgc = boehmgc_nixUnstable;

View File

@ -1,15 +1,20 @@
{ lib, stdenv, fetchFromGitHub
, talloc, docutils, swig, python, coreutils, enablePython ? true }:
{ lib, stdenv, fetchFromGitHub, fetchpatch
, talloc
, pkg-config
, libarchive
, git
, ncurses
, docutils, swig, python3, coreutils, enablePython ? true }:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "proot";
version = "20190510";
version = "5.2.0";
src = fetchFromGitHub {
repo = "proot";
owner = "proot-me";
rev = "803e54d8a1b3d513108d3fc413ba6f7c80220b74";
sha256 = "0gwzqm5wpscj3fchlv3qggf3zzn0v00s4crb5ciwljan1zrqadhy";
rev = "v${version}";
sha256 = "1ir3a7rp9rvpv9i8gjrkr383sqadgl7f9nflcrfg7q05bxapwiws";
};
postPatch = ''
@ -19,8 +24,15 @@ stdenv.mkDerivation {
sed -i /CROSS_COMPILE/d src/GNUmakefile
'';
buildInputs = [ talloc ] ++ lib.optional enablePython python;
nativeBuildInputs = [ docutils ] ++ lib.optional enablePython swig;
buildInputs = [ ncurses libarchive talloc ] ++ lib.optional enablePython python3;
nativeBuildInputs = [ pkg-config docutils ] ++ lib.optional enablePython swig;
patches = [
# without this patch the package does not build with python>3.7
(fetchpatch {
url = "https://github.com/proot-me/proot/pull/285.patch";
sha256= "1vncq36pr4v0h63fijga6zrwlsb0vb4pj25zxf1ni15ndxv63pxj";
})
];
enableParallelBuilding = true;
@ -36,6 +48,9 @@ stdenv.mkDerivation {
install -Dm644 doc/proot/man.1 $out/share/man/man1/proot.1
'';
# proot provides tests with `make -C test` however they do not run in the sandbox
doCheck = false;
meta = with lib; {
homepage = "https://proot-me.github.io";
description = "User-space implementation of chroot, mount --bind and binfmt_misc";

View File

@ -31867,6 +31867,7 @@ with pkgs;
})
nix
nixStable
nix_2_4
nixUnstable;
nixStatic = pkgsStatic.nix;