1 { gnustep, lib, fetchFromGitHub , libxml2, openssl_1_1
2 , openldap, mariadb, libmysqlclient, postgresql }:
5 gnustep.stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
10 owner = "inverse-inc";
12 rev = "SOPE-${version}";
13 sha256 = "031m8ydr4jhh29332mfbsw0i5d0cjfqfyfs55jm832dlmv4447gb";
16 hardeningDisable = [ "format" ];
17 nativeBuildInputs = [ gnustep.make ];
18 buildInputs = flatten ([ gnustep.base libxml2 openssl_1_1 ]
19 ++ optional (openldap != null) openldap
20 ++ optionals (mariadb != null) [ libmysqlclient mariadb ]
21 ++ optional (postgresql != null) postgresql);
24 # Exclude NIX_ variables
25 sed -i 's/grep GNUSTEP_/grep ^GNUSTEP_/g' configure
32 configureFlags = [ "--prefix=" "--disable-debug" "--enable-xml" "--with-ssl=ssl" ]
33 ++ optional (openldap != null) "--enable-openldap"
34 ++ optional (mariadb != null) "--enable-mysql"
35 ++ optional (postgresql != null) "--enable-postgresql";
39 cp -rlPa $out/nix/store/*/* $out
44 description = "An extensive set of frameworks which form a complete Web application server environment";
45 license = licenses.publicDomain;
46 homepage = "https://github.com/inverse-inc/sope";
47 platforms = platforms.linux;
48 maintainers = with maintainers; [ ajs124 das_j ];