eventstat: 0.04.12 -> 0.04.13

Upstream has moved to Github
(#151245)

authored by Renaud and committed by GitHub 0f204288 1bc07dc1

+16 -10
+16 -10
pkgs/os-specific/linux/eventstat/default.nix
··· 1 - { stdenv, lib, fetchzip, ncurses }: 1 + { stdenv, lib, fetchFromGitHub, ncurses }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "eventstat"; 5 - version = "0.04.12"; 6 - src = fetchzip { 7 - url = "https://kernel.ubuntu.com/~cking/tarballs/eventstat/eventstat-${version}.tar.gz"; 8 - sha256 = "sha256-XBSs/jZodCpI9BHgAF8+bE23gRCr2uebYiMJxxB8T5E="; 5 + version = "0.04.13"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "ColinIanKing"; 9 + repo = pname; 10 + rev = "V${version}"; 11 + hash = "sha256-psamt9omhakiO3Kx2EzofPL2VAsva7XKQTZmn6zKefA="; 9 12 }; 13 + 10 14 buildInputs = [ ncurses ]; 11 - installFlags = [ "DESTDIR=$(out)" ]; 12 - postInstall = '' 13 - mv $out/usr/* $out 14 - rm -r $out/usr 15 - ''; 15 + installFlags = [ 16 + "BINDIR=${placeholder "out"}/bin" 17 + "MANDIR=${placeholder "out"}/share/man/man8" 18 + "BASHDIR=${placeholder "out"}/share/bash-completion/completions" 19 + ]; 20 + 16 21 meta = with lib; { 17 22 description = "Simple monitoring of system events"; 23 + homepage = "https://github.com/ColinIanKing/eventstat"; 18 24 license = licenses.gpl2; 19 25 platforms = platforms.linux; 20 26 maintainers = with maintainers; [ cstrahan ];