diff options
author | Renaud <c0bw3b@users.noreply.github.com> | 2021-12-18 23:40:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-18 23:40:53 +0100 |
commit | 99d859d4b59623a988935e7c2264e1b5665a5338 (patch) | |
tree | eb9686ac8ee7350733c6a0347b413a0ac290303f /pkgs/os-specific/linux/cpustat/default.nix | |
parent | 6332928cc4f68c816d1b306a46f62867f541ea0e (diff) | |
download | nixpkgs-99d859d4b59623a988935e7c2264e1b5665a5338.tar nixpkgs-99d859d4b59623a988935e7c2264e1b5665a5338.tar.gz nixpkgs-99d859d4b59623a988935e7c2264e1b5665a5338.tar.bz2 nixpkgs-99d859d4b59623a988935e7c2264e1b5665a5338.tar.lz nixpkgs-99d859d4b59623a988935e7c2264e1b5665a5338.tar.xz nixpkgs-99d859d4b59623a988935e7c2264e1b5665a5338.tar.zst nixpkgs-99d859d4b59623a988935e7c2264e1b5665a5338.zip |
cpustat: 0.02.09 -> 0.02.17
Upstream has moved to Github
Diffstat (limited to 'pkgs/os-specific/linux/cpustat/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/cpustat/default.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/os-specific/linux/cpustat/default.nix b/pkgs/os-specific/linux/cpustat/default.nix index 23ed2b07c96..c37c191d8c5 100644 --- a/pkgs/os-specific/linux/cpustat/default.nix +++ b/pkgs/os-specific/linux/cpustat/default.nix @@ -1,12 +1,14 @@ -{ stdenv, lib, fetchurl, ncurses }: +{ stdenv, lib, fetchFromGitHub, ncurses }: stdenv.mkDerivation rec { pname = "cpustat"; - version = "0.02.09"; + version = "0.02.17"; - src = fetchurl { - url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.xz"; - sha256 = "12xahv65yrhs5r830clkl1qnwg3dnrk5qn3zsznzbv1iy2f3cj7y"; + src = fetchFromGitHub { + owner = "ColinIanKing"; + repo = pname; + rev = "V${version}"; + hash = "sha256-4HDXRtklzQSsywCGCTKdz6AtZta9R1mx7qkT7skX6Kc="; }; buildInputs = [ ncurses ]; @@ -14,11 +16,12 @@ stdenv.mkDerivation rec { installFlags = [ "BINDIR=${placeholder "out"}/bin" "MANDIR=${placeholder "out"}/share/man/man8" + "BASHDIR=${placeholder "out"}/share/bash-completion/completions" ]; meta = with lib; { description = "CPU usage monitoring tool"; - homepage = "https://kernel.ubuntu.com/~cking/cpustat/"; + homepage = "https://github.com/ColinIanKing/cpustat"; license = licenses.gpl2; platforms = platforms.linux; maintainers = with maintainers; [ dtzWill ]; |