@ -1,4 +1,4 @@
{ stdenv , lib , fetchurl , ncurses }:
{ stdenv , lib , fetchurl , fetchpatch , ncurses }:
stdenv . mkDerivation rec {
pname = " s m e m s t a t " ;
@ -7,6 +7,15 @@ stdenv.mkDerivation rec {
url = " h t t p s : / / k e r n e l . u b u n t u . c o m / ~ c k i n g / t a r b a l l s / s m e m s t a t / s m e m s t a t - ${ version } . t a r . x z " ;
sha256 = " s h a 2 5 6 - V r s 1 j O g 5 y H d E f f V o 7 6 9 a a x S a w o 4 i Z t G r F J 6 5 N u + R h c U = " ;
} ;
patches = [
# Pull patch pending upstream inclusion to support ncurses-6.3:
# https://github.com/ColinIanKing/smemstat/pull/1
( fetchpatch {
name = " n c u r s e s - 6 . 3 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / C o l i n I a n K i n g / s m e m s t a t / c o m m i t / 9 5 1 1 9 5 5 8 d 1 6 7 9 2 9 5 c 9 f 9 f 7 f 6 1 8 d d b e 2 1 2 6 7 4 a 4 b f . p a t c h " ;
sha256 = " s h a 2 5 6 - C l 3 Y 0 H I y 1 n X q B u x 6 + A X o P u K J a t S v 3 Z 0 X / 4 b D + M N j k A Q = " ;
} )
] ;
buildInputs = [ ncurses ] ;
installFlags = [ " D E S T D I R = $ ( o u t ) " ] ;
postInstall = ''
@ -15,7 +24,7 @@ stdenv.mkDerivation rec {
'' ;
meta = with lib ; {
description = " M e m o r y u s a g e m o n i t o r i n g t o o l " ;
homepage = " h t t p s : / / k e r n e l . u b u n t u . c o m / ~ c k i n g / s m e m s t a t / " ;
homepage = " h t t p s : / / g i t h u b . c o m / C o l i n I a n K i n g / s m e m s t a t " ;
license = licenses . gpl2 ;
platforms = platforms . linux ;
maintainers = with maintainers ; [ womfoo ] ;