Merge branch 'master' into staging-next

This commit is contained in:
Dmitry Kalinkin 2022-09-15 12:35:02 -04:00
commit 38077e4262
15 changed files with 118 additions and 16 deletions

View file

@ -373,6 +373,12 @@
githubId = 10677343;
name = "Eugene";
};
afh = {
email = "surryhill+nix@gmail.com";
github = "afh";
githubId = 16507;
name = "Alexis Hildebrandt";
};
aflatter = {
email = "flatter@fastmail.fm";
github = "aflatter";

View file

@ -248,6 +248,8 @@ in
"-/etc/localtime"
"-/etc/kanidm"
"-/etc/static/kanidm"
"-/etc/ssl"
"-/etc/static/ssl"
];
BindPaths = [
# To create the socket

View file

@ -44,6 +44,12 @@ import ./make-test-python.nix ({ pkgs, ... }:
enableClient = true;
clientSettings = {
uri = "https://${serverDomain}";
verify_ca = true;
verify_hostnames = true;
};
enablePam = true;
unixSettings = {
pam_allowed_login_groups = [ "shell" ];
};
};
@ -67,9 +73,11 @@ import ./make-test-python.nix ({ pkgs, ... }:
start_all()
server.wait_for_unit("kanidm.service")
server.wait_until_succeeds("curl -sf https://${serverDomain} | grep Kanidm")
server.wait_until_succeeds("ldapsearch -H ldap://[::1]:636 -b '${ldapBaseDN}' -x '(name=test)'")
client.wait_until_succeeds("kanidm login -D anonymous && kanidm self whoami | grep anonymous@${serverDomain}")
server.succeed("ldapsearch -H ldap://[::1]:636 -b '${ldapBaseDN}' -x '(name=test)'")
client.succeed("kanidm login -D anonymous && kanidm self whoami | grep anonymous@${serverDomain}")
rv, result = server.execute("kanidmd recover_account -c ${serverConfigFile} idm_admin 2>&1 | rg -o '[A-Za-z0-9]{48}'")
assert rv == 0
client.wait_for_unit("kanidm-unixd.service")
client.succeed("kanidm_unixd_status | grep working!")
'';
})

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "logseq";
version = "0.8.5";
version = "0.8.7";
src = fetchurl {
url = "https://github.com/logseq/logseq/releases/download/${version}/logseq-linux-x64-${version}.AppImage";
sha256 = "sha256-1nvkjucMRAwpqg2LI+1UrICMLzSd6t0yGnYdCUNQslU=";
sha256 = "sha256-FMGNaA/a1IzF2T0k9LGCOvLK26SlxX2cCOn7dLD/o7c=";
name = "${pname}-${version}.AppImage";
};

View file

@ -8,12 +8,12 @@
}:
let
version = "1.9.1";
version = "1.10.0";
pname = "session-desktop";
src = fetchurl {
url = "https://github.com/oxen-io/session-desktop/releases/download/v${version}/session-desktop-linux-x86_64-${version}.AppImage";
sha256 = "sha256-Zc3btkvN4ic47IGigeFJGx4dwbM+b7iuIOxpmcWmrRQ=";
sha256 = "sha256-oqwEXwlxyoYBQpVp9SdV5q+GrM0N9TIfu01HHIm9mUw=";
};
appimage = appimageTools.wrapType2 {
inherit version pname src;

View file

@ -9,7 +9,7 @@
stdenv.mkDerivation rec {
pname = "signal-desktop";
version = "5.58.0"; # Please backport all updates to the stable channel.
version = "5.59.0"; # Please backport all updates to the stable channel.
# All releases have a limited lifetime and "expire" 90 days after the release.
# When releases "expire" the application becomes unusable until an update is
# applied. The expiration date for the current release can be extracted with:
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/signal-desktop_${version}_amd64.deb";
sha256 = "sha256-1UM68aDXM0MseQmOAVmX13yD/GLPCmq6wikt8CwEdgc=";
sha256 = "sha256-6im8OH1J+YlWCZ5eeJJbXokQPs6QbIzYIonGy9vbWvE=";
};
nativeBuildInputs = [

View file

@ -5,13 +5,13 @@
mkDerivation rec {
pname = "qownnotes";
version = "22.8.4";
version = "22.9.0";
src = fetchurl {
url = "https://download.tuxfamily.org/${pname}/src/${pname}-${version}.tar.xz";
# Fetch the checksum of current version with curl:
# curl https://download.tuxfamily.org/qownnotes/src/qownnotes-<version>.tar.xz.sha256
sha256 = "cfb266b3a812b5f87e57d5002cd05000931baad9fefbf353b2caa05407dc79e5";
sha256 = "sha256-PTaOExBWx7YTdVpDDSwnPu3vt12Yfh2/FW2xwnhB9WA=";
};
nativeBuildInputs = [ qmake qttools ];

View file

@ -4,11 +4,11 @@
stdenv.mkDerivation rec {
pname = "got";
version = "0.75";
version = "0.75.1";
src = fetchurl {
url = "https://gameoftrees.org/releases/portable/got-portable-${version}.tar.gz";
sha256 = "sha256-s1MkiTya771r9JYCpsm7nW4gZwr/PJc0/v6tAgW7nLI=";
sha256 = "sha256-GlEXB89fZPRZAwvUUHcyKCH3Jj5AOvMSHFodsVKepSQ=";
};
nativeBuildInputs = [ pkg-config bison ];
@ -45,6 +45,6 @@ stdenv.mkDerivation rec {
homepage = "https://gameoftrees.org";
license = licenses.isc;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ abbe ];
maintainers = with maintainers; [ abbe afh ];
};
}

View file

@ -42,6 +42,7 @@ runCommand "${vapoursynth.name}-with-plugins" {
nativeBuildInputs = [ makeWrapper ];
passthru = {
inherit python3;
inherit (vapoursynth) src version;
withPlugins = plugins': withPlugins (plugins ++ plugins');
};
} ''

View file

@ -0,0 +1,25 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "types-colorama";
version = "0.4.15";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-/RKLHjLz/s7F8J30Nm0hSY7obqMfz4tOjxrebQu/mDI=";
};
# Module has no tests
doCheck = false;
meta = with lib; {
description = "Typing stubs for colorama";
homepage = "https://github.com/python/typeshed";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1,4 +1,4 @@
{ vapoursynth, cython, buildPythonPackage, unittestCheckHook }:
{ vapoursynth, cython, buildPythonPackage, unittestCheckHook, python }:
buildPythonPackage {
pname = "vapoursynth";
@ -19,6 +19,13 @@ buildPythonPackage {
unittestFlagsArray = [ "-s" "$src/test" "-p" "'*test.py'" ];
passthru = {
withPlugins = plugins:
python.pkgs.vapoursynth.override {
vapoursynth = vapoursynth.withPlugins plugins;
};
};
inherit (vapoursynth) meta;
}

View file

@ -0,0 +1,49 @@
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "beautysh";
version = "6.2.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "lovesegfault";
repo = pname;
rev = "v${version}";
hash = "sha256-rPeGRcyNK45Y7OvtzaIH93IIzexBf/jM1SzYP0phQ1o=";
};
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
colorama
setuptools
types-colorama
types-setuptools
];
checkInputs = with python3.pkgs; [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'types-setuptools = "^57.4.0"' 'types-setuptools = "*"'
'';
pythonImportsCheck = [
"beautysh"
];
meta = with lib; {
description = "Tool for beautifying Bash scripts";
homepage = "https://github.com/lovesegfault/beautysh";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -5,14 +5,14 @@
python3.pkgs.buildPythonApplication rec {
pname = "faraday-cli";
version = "2.1.6";
version = "2.1.7";
format = "setuptools";
src = fetchFromGitHub {
owner = "infobyte";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-ofL3tRYV2bwF+RYGoLpg/UQPg9HwrCepWAQxXiJkV2E=";
hash = "sha256-kZqJVJ6XrCC3iDSTJP8AmIs4WkxiAFimFIexl0L/HT0=";
};
propagatedBuildInputs = with python3.pkgs; [

View file

@ -2953,6 +2953,8 @@ with pkgs;
inherit (plasma5Packages) breeze-icons;
};
beautysh = callPackage ../development/tools/beautysh { };
bc = callPackage ../tools/misc/bc { };
bdf2psf = callPackage ../tools/misc/bdf2psf { };

View file

@ -11220,6 +11220,8 @@ in {
typer = callPackage ../development/python-modules/typer { };
types-colorama = callPackage ../development/python-modules/types-colorama { };
types-dateutil = callPackage ../development/python-modules/types-dateutil { };
types-decorator = callPackage ../development/python-modules/types-decorator { };