Skip to content

Commit

Permalink
Merge staging-next into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 16, 2021
2 parents 8c2cc57 + e0a6159 commit 7302b93
Show file tree
Hide file tree
Showing 22 changed files with 269 additions and 67 deletions.
2 changes: 1 addition & 1 deletion nixos/modules/services/web-servers/nginx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ in
ProtectControlGroups = true;
RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" ];
LockPersonality = true;
MemoryDenyWriteExecute = !(builtins.any (mod: (mod.allowMemoryWriteExecute or false)) cfg.package.modules);
MemoryDenyWriteExecute = !(builtins.any (mod: (mod.allowMemoryWriteExecute or false)) (optionals (cfg.package ? modules) cfg.package.modules));
RestrictRealtime = true;
RestrictSUIDSGID = true;
PrivateMounts = true;
Expand Down
70 changes: 70 additions & 0 deletions pkgs/applications/accessibility/squeekboard/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{ lib
, stdenv
, fetchFromGitLab
, meson
, ninja
, pkg-config
, gnome3
, glib
, gtk3
, wayland
, wayland-protocols
, libxml2
, libxkbcommon
, rustPlatform
, feedbackd
, wrapGAppsHook
}:

stdenv.mkDerivation rec {
pname = "squeekboard";
version = "unstable-2021-03-09";

src = fetchFromGitLab {
domain = "source.puri.sm";
owner = "Librem5";
repo = pname;
rev = "bffd212e102bf71a94c599aac0359a8d30d19008";
sha256 = "1j10zhyb8wyrcbryfj6f3drn9b0l9x0l7hnhy2imnjbfbnwwm4w7";
};

cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
cargoUpdateHook = ''
cat Cargo.toml.in Cargo.deps > Cargo.toml
'';
name = "${pname}-${version}";
sha256 = "1qaqiaxqc4x2x5bd31na4c49vbjwrmz5clmgli7733dv55rxxias";
};

nativeBuildInputs = [
meson
ninja
pkg-config
glib
wayland
wrapGAppsHook
] ++ (with rustPlatform; [
cargoSetupHook
rust.cargo
rust.rustc
]);

buildInputs = [
gtk3
gnome3.gnome-desktop
wayland
wayland-protocols
libxml2
libxkbcommon
feedbackd
];

meta = with lib; {
description = "A virtual keyboard supporting Wayland";
homepage = "https://source.puri.sm/Librem5/squeekboard";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ artturin ];
platforms = platforms.linux;
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/office/skrooge/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

