nixpkgs/pkgs/servers/tt-rss/plugin-auth-ldap/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch }:
2018-10-01 10:27:11 +02:00
stdenv.mkDerivation rec {
pname = "tt-rss-plugin-auth-ldap";
version = "unstable-2022-10-31";
2018-10-01 10:27:11 +02:00
src = fetchFromGitHub {
owner = "hydrian";
repo = "TTRSS-Auth-LDAP";
rev = "0cc2a21441f99eef8368cfe0fbdbb78126e28d61";
sha256 = "sha256-pJWyvRnC38Ov1awVLgFZfp8+haADPniP+/P/C74qpcA=";
2018-10-01 10:27:11 +02:00
};
patches = [
# https://github.com/hydrian/TTRSS-Auth-LDAP/pull/47
2018-10-01 10:27:11 +02:00
(fetchpatch {
url = "https://github.com/hydrian/TTRSS-Auth-LDAP/commit/003ca55bbd6e0a87fb729383e51eb269d918313d.patch";
sha256 = "sha256-0YD33JPNOOPH2dpGwA/RbV3Kg4i2oKazBjP3hBcUIes=";
2018-10-01 10:27:11 +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=";
})
# 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
'';
meta = with lib; {
2018-10-01 10:27:11 +02:00
description = "Plugin for TT-RSS to authenticate users via ldap";
license = licenses.asl20;
homepage = "https://github.com/hydrian/TTRSS-Auth-LDAP";
2018-10-01 10:27:11 +02:00
maintainers = with maintainers; [ mic92 ];
platforms = platforms.all;
};
}