From 78681c277f1c7ddcdfec3719adda99791658c787 Mon Sep 17 00:00:00 2001 From: Renaud Date: Sat, 22 Jan 2022 12:20:39 +0100 Subject: [PATCH] pcapc: 1.0.0 -> 1.0.1 And use SPDX 3.0 license identifier (#156066) --- pkgs/tools/networking/pcapc/default.nix | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/pkgs/tools/networking/pcapc/default.nix b/pkgs/tools/networking/pcapc/default.nix index 48dc96bb3f71..e0cef5402089 100644 --- a/pkgs/tools/networking/pcapc/default.nix +++ b/pkgs/tools/networking/pcapc/default.nix @@ -1,27 +1,24 @@ -{ lib, stdenv, fetchFromGitHub, libpcap, cmake }: +{ lib, stdenv, fetchFromGitLab, libpcap }: stdenv.mkDerivation rec { pname = "pcapc"; - version = "1.0.0"; + version = "1.0.1"; - src = fetchFromGitHub { - sha256 = "137crs0bb7kh9a8p9g168yj2jrp0h3j3073nwh31jy4nk0g5hlfp"; + src = fetchFromGitLab { + owner = "post-factum"; + repo = pname; rev = "v${version}"; - repo = "pcapc"; - owner = "pfactum"; + hash = "sha256-oDg9OSvi9aQsZ2SQm02NKAcppE0w5SGZaI13gdp7gv4="; }; - nativeBuildInputs = [ cmake ]; buildInputs = [ libpcap ]; - makeFlags = [ "PREFIX=$(out)" ]; - - doCheck = false; + makeFlags = [ "PREFIX=${placeholder "out"}" ]; meta = with lib; { - homepage = "https://github.com/pfactum/pcapc"; + homepage = "https://gitlab.com/post-factum/pcapc"; description = "Compile libpcap filter expressions into BPF opcodes"; - license = licenses.gpl3; + license = licenses.gpl3Only; platforms = platforms.linux; }; }