cpustat: refactor

- specify license
This commit is contained in:
Fabian Affolter 2024-03-27 09:34:43 +01:00 committed by GitHub
parent 9be97b77e1
commit 6413c84519
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,8 @@
{ stdenv, lib, fetchFromGitHub, ncurses }: { lib
, stdenv
, fetchFromGitHub
, ncurses
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "cpustat"; pname = "cpustat";
@ -6,12 +10,14 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ColinIanKing"; owner = "ColinIanKing";
repo = pname; repo ="cpustat";
rev = "V${version}"; rev = "refs/tags/V${version}";
hash = "sha256-cdHoo2esm772q782kb7mwRwlPXGDNNLHJRbd2si5g7k="; hash = "sha256-cdHoo2esm772q782kb7mwRwlPXGDNNLHJRbd2si5g7k=";
}; };
buildInputs = [ ncurses ]; buildInputs = [
ncurses
];
installFlags = [ installFlags = [
"BINDIR=${placeholder "out"}/bin" "BINDIR=${placeholder "out"}/bin"
@ -21,10 +27,10 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "CPU usage monitoring tool"; description = "CPU usage monitoring tool";
mainProgram = "cpustat";
homepage = "https://github.com/ColinIanKing/cpustat"; homepage = "https://github.com/ColinIanKing/cpustat";
license = licenses.gpl2; license = licenses.gpl2Plus;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ dtzWill ]; maintainers = with maintainers; [ dtzWill ];
mainProgram = "cpustat";
}; };
} }