2021-09-19 15:26:10 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, systemd, fcgi, autoreconfHook, pkg-config }:
|
2014-05-10 18:37:58 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "fcgiwrap";
|
2014-05-10 18:37:58 +02:00
|
|
|
version = "1.1.0";
|
|
|
|
|
2021-09-19 15:26:10 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnosek";
|
|
|
|
repo = "fcgiwrap";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-znAsZk+aB2XO2NK8Mjc+DLwykYKHolnVQPErlaAx3Oc=";
|
2014-05-10 18:37:58 +02:00
|
|
|
};
|
|
|
|
|
2023-02-19 20:23:32 +01:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough";
|
2014-05-10 18:37:58 +02:00
|
|
|
configureFlags = [ "--with-systemd" "--with-systemdsystemunitdir=$(out)/etc/systemd/system" ];
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-09-05 23:26:13 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-02-06 11:26:06 +01:00
|
|
|
homepage = "https://github.com/gnosek/fcgiwrap";
|
2014-05-10 18:37:58 +02:00
|
|
|
description = "Simple server for running CGI applications over FastCGI";
|
2021-05-07 15:35:21 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with platforms; linux;
|
2020-06-30 21:41:19 +02:00
|
|
|
license = licenses.mit;
|
2014-05-10 18:37:58 +02:00
|
|
|
};
|
|
|
|
}
|