lol
1{ lib, stdenv, fetchFromGitHub, systemd, fcgi, autoreconfHook, pkg-config }:
2
3stdenv.mkDerivation rec {
4 pname = "fcgiwrap";
5 version = "1.1.0";
6
7 src = fetchFromGitHub {
8 owner = "gnosek";
9 repo = "fcgiwrap";
10 rev = version;
11 hash = "sha256-znAsZk+aB2XO2NK8Mjc+DLwykYKHolnVQPErlaAx3Oc=";
12 };
13
14 NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough";
15 configureFlags = [ "--with-systemd" "--with-systemdsystemunitdir=$(out)/etc/systemd/system" ];
16
17 nativeBuildInputs = [ autoreconfHook pkg-config ];
18 buildInputs = [ systemd fcgi ];
19
20 # systemd 230 no longer has libsystemd-daemon as a separate entity from libsystemd
21 postPatch = ''
22 substituteInPlace configure.ac --replace libsystemd-daemon libsystemd
23 '';
24
25 meta = with lib; {
26 homepage = "https://github.com/gnosek/fcgiwrap";
27 description = "Simple server for running CGI applications over FastCGI";
28 maintainers = with maintainers; [ ];
29 platforms = with platforms; linux;
30 license = licenses.mit;
31 };
32}