mkDerivation rec {
pname = "skrooge";
version = "2.23.0";
version = "2.24.6";

src = fetchurl {
url = "http://download.kde.org/stable/skrooge/${pname}-${version}.tar.xz";
sha256 = "10k3j67x5xm5whsvb84k9p70bkn4jbbbvdfan7q49dh2mmpair5a";
sha256 = "sha256-DReIm9lcq0j761wWTpJu7HnfEWz9QsRGgUtyVaXFs6A=";
};

nativeBuildInputs = [
Expand Down
4 changes: 3 additions & 1 deletion pkgs/development/libraries/libdeflate/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub }:
{ stdenv, lib, fetchFromGitHub, fixDarwinDylibNames }:

stdenv.mkDerivation rec {
pname = "libdeflate";
Expand All @@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
substituteInPlace Makefile --replace /usr/local $out
'';

nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;

configurePhase = ''
make programs/config.h
'';
Expand Down
8 changes: 6 additions & 2 deletions pkgs/development/ocaml-modules/cohttp/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
{ lib, fetchurl, buildDunePackage
, ppx_fields_conv, ppx_sexp_conv, stdlib-shims
, base64, fieldslib, jsonm, re, stringext, uri-sexp
, ocaml, fmt, alcotest
}:

buildDunePackage rec {
pname = "cohttp";
version = "2.5.4";
version = "2.5.5";

useDune2 = true;

minimumOCamlVersion = "4.04.1";

src = fetchurl {
url = "https://github.com/mirage/ocaml-cohttp/releases/download/v${version}/cohttp-v${version}.tbz";
sha256 = "1q04spmki5zis5p5m1vs77i3k7ijm134j62g61071vblwx25z17a";
sha256 = "0ywmql4lp6ps2gd064ixbjzsdnnn5vk3pipm005sswl553qqwaim";
};

buildInputs = [ jsonm ppx_fields_conv ppx_sexp_conv ];

propagatedBuildInputs = [ base64 fieldslib re stringext uri-sexp stdlib-shims ];

doCheck = lib.versionAtLeast ocaml.version "4.05";
checkInputs = [ fmt alcotest ];

meta = {
description = "HTTP(S) library for Lwt, Async and Mirage";
license = lib.licenses.isc;
Expand Down
9 changes: 8 additions & 1 deletion pkgs/development/ocaml-modules/extlib/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, ocaml, findlib, cppo, minimal ? true }:
{ stdenv, lib, fetchurl, fetchpatch, ocaml, findlib, cppo, minimal ? true }:

assert lib.versionAtLeast (lib.getVersion ocaml) "3.11";

Expand All @@ -10,6 +10,13 @@ stdenv.mkDerivation {
sha256 = "1sxmzc1mx3kg62j8kbk0dxkx8mkf1rn70h542cjzrziflznap0s1";
};

patches = [
(fetchpatch {
url = "https://github.com/ygrek/ocaml-extlib/pull/55.patch";
sha256 = "0mj3xii56rh8j8brdyv5d06rbs6jjjcy4ib9chafkq3f3sbq795p";
})
];

buildInputs = [ ocaml findlib cppo ];

createFindlibDestdir = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/aioesphomeapi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

buildPythonPackage rec {
pname = "aioesphomeapi";
version = "2.6.5";
version = "2.6.6";

disabled = !isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "sha256-inktluPKefrFQCF2yadvHwT9Rw+pJLw8pjdUc35IJoc=";
sha256 = "sha256-LdBUtU5rNoixh7DPIFkHxLMvBeI6MZH57sO0IjuOQAw=";
};

propagatedBuildInputs = [ attrs protobuf zeroconf ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/boto3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@

buildPythonPackage rec {
pname = "boto3";
version = "1.17.25"; # N.B: if you change this, change botocore and awscli to a matching version
version = "1.17.27"; # N.B: if you change this, change botocore and awscli to a matching version

src = fetchPypi {
inherit pname version;
sha256 = "sha256-Jz6WriuVpgNqTDVH52onCxerdhzHYFOCPJ42HSaCE+8=";
sha256 = "sha256-+kGYf59xNoATdnMG2VIrYnlGoBtIQ5OKJvsZzIrbBsA=";
};

propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/botocore/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

buildPythonPackage rec {
pname = "botocore";
version = "1.20.25"; # N.B: if you change this, change boto3 and awscli to a matching version
version = "1.20.27"; # N.B: if you change this, change boto3 and awscli to a matching version

src = fetchPypi {
inherit pname version;
sha256 = "sha256-uAtO/l+vsp8ko2V9H3eqFwUlyHa1/ZOE1eWFnQQFIG4=";
sha256 = "sha256-RHeAPwdkn02AsX0FSCDnoJuyyweS0N7MKBIQi8N1nEo=";
};

propagatedBuildInputs = [
Expand Down
36 changes: 23 additions & 13 deletions pkgs/development/python-modules/brother/default.nix
Original file line number Diff line number Diff line change
@@ -1,42 +1,52 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
{ lib
, buildPythonPackage
, fetchFromGitHub
, pysnmp
, asynctest, pytestcov, pytestrunner, pytest-asyncio, pytest-trio, pytest-tornasync }:
, pytest-asyncio
, pytest-error-for-skips
, pytest-runner
, pytest-tornasync
, pytest-trio
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
pname = "brother";
version = "0.2.1";
version = "0.2.2";
disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "bieniu";
repo = pname;
rev = version;
sha256 = "sha256-yOloGkOVhXcTt0PAjf3yWUItN1okO94DndRFsImiuz4=";
sha256 = "sha256-vIefcL3K3ZbAUxMFM7gbbTFdrnmufWZHcq4OA19SYXE=";
};

# pytest-error-for-skips is not packaged
postPatch = ''
substituteInPlace pytest.ini \
--replace " --error-for-skips" ""
substituteInPlace setup.py \
--replace "\"pytest-error-for-skips\"" ""
--replace "--cov --cov-report term-missing " ""
substituteInPlace requirements-test.txt \
--replace "pytest-cov" ""
'';

propagatedBuildInputs = [
pysnmp
];

checkInputs = [
asynctest
pytestcov
pytestrunner
pytest-asyncio
pytest-trio
pytest-error-for-skips
pytest-runner
pytest-tornasync
pytest-trio
pytestCheckHook
];

pythonImportsCheck = [ "brother" ];

meta = with lib; {
description = "Python wrapper for getting data from Brother laser and inkjet printers via SNMP.";
description = "Python wrapper for getting data from Brother laser and inkjet printers via SNMP";
homepage = "https://github.com/bieniu/brother";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
Expand Down
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/pytest-error-for-skips/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "pytest-error-for-skips";
version = "2.0.2";

src = fetchFromGitHub {
owner = "jankatins";
repo = pname;
rev = version;
sha256 = "04i4jd3bg4lgn2jfh0a0dzg3ml9b2bjv2ndia6b64w96r3r4p3qr";
};

buildInputs = [ pytest ];

checkInputs = [ pytestCheckHook ];

pythonImportsCheck = [ "pytest_error_for_skips" ];

meta = with lib; {
description = "Pytest plugin to treat skipped tests a test failures";
homepage = "https://github.com/jankatins/pytest-error-for-skips";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/tools/lazygit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

buildGoModule rec {
pname = "lazygit";
version = "0.26";
version = "0.26.1";

src = fetchFromGitHub {
owner = "jesseduffield";
repo = pname;
rev = "v${version}";
sha256 = "sha256-9CiXbMYb+EoxBrVFiPuWAlRJvYAq8hpxVDFcymk7Ud0=";
sha256 = "sha256-naTO5cckUfs32z7bm5jGGEuo8db11fnTnQdUDKK2W/I=";
};

vendorSha256 = null;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/tools/poetry2nix/poetry2nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}:
let
# Poetry2nix version
version = "1.16.0";
version = "1.16.1";

inherit (poetryLib) isCompatible readTOML moduleName;

Expand Down

0 comments on commit 7302b93

Please sign in to comment.