From 98ba667094f3395cd0e4999693541285ed5e0478 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Mon, 1 Apr 2013 01:24:56 +0200 Subject: [PATCH] adding varnish --- pkgs/servers/varnish/default.nix | 21 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/servers/varnish/default.nix diff --git a/pkgs/servers/varnish/default.nix b/pkgs/servers/varnish/default.nix new file mode 100644 index 000000000000..528c03e3aa38 --- /dev/null +++ b/pkgs/servers/varnish/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, pcre, libxslt, groff, ncurses, pkgconfig }: + +stdenv.mkDerivation rec { + version = "3.0.3"; + name = "varnish-${version}"; + + src = fetchurl { + url = "http://repo.varnish-cache.org/source/${name}.tar.gz"; + sha256 = "1cla2igwfwcm07srvk0z9cqdxh74sga0c1rsmh4b4n1gjn6x2drd"; + }; + + buildInputs = [ pcre libxslt groff ncurses pkgconfig ]; + + meta = { + description = "Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy."; + homepage = "https://www.varnish-cache.org"; + license = stdenv.lib.licenses.bsd2; + maintainers = [ stdenv.lib.maintainers.garbas ]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c1d8e39597c0..c4afbe4b9e29 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1791,6 +1791,8 @@ let uptimed = callPackage ../tools/system/uptimed { }; + varnish = callPackage ../servers/varnish { }; + vlan = callPackage ../tools/networking/vlan { }; wakelan = callPackage ../tools/networking/wakelan { };