2021-08-19 15:22:41 +00:00
|
|
|
{ gnustep, lib, fetchFromGitHub , libxml2, openssl
|
2021-03-14 16:11:57 +00:00
|
|
|
, openldap, mariadb, libmysqlclient, postgresql }:
|
2020-10-07 18:44:50 +00:00
|
|
|
with lib;
|
|
|
|
|
|
|
|
gnustep.stdenv.mkDerivation rec {
|
2020-02-03 17:49:37 +00:00
|
|
|
pname = "sope";
|
2022-02-05 16:45:32 +00:00
|
|
|
version = "5.5.1";
|
2020-02-03 17:49:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inverse-inc";
|
|
|
|
repo = pname;
|
|
|
|
rev = "SOPE-${version}";
|
2022-02-05 16:45:32 +00:00
|
|
|
sha256 = "sha256-w78YO5EQWtEiySOm9NpPbaMChbJppNBoZNOBs9fibbM=";
|
2020-02-03 17:49:37 +00:00
|
|
|
};
|
|
|
|
|
2020-10-07 18:44:50 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2020-02-03 17:49:37 +00:00
|
|
|
nativeBuildInputs = [ gnustep.make ];
|
2021-08-19 15:22:41 +00:00
|
|
|
buildInputs = flatten ([ gnustep.base libxml2 openssl ]
|
2020-02-03 17:49:37 +00:00
|
|
|
++ optional (openldap != null) openldap
|
2021-03-14 16:11:57 +00:00
|
|
|
++ optionals (mariadb != null) [ libmysqlclient mariadb ]
|
2020-02-03 17:49:37 +00:00
|
|
|
++ 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"
|
2021-03-14 16:11:57 +00:00
|
|
|
++ optional (mariadb != null) "--enable-mysql"
|
2020-02-03 17:49:37 +00:00
|
|
|
++ optional (postgresql != null) "--enable-postgresql";
|
|
|
|
|
|
|
|
# Yes, this is ugly.
|
|
|
|
preFixup = ''
|
|
|
|
cp -rlPa $out/nix/store/*/* $out
|
|
|
|
rm -rf $out/nix/store
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "An extensive set of frameworks which form a complete Web application server environment";
|
2020-02-03 17:49:37 +00:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
homepage = "https://github.com/inverse-inc/sope";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ajs124 das_j ];
|
|
|
|
};
|
|
|
|
}
|