mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
30 lines
759 B
Nix
30 lines
759 B
Nix
final: prev: let
|
|
inherit (final) lib;
|
|
in {
|
|
freeipa-ipasam = let
|
|
attrs = old: {
|
|
pname = "freeipa-ipasam";
|
|
patches = old.patches or [ ] ++ [
|
|
../packages/freeipa-ipasam.patch
|
|
];
|
|
configureFlags = lib.filter (f: f != "--disable-server") old.configureFlags;
|
|
};
|
|
overrides = {
|
|
samba = final.samba-ldap;
|
|
};
|
|
in (final.freeipa.override overrides).overrideAttrs attrs;
|
|
|
|
samba-ldap = final.samba.override {
|
|
enableLDAP = true;
|
|
};
|
|
|
|
samba-ipa = final.samba-ldap.overrideAttrs (old: {
|
|
buildInputs = old.buildInputs ++ [
|
|
final.freeipa-ipasam
|
|
];
|
|
postInstall = ''
|
|
${old.postInstall or ""}
|
|
cp -a ${final.freeipa-ipasam}/lib/samba/pdb/ipasam.so $out/lib/samba/pdb/
|
|
'';
|
|
});
|
|
}
|