spawn-fcgi: Add package
This commit is contained in:
parent
7ce1ffbfa5
commit
6d173e2a81
26
pkgs/servers/http/spawn-fcgi/default.nix
Normal file
26
pkgs/servers/http/spawn-fcgi/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ stdenv, fetchsvn, autoconf, automake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "spawn-fcgi-${version}";
|
||||
version = "1.6.3";
|
||||
|
||||
src = fetchsvn {
|
||||
url = "svn://svn.lighttpd.net/spawn-fcgi/tags/spawn-fcgi-${version}";
|
||||
sha256 = "06f0zw3rja42d9vg8j68nqkm3mn5pfzzhwfadpvs4aidh6kz9p42";
|
||||
};
|
||||
|
||||
buildInputs = [ automake autoconf ];
|
||||
|
||||
patches = [ ./show_version.patch ];
|
||||
|
||||
preConfigure = ''
|
||||
./autogen.sh
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://redmine.lighttpd.net/projects/spawn-fcgi";
|
||||
description = "Provides an interface to external programs that support the FastCGI interface";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ cstrahan ];
|
||||
};
|
||||
}
|
14
pkgs/servers/http/spawn-fcgi/show_version.patch
Normal file
14
pkgs/servers/http/spawn-fcgi/show_version.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git a/src/spawn-fcgi.c b/src/spawn-fcgi.c
|
||||
index 7f3f594..2f1046f 100644
|
||||
--- a/src/spawn-fcgi.c
|
||||
+++ b/src/spawn-fcgi.c
|
||||
@@ -405,8 +405,7 @@ static int find_user_group(const char *user, const char *group, uid_t *uid, gid_
|
||||
|
||||
static void show_version () {
|
||||
write(1, CONST_STR_LEN(
|
||||
- PACKAGE_DESC \
|
||||
- "Build-Date: " __DATE__ " " __TIME__ "\n"
|
||||
+ PACKAGE_DESC "\n"
|
||||
));
|
||||
}
|
||||
|
@ -6769,6 +6769,8 @@ let
|
||||
|
||||
sipwitch = callPackage ../servers/sip/sipwitch { };
|
||||
|
||||
spawn_fcgi = callPackage ../servers/http/spawn-fcgi { };
|
||||
|
||||
squids = recurseIntoAttrs( import ../servers/squid/squids.nix {
|
||||
inherit fetchurl stdenv perl lib composableDerivation
|
||||
openldap pam db cyrus_sasl kerberos libcap expat libxml2 libtool
|
||||
|
Loading…
Reference in New Issue
Block a user