1 { lib, stdenv, fetchFromGitHub, systemd, fcgi, autoreconfHook, pkg-config }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 hash = "sha256-znAsZk+aB2XO2NK8Mjc+DLwykYKHolnVQPErlaAx3Oc=";
14 env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough";
15 configureFlags = [ "--with-systemd" "--with-systemdsystemunitdir=$(out)/etc/systemd/system" ];
17 nativeBuildInputs = [ autoreconfHook pkg-config ];
18 buildInputs = [ systemd fcgi ];
20 # systemd 230 no longer has libsystemd-daemon as a separate entity from libsystemd
22 substituteInPlace configure.ac --replace libsystemd-daemon libsystemd
26 homepage = "https://github.com/gnosek/fcgiwrap";
27 description = "Simple server for running CGI applications over FastCGI";
29 platforms = with platforms; linux;
30 license = licenses.mit;
31 mainProgram = "fcgiwrap";