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