2021-09-19 14:26:10 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, systemd, fcgi, autoreconfHook, pkg-config }:
|
2014-05-10 17:37:58 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "fcgiwrap";
|
2014-05-10 17:37:58 +01:00
|
|
|
version = "1.1.0";
|
|
|
|
|
2021-09-19 14:26:10 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnosek";
|
|
|
|
repo = "fcgiwrap";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-znAsZk+aB2XO2NK8Mjc+DLwykYKHolnVQPErlaAx3Oc=";
|
2014-05-10 17:37:58 +01:00
|
|
|
};
|
|
|
|
|
2018-03-11 14:58:26 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough";
|
2014-05-10 17:37:58 +01:00
|
|
|
configureFlags = [ "--with-systemd" "--with-systemdsystemunitdir=$(out)/etc/systemd/system" ];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ systemd fcgi ];
|
2014-05-10 17:37:58 +01:00
|
|
|
|
2016-05-29 19:46:56 +01:00
|
|
|
# systemd 230 no longer has libsystemd-daemon as a separate entity from libsystemd
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac --replace libsystemd-daemon libsystemd
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://nginx.localdomain.pl/wiki/FcgiWrap";
|
2014-05-10 17:37:58 +01:00
|
|
|
description = "Simple server for running CGI applications over FastCGI";
|
2021-05-07 14:35:21 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; linux;
|
2020-06-30 20:41:19 +01:00
|
|
|
license = licenses.mit;
|
2014-05-10 17:37:58 +01:00
|
|
|
};
|
|
|
|
}
|