Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a3251aa64469
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 948b3e34a51e
Choose a head ref
  • 1 commit
  • 5 files changed
  • 1 contributor

Commits on Aug 21, 2019

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    globin Robin Gloster
    Copy the full SHA
    948b3e3 View commit details
Showing with 15 additions and 53 deletions.
  1. +5 −0 nixos/doc/manual/release-notes/rl-1909.xml
  2. +0 −39 pkgs/servers/squid/4.nix
  3. +9 −13 pkgs/servers/squid/default.nix
  4. +1 −0 pkgs/top-level/aliases.nix
  5. +0 −1 pkgs/top-level/all-packages.nix
5 changes: 5 additions & 0 deletions nixos/doc/manual/release-notes/rl-1909.xml
Original file line number Diff line number Diff line change
@@ -279,6 +279,11 @@
The <option>services.mantisbt</option> module has been removed from nixpkgs due to lack of maintainer.
</para>
</listitem>
<listitem>
<para>
Squid 3 has been removed and the <option>squid</option> derivation now refers to Squid 4.
</para>
</listitem>
</itemizedlist>
</section>

39 changes: 0 additions & 39 deletions pkgs/servers/squid/4.nix

This file was deleted.

22 changes: 9 additions & 13 deletions pkgs/servers/squid/default.nix
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
{ stdenv, fetchurl, perl, openldap, pam, db, cyrus_sasl, libcap
, expat, libxml2, openssl, fetchpatch }:
, expat, libxml2, openssl }:

stdenv.mkDerivation rec {
name = "squid-3.5.28";
name = "squid-4.8";

src = fetchurl {
url = "http://www.squid-cache.org/Versions/v3/3.5/${name}.tar.xz";
sha256 = "1n4f55g56b11qz4fazrnvgzx5wp6b6637c4qkbd1lrjwwqibchgx";
url = "http://www.squid-cache.org/Versions/v4/${name}.tar.xz";
sha256 = "0432m0ix046rkja7r7qpydgsm2kf1w393xym15nx6h9kv4jb7kbq";
};

patches = [
(fetchpatch {
name = "3.5-CVE-2019-13345.patch";
url = "https://github.com/squid-cache/squid/commit/5730c2b5cb56e7639dc423dd62651c8736a54e35.patch";
sha256 = "0955432g9a00vwxzcrwpjzx6vywspx1cxhr7bknr7jzbzam5sxi3";
})
];

buildInputs = [
perl openldap db cyrus_sasl expat libxml2 openssl
] ++ stdenv.lib.optionals stdenv.isLinux [ libcap pam ];

prePatch = ''
substituteInPlace configure --replace "/usr/local/include/libxml2" "${libxml2.dev}/include/libxml2"
'';

configureFlags = [
"--enable-ipv6"
"--disable-strict-error-checking"
@@ -38,6 +34,6 @@ stdenv.mkDerivation rec {
homepage = http://www.squid-cache.org;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ fpletz ];
maintainers = with maintainers; [ fpletz raskin ];
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
@@ -331,6 +331,7 @@ mapAliases ({
spice_protocol = spice-protocol; # added 2018-02-25
sqlite3_analyzer = sqlite-analyzer; # added 2018-05-22
sqliteInteractive = sqlite-interactive; # added 2014-12-06
squid4 = squid; # added 2019-08-22
sshfsFuse = sshfs-fuse; # added 2016-09
suil-qt5 = suil; # added 2018-05-01
surf-webkit2 = surf; # added 2017-04-02
1 change: 0 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -15154,7 +15154,6 @@ in
spawn_fcgi = callPackage ../servers/http/spawn-fcgi { };

squid = callPackage ../servers/squid { };
squid4 = callPackage ../servers/squid/4.nix { };

sslh = callPackage ../servers/sslh { };