I've create a nix expression to install mongrel2. This requires the
zeromq package that I submitted previously.
see attached patch
Index: pkgs/servers/http/mongrel2/default.nix
===================================================================
--- pkgs/servers/http/mongrel2/default.nix (revision 0)
+++ pkgs/servers/http/mongrel2/default.nix (revision 0)
@@ -0,0 +1,19 @@
+{ fetchurl, stdenv, zeromq, sqlite }:
+
+stdenv.mkDerivation rec {
+ name = "mongrel2-1.7.3";
+ src = fetchurl {
+ url = "http://mongrel2.org/static/downloads/${name}.tar.bz2";
+ sha256 =
"ab710790f2584776ff572c498f7231d7ac6afadab6d7086d2c7e88037a6c8e78";
+ };
+
+ buildInputs = [ zeromq sqlite ];
+
+ makeFlags = "PREFIX='\${out}'";
+
+ meta = {
+ description = "Mongrel2 is an application, language, and network
architecture agnostic web server that focuses on web applications using modern
browser technologies.";
+ homepage = http://www.mongrel2.org ;
+ license = stdenv.lib.licenses.bsd3;
+ };
+}
Index: pkgs/top-level/all-packages.nix
===================================================================
--- pkgs/top-level/all-packages.nix (revision 27476)
+++ pkgs/top-level/all-packages.nix (working copy)
@@ -4666,6 +4670,8 @@
lighttpd = callPackage ../servers/http/lighttpd { };
+ mongrel2 = callPackage ../servers/http/mongrel2 { };
+
mod_python = callPackage ../servers/http/apache-modules/mod_python { };
mod_fastcgi = callPackage ../servers/http/apache-modules/mod_fastcgi { };
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev