From 5b4a35536217a214c6d178396f08d981a09e8b94 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Sun, 21 Dec 2008 16:36:47 +0000 Subject: [PATCH] squid update. Proposal for multiple versions svn path=/nixpkgs/trunk/; revision=13666 --- pkgs/servers/squid/default.nix | 19 -------------- pkgs/servers/squid/squids.nix | 44 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 7 +++--- 3 files changed, 48 insertions(+), 22 deletions(-) delete mode 100644 pkgs/servers/squid/default.nix create mode 100644 pkgs/servers/squid/squids.nix diff --git a/pkgs/servers/squid/default.nix b/pkgs/servers/squid/default.nix deleted file mode 100644 index 95e922f5e95e..000000000000 --- a/pkgs/servers/squid/default.nix +++ /dev/null @@ -1,19 +0,0 @@ -args: with args; -stdenv.mkDerivation { - name = "squid-3.0-stable5"; - - buildInputs = [perl]; - - src = args.fetchurl { - url = http://www.squid-cache.org/Versions/v3/3.0/squid-3.0.STABLE5.tar.bz2; - sha256 = "1m4ccpjw30q9vwsycmgg9dmhly0mpznvxrch6f7dxgfzpjp26l7w"; - }; - - configureFlags = ["--enable-ipv6"]; - - meta = { - description = "http-proxy"; - homepage = "http://www.squid-cache.org"; - license = "GPL2"; - }; -} diff --git a/pkgs/servers/squid/squids.nix b/pkgs/servers/squid/squids.nix new file mode 100644 index 000000000000..beffef173366 --- /dev/null +++ b/pkgs/servers/squid/squids.nix @@ -0,0 +1,44 @@ +args: with args; +let edf = composableDerivation.edf; in +rec { + squid30 = composableDerivation.composableDerivation { + initial = { + name = "squid-3.0-stable5"; + + buildInputs = [perl]; + + src = args.fetchurl { + url = http://www.squid-cache.org/Versions/v3/3.0/squid-3.0.STABLE5.tar.bz2; + sha256 = "1m4ccpjw30q9vwsycmgg9dmhly0mpznvxrch6f7dxgfzpjp26l7w"; + }; + + configureFlags = ["--enable-ipv6"]; + + meta = { + description = "http-proxy"; + homepage = "http://www.squid-cache.org"; + license = "GPL2"; + }; + + }; + }; + + squid3Beta = squid30.passthru.funMerge { + name = "squid-3.1-beta"; + src = args.fetchurl { + url = http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.0.3.tar.bz2; + sha256 = "0khc4w9sbdwzxw8285z60ymz15q5qjy7b8yvvfnzfkihdacs735x"; + }; + configureFlags = ["--enable-ipv6"]; + }; + + squid3Head = squid3Beta.passthru.funMerge { + name = "squid-3.1-HEAD"; + src = args.fetchurl { + url = http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.0.3-20081221.tar.bz2; + md5 = "345b50251dcc369e1be992d0a4a4c801"; + }; + }; + + latest = squid3Beta; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f2cfd47bb76e..81cdf4e8e3f8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5784,9 +5784,10 @@ let libunwind acl fam; }; - squid = import ../servers/squid { - inherit fetchurl stdenv perl lib; - }; + squids = recurseIntoAttrs( import ../servers/squid/squids.nix { + inherit fetchurl stdenv perl lib composableDerivation; + }); + squid = squids.squid3Beta; # has ipv6 support tomcat5 = import ../servers/http/tomcat { inherit fetchurl stdenv jdk;