2020-02-03 17:49:37 +00:00
|
|
|
{ gnustep, lib, fetchFromGitHub , libxml2, openssl_1_1
|
|
|
|
, openldap, mysql, libmysqlclient, postgresql }: with lib; gnustep.stdenv.mkDerivation rec {
|
|
|
|
pname = "sope";
|
2020-08-17 10:14:00 +00:00
|
|
|
version = "5.0.0";
|
2020-02-03 17:49:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inverse-inc";
|
|
|
|
repo = pname;
|
|
|
|
rev = "SOPE-${version}";
|
2020-08-17 10:14:00 +00:00
|
|
|
sha256 = "sha256-7NM9wcyHDSVmjjqu489Ff3iJgl9VM+UBF3XYWoiHHTg=";
|
2020-02-03 17:49:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gnustep.make ];
|
|
|
|
buildInputs = flatten ([ gnustep.base libxml2 openssl_1_1 ]
|
|
|
|
++ optional (openldap != null) openldap
|
|
|
|
++ optionals (mysql != null) [ libmysqlclient mysql ]
|
|
|
|
++ optional (postgresql != null) postgresql);
|
|
|
|
|
|
|
|
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" ]
|
|
|
|
++ optional (openldap != null) "--enable-openldap"
|
|
|
|
++ optional (mysql != null) "--enable-mysql"
|
|
|
|
++ optional (postgresql != null) "--enable-postgresql";
|
|
|
|
|
|
|
|
# Yes, this is ugly.
|
|
|
|
preFixup = ''
|
|
|
|
cp -rlPa $out/nix/store/*/* $out
|
|
|
|
rm -rf $out/nix/store
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SOPE is an extensive set of frameworks which form a complete Web application server environment";
|
|
|
|
license = licenses.publicDomain;
|
|
|
|
homepage = "https://github.com/inverse-inc/sope";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ajs124 das_j ];
|
|
|
|
};
|
|
|
|
}
|