2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
|
2018-10-01 10:27:11 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "tt-rss-plugin-auth-ldap";
|
2022-10-31 07:39:47 +01:00
|
|
|
version = "unstable-2022-10-31";
|
2018-10-01 10:27:11 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hydrian";
|
|
|
|
repo = "TTRSS-Auth-LDAP";
|
2022-10-31 07:39:47 +01:00
|
|
|
rev = "0cc2a21441f99eef8368cfe0fbdbb78126e28d61";
|
|
|
|
sha256 = "sha256-pJWyvRnC38Ov1awVLgFZfp8+haADPniP+/P/C74qpcA=";
|
2018-10-01 10:27:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2022-10-31 07:39:47 +01:00
|
|
|
# https://github.com/hydrian/TTRSS-Auth-LDAP/pull/47
|
2018-10-01 10:27:11 +02:00
|
|
|
(fetchpatch {
|
2022-10-31 07:39:47 +01:00
|
|
|
url = "https://github.com/hydrian/TTRSS-Auth-LDAP/commit/003ca55bbd6e0a87fb729383e51eb269d918313d.patch";
|
|
|
|
sha256 = "sha256-0YD33JPNOOPH2dpGwA/RbV3Kg4i2oKazBjP3hBcUIes=";
|
2018-10-01 10:27:11 +02:00
|
|
|
})
|
2021-08-01 18:06:01 +02:00
|
|
|
# https://github.com/hydrian/TTRSS-Auth-LDAP/pull/40
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/hydrian/TTRSS-Auth-LDAP/commit/557811efa15bab3b5044c98416f9e37264f11c9a.patch";
|
|
|
|
sha256 = "sha256-KtDY0J1OYNTLwK7834lI+2XL1N1FkOk5zhinGY90/4A=";
|
|
|
|
})
|
2022-07-02 17:58:31 +02:00
|
|
|
# https://github.com/hydrian/TTRSS-Auth-LDAP/pull/34
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/hydrian/TTRSS-Auth-LDAP/commit/b1a873f6a7d18231d2ac804d0146d6e048c8382c.patch";
|
|
|
|
sha256 = "sha256-t5bDQM97dGwr7tHSS9cSO7qApf2M8KNaIuIxbAjExrs=";
|
|
|
|
})
|
2018-10-01 10:27:11 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D plugins/auth_ldap/init.php $out/auth_ldap/init.php
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-01 10:27:11 +02:00
|
|
|
description = "Plugin for TT-RSS to authenticate users via ldap";
|
2019-02-10 16:46:09 +01:00
|
|
|
license = licenses.asl20;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/hydrian/TTRSS-Auth-LDAP";
|
2018-10-01 10:27:11 +02:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|