nixos-seafile-overlay/default.nix

19 lines
1.3 KiB
Nix

self: super: rec {
# TODO: modify oniguruma derivation instead, pass at callPackage stage
# Since onig-6.9.5_rev1 the POSIX API is disabled by default, causing the libevhtp build relying on it to fail
onigWithPosixAPI = super.oniguruma.overrideAttrs (oldAttrs: {configureFlags = [ "--enable-posix-api=yes" ];});
libevhtp = super.callPackage ./libevhtp/default.nix {oniguruma = onigWithPosixAPI;};
libsearpc = super.callPackage ./libsearpc/default.nix {};
seafile-server = super.callPackage ./seafile-server/default.nix { inherit libevhtp python3Packages libsearpc; oniguruma = onigWithPosixAPI;};
python3Packages = super.python3Packages // rec {
jsonfield = super.python3Packages.callPackage ./jsonfield {};
django-simple-captcha = super.python3Packages.callPackage ./django-simple-captcha { inherit django-ranged-response; };
django-ranged-response = super.python3Packages.callPackage ./django-ranged-response {};
django-post_office = super.python3Packages.callPackage ./django-post_office { inherit jsonfield; };
django-statici18n = super.python3Packages.callPackage ./django-statici18n {};
captcha = super.python3Packages.callPackage ./captcha {};
django-formtools = super.python3Packages.callPackage ./django-formtools {};
seafile-bindings = super.python3Packages.toPythonModule seafile-server.seafile-server-core;
};
}