smemstat: 0.02.10 -> 0.02.11

Upstream has moved
(#151330)
This commit is contained in:
Renaud 2021-12-20 09:31:43 +01:00 committed by GitHub
parent 8021ed2090
commit 7b9ed73e82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,27 +1,23 @@
{ stdenv, lib, fetchurl, fetchpatch, ncurses }: { stdenv, lib, fetchFromGitHub, ncurses }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "smemstat"; pname = "smemstat";
version = "0.02.10"; version = "0.02.11";
src = fetchurl {
url = "https://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-${version}.tar.xz"; src = fetchFromGitHub {
sha256 = "sha256-Vrs1jOg5yHdEffVo769aaxSawo4iZtGrFJ65Nu+RhcU="; owner = "ColinIanKing";
repo = pname;
rev = "V${version}";
hash = "sha256-RvHBrcyNB/zqxEY27twgMsjHNg8kzJryqnIAM7+vpg8=";
}; };
patches = [
# Pull patch pending upstream inclusion to support ncurses-6.3:
# https://github.com/ColinIanKing/smemstat/pull/1
(fetchpatch {
name = "ncurses-6.3.patch";
url = "https://github.com/ColinIanKing/smemstat/commit/95119558d1679295c9f9f7f618ddbe212674a4bf.patch";
sha256 = "sha256-Cl3Y0HIy1nXqBux6+AXoPuKJatSv3Z0X/4bD+MNjkAQ=";
})
];
buildInputs = [ ncurses ]; buildInputs = [ ncurses ];
installFlags = [ "DESTDIR=$(out)" ]; installFlags = [
postInstall = '' "BINDIR=${placeholder "out"}/bin"
mv $out/usr/* $out "MANDIR=${placeholder "out"}/share/man/man8"
rm -r $out/usr "BASHDIR=${placeholder "out"}/share/bash-completion/completions"
''; ];
meta = with lib; { meta = with lib; {
description = "Memory usage monitoring tool"; description = "Memory usage monitoring tool";
homepage = "https://github.com/ColinIanKing/smemstat"; homepage = "https://github.com/ColinIanKing/smemstat";