Unverified Commit a1e77d9f authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

iotop-c: 1.27 -> 1.28 (#403726)

parents b6c8d06a 1c851f12
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -8,26 +8,26 @@

stdenv.mkDerivation rec {
  pname = "iotop-c";
  version = "1.27";
  version = "1.28";

  src = fetchFromGitHub {
    owner = "Tomas-M";
    repo = "iotop";
    rev = "v${version}";
    sha256 = "sha256-o8OJnZjrDbzzhwfzRWmyCmhBWxMVKRDeDWWBCXy3C90=";
    sha256 = "sha256-Cauy6q587M/VhMsr1vFlNaEJfteDJmNTjE81m0u+OBc=";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ ncurses ];

  makeFlags = [
    "DESTDIR=$(out)"
    "TARGET=iotop-c"
    "PREFIX=${placeholder "out"}"
    "BINDIR=${placeholder "out"}/bin"
  ];

  postInstall = ''
    mv $out/usr/share/man/man8/{iotop,iotop-c}.8
    ln -s $out/usr/sbin $out/bin
    ln -s $out/usr/share $out/share
    mv $out/share/man/man8/{iotop,iotop-c}.8
  '';

  meta = with lib; {