mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
33 lines
1,019 B
Nix
33 lines
1,019 B
Nix
{ lib, stdenv, fetchFromGitHub, systemd, fcgi, autoreconfHook, pkg-config }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fcgiwrap";
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gnosek";
|
|
repo = "fcgiwrap";
|
|
rev = version;
|
|
hash = "sha256-znAsZk+aB2XO2NK8Mjc+DLwykYKHolnVQPErlaAx3Oc=";
|
|
};
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough";
|
|
configureFlags = [ "--with-systemd" "--with-systemdsystemunitdir=$(out)/etc/systemd/system" ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
buildInputs = [ systemd fcgi ];
|
|
|
|
# systemd 230 no longer has libsystemd-daemon as a separate entity from libsystemd
|
|
postPatch = ''
|
|
substituteInPlace configure.ac --replace libsystemd-daemon libsystemd
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/gnosek/fcgiwrap";
|
|
description = "Simple server for running CGI applications over FastCGI";
|
|
maintainers = [ ];
|
|
platforms = with platforms; linux;
|
|
license = licenses.mit;
|
|
mainProgram = "fcgiwrap";
|
|
};
|
|
}
|