Merge pull request #74841 from tilpner/ferm-update

ferm: 2.4.1 -> 2.5
This commit is contained in:
Léo Gaspard 2020-04-20 00:59:46 +02:00 committed by GitHub
commit 2d6f7344d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,14 @@
{ stdenv, fetchurl, makeWrapper, perl, ebtables, ipset, iptables, nixosTests }:
stdenv.mkDerivation rec {
version = "2.4.1";
let
inherit (stdenv.lib.versions) majorMinor;
in stdenv.mkDerivation rec {
version = "2.5";
pname = "ferm";
src = fetchurl {
url = "http://ferm.foo-projects.org/download/2.4/ferm-${version}.tar.xz";
sha256 = "1fv8wk513yysp4q0i65rl2m0hg2lxwwgk9ppprsca1xcxrdpsvwa";
url = "http://ferm.foo-projects.org/download/${majorMinor version}/ferm-${version}.tar.xz";
sha256 = "0lxqcpirphihpvdqrh5kq0621aqq0h2vdy9q2v85gqdhd52js20p";
};
buildInputs = [ perl ipset ebtables iptables makeWrapper ];