fail2ban: fix broken download/hash

The (dynamically generated) compressed archive has changed. Switch from
fetchurl to fetchzip to not get bitten by that again.

(cherry picked from commit b217d9a4dd)
This commit is contained in:
Bjørn Forsman 2015-05-24 17:01:06 +02:00
parent 92c52c3297
commit cbeee4db43

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, python, pythonPackages, unzip, systemd, gamin }:
{ stdenv, fetchzip, python, pythonPackages, unzip, systemd, gamin }:
let version = "0.9.1"; in
@ -6,10 +6,10 @@ pythonPackages.buildPythonPackage {
name = "fail2ban-${version}";
namePrefix = "";
src = fetchurl {
url = "https://github.com/fail2ban/fail2ban/zipball/${version}";
name = "fail2ban-${version}.zip";
sha256 = "0lk720r212mbpk1654qihyxcj5wmglzkg7v4pyiy5qq9qy58jmyr";
src = fetchzip {
name = "fail2ban-${version}-src";
url = "https://github.com/fail2ban/fail2ban/archive/${version}.tar.gz";
sha256 = "111xvy2gxwn868kn0zy2fmdfa423z6fk57i7wsfrc0l74p1cdvs5";
};
buildInputs = [ unzip ];