4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
32 lines
891 B
Nix
32 lines
891 B
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tt-rss-plugin-auth-ldap";
|
|
version = "2.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hydrian";
|
|
repo = "TTRSS-Auth-LDAP";
|
|
rev = version;
|
|
sha256 = "1mg9jff2m0ajxql1vd1g7hsxfbv9smhrmjg4j2gvvjbii45ry0jh";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://github.com/Mic92/TTRSS-Auth-LDAP/commit/7534fa54babc377a070e05e326a46a252b5e3884.patch";
|
|
sha256 = "1p7zas0n627z0g226dp5m5dg1ai2z3vi69n3xivp517iv3lch70l";
|
|
})
|
|
];
|
|
|
|
installPhase = ''
|
|
install -D plugins/auth_ldap/init.php $out/auth_ldap/init.php
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Plugin for TT-RSS to authenticate users via ldap";
|
|
license = licenses.asl20;
|
|
homepage = "https://github.com/hydrian/TTRSS-Auth-LDAP";
|
|
maintainers = with maintainers; [ mic92 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|