2014-05-10 18:37:58 +02:00
|
|
|
{ stdenv, fetchurl, systemd, fcgi, autoreconfHook, pkgconfig }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fcgiwrap-${version}";
|
|
|
|
version = "1.1.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://github.com/gnosek/fcgiwrap/archive/${version}.tar.gz";
|
|
|
|
sha256 = "07y6s4mm86cv7p1ljz94sxnqa89y9amn3vzwsnbq5hrl4vdy0zac";
|
|
|
|
};
|
|
|
|
|
2018-03-11 15:58:26 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough";
|
2014-05-10 18:37:58 +02:00
|
|
|
configureFlags = [ "--with-systemd" "--with-systemdsystemunitdir=$(out)/etc/systemd/system" ];
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ systemd fcgi ];
|
2014-05-10 18:37:58 +02:00
|
|
|
|
2016-05-29 20:46:56 +02: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 18:37:58 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://nginx.localdomain.pl/wiki/FcgiWrap;
|
|
|
|
description = "Simple server for running CGI applications over FastCGI";
|
|
|
|
maintainers = with maintainers; [ lethalman ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with platforms; linux;
|
2014-05-10 18:37:58 +02:00
|
|
|
};
|
|
|
|
}
|