From eabbe8b96f6db963a23943bda2b653122d96a0eb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 7 Jan 2023 23:28:51 +0100 Subject: [PATCH] bpfmon: add changelog to meta --- pkgs/os-specific/linux/bpfmon/default.nix | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/pkgs/os-specific/linux/bpfmon/default.nix b/pkgs/os-specific/linux/bpfmon/default.nix index 0c23b3963cc8..c75b9375e3b1 100644 --- a/pkgs/os-specific/linux/bpfmon/default.nix +++ b/pkgs/os-specific/linux/bpfmon/default.nix @@ -1,4 +1,9 @@ -{ stdenv, fetchFromGitHub, lib, libpcap, yascreen }: +{ lib +, stdenv +, fetchFromGitHub +, libpcap +, yascreen +}: stdenv.mkDerivation rec { pname = "bpfmon"; @@ -7,16 +12,23 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "bbonev"; repo = "bpfmon"; - rev = "v${version}"; - sha256 = "sha256-EGRxWq94BWceYXunzcOpMQv4g7cMjVCEWMR0ULGN2Jg="; + rev = "refs/tags/v${version}"; + hash = "sha256-EGRxWq94BWceYXunzcOpMQv4g7cMjVCEWMR0ULGN2Jg="; }; - buildInputs = [ libpcap yascreen ]; - makeFlags = [ "PREFIX=$(out)" ]; + buildInputs = [ + libpcap + yascreen + ]; + + makeFlags = [ + "PREFIX=$(out)" + ]; meta = with lib; { description = "BPF based visual packet rate monitor"; homepage = "https://github.com/bbonev/bpfmon"; + changelog = "https://github.com/bbonev/bpfmon/releases/tag/v${version}"; maintainers = with maintainers; [ arezvov ]; license = licenses.gpl2Plus; platforms = platforms.linux;