From c84b069866a302d9428aeda6f01a563989e83b15 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Sat, 8 Dec 2007 01:09:23 +0000 Subject: [PATCH] squid http proxy server/client- compiles / untested svn path=/nixpkgs/branches/stdenv-updates/; revision=9888 --- pkgs/servers/squid/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 +++++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/servers/squid/default.nix diff --git a/pkgs/servers/squid/default.nix b/pkgs/servers/squid/default.nix new file mode 100644 index 000000000000..6bf63ae027b3 --- /dev/null +++ b/pkgs/servers/squid/default.nix @@ -0,0 +1,22 @@ +args: +( args.mkDerivationByConfiguration { + flagConfig = { + mandatory = { buildInputs = [ "perl" ]; }; + # many options I don't know wether they should be default .. + }; + + extraAttrs = co : { + name = "squid-2.6-stable"; + + src = args.fetchurl { + url = http://www.squid-cache.org/Versions/v2/2.6/squid-2.6.STABLE16.tar.bz2; + sha256 = "1iv21a4cl74bqzrk07l0lbzlq3n9qpd0r31fgsjv2dsabj46qc4y"; + }; + + meta = { + description = "http-proxy"; + homepage = "http://www.squid-cache.org"; + license = "GPL2"; + }; + }; +} ) args diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 492265f0f9a0..c8ec1fee7d34 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2784,6 +2784,11 @@ rec { inherit stdenv fetchurl readline openldap pam; }; + squid = import ../servers/squid { + inherit fetchurl stdenv mkDerivationByConfiguration perl; + lib = lib_unstable; + }; + tomcat5 = import ../servers/http/tomcat { inherit fetchurl stdenv jdk; };