3
0
Fork 0
forked from mirrors/nixpkgs

pcapc: 1.0.0 -> 1.0.1

And use SPDX 3.0 license identifier
(#156066)
This commit is contained in:
Renaud 2022-01-22 12:20:39 +01:00 committed by GitHub
parent 43559d9447
commit 78681c277f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
};
}