2021-08-22 07:53:02 +00:00
|
|
|
{ gnustep, lib, fetchFromGitHub , libxml2, openssl
|
2021-04-05 15:23:46 +00:00
|
|
|
, openldap, mariadb, libmysqlclient, postgresql }:
|
2020-10-11 12:50:04 +00:00
|
|
|
|
|
|
|
gnustep.stdenv.mkDerivation rec {
|
2020-05-29 06:06:01 +00:00
|
|
|
pname = "sope";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "5.8.0";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inverse-inc";
|
|
|
|
repo = pname;
|
|
|
|
rev = "SOPE-${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-sXIpKdJ5930+W+FsxQ8DZOq/49XWMM1zV8dIzbQdcbc=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2020-05-29 06:06:01 +00:00
|
|
|
nativeBuildInputs = [ gnustep.make ];
|
2023-02-02 18:25:31 +00:00
|
|
|
buildInputs = lib.flatten ([ gnustep.base libxml2 openssl ]
|
|
|
|
++ lib.optional (openldap != null) openldap
|
|
|
|
++ lib.optionals (mariadb != null) [ libmysqlclient mariadb ]
|
|
|
|
++ lib.optional (postgresql != null) postgresql);
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Exclude NIX_ variables
|
|
|
|
sed -i 's/grep GNUSTEP_/grep ^GNUSTEP_/g' configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export DESTDIR="$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--prefix=" "--disable-debug" "--enable-xml" "--with-ssl=ssl" ]
|
2023-02-02 18:25:31 +00:00
|
|
|
++ lib.optional (openldap != null) "--enable-openldap"
|
|
|
|
++ lib.optional (mariadb != null) "--enable-mysql"
|
|
|
|
++ lib.optional (postgresql != null) "--enable-postgresql";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
# Yes, this is ugly.
|
|
|
|
preFixup = ''
|
|
|
|
cp -rlPa $out/nix/store/*/* $out
|
|
|
|
rm -rf $out/nix/store
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "An extensive set of frameworks which form a complete Web application server environment";
|
2020-05-29 06:06:01 +00:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
homepage = "https://github.com/inverse-inc/sope";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ajs124 das_j ];
|
|
|
|
};
|
|
|
|
}
|