1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

Merge branch 'master' into haskell-updates

This commit is contained in:
Malte Brandy 2021-10-08 11:53:31 +02:00
commit 75701966fa
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
13 changed files with 872 additions and 822 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

@ -2,7 +2,7 @@
stdenv.mkDerivation rec {
pname = "lean";
version = "3.32.1";
version = "3.33.0";
src = fetchFromGitHub {
owner = "leanprover-community";
@ -11,8 +11,8 @@ stdenv.mkDerivation rec {
# from. this is then used to check whether an olean file should be
# rebuilt. don't use a tag as rev because this will get replaced into
# src/githash.h.in in preConfigure.
rev = "35b3a9c4e2d35cccb5ed220ea2f2909a4ed2ca90";
sha256 = "0s69smknsvycvydbk2f3vcqj1z3jrbv3k048z2r46391dai5iwhf";
rev = "a0fb1e8c7ac81dfd2e80ad0de08f4e57ee853d82";
sha256 = "03xz3c3dzjhvjzpa8811cgzzqzw8fpajmspykavmb259i391w0y7";
};
nativeBuildInputs = [ cmake ];

View file

@ -38,13 +38,13 @@ let
in
stdenv.mkDerivation rec {
pname = "crun";
version = "1.1";
version = "1.2";
src = fetchFromGitHub {
owner = "containers";
repo = pname;
rev = version;
sha256 = "sha256-0UyxQ0eOsU3hIh7B56ClynjLFBIsBF+WTqOw4mSqulQ=";
sha256 = "sha256-7YDU7H4dVT6qI+Gt3bkm7vqHlU0Fr7ZhF4SWcA+RhYw=";
fetchSubmodules = true;
};

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

@ -2,12 +2,15 @@
, buildPythonPackage
, isPy3k
, fetchFromGitHub
, fetchpatch
, python-dateutil
, pytz
, regex
, tzlocal
, hijri-converter
, convertdate
, fasttext
, langdetect
, parameterized
, pytestCheckHook
, GitPython
@ -16,7 +19,7 @@
buildPythonPackage rec {
pname = "dateparser";
version = "1.0.0";
version = "1.1.0";
disabled = !isPy3k;
@ -24,14 +27,14 @@ buildPythonPackage rec {
owner = "scrapinghub";
repo = "dateparser";
rev = "v${version}";
sha256 = "0i6ci14lqfsqrmaif57dyilrjbxzmbl98hps1b565gkiy1xqmjhl";
sha256 = "sha256-RpQWDsj7vGtfu6wf4yETdswfXDfoTkburTl6aOA03Ww=";
};
propagatedBuildInputs = [
# install_requires
python-dateutil pytz regex tzlocal
# extra_requires
hijri-converter convertdate
hijri-converter convertdate fasttext langdetect
];
checkInputs = [
@ -41,9 +44,19 @@ buildPythonPackage rec {
ruamel_yaml
];
preCheck = ''
export HOME="$TEMPDIR"
'';
# Upstream only runs the tests in tests/ in CI, others use git clone
pytestFlagsArray = [ "tests" ];
disabledTests = [
# access network
"test_custom_language_detect_fast_text_0"
"test_custom_language_detect_fast_text_1"
];
pythonImportsCheck = [ "dateparser" ];
meta = with lib; {

View file

@ -19,5 +19,6 @@ rustPlatform.buildRustPackage {
homepage = "https://github.com/siraben/regenkfs";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
mainProgram = "regenkfs";
};
}

View file

@ -18,5 +18,6 @@ rustPlatform.buildRustPackage {
homepage = "https://github.com/siraben/remkrom";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
mainProgram = "remkrom";
};
}

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

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