Merge pull request #144929 from trofi/fix-smemstat-for-ncurses-6.3

smemstat: pull pending upstream inclusion fix for ncurses-6.3

authored by Ryan Burns and committed by GitHub c935f5e0 424d276c

+11 -2
+11 -2
pkgs/os-specific/linux/smemstat/default.nix
··· 1 - { stdenv, lib, fetchurl, ncurses }: 1 + { stdenv, lib, fetchurl, fetchpatch, ncurses }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "smemstat"; ··· 7 7 url = "https://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-${version}.tar.xz"; 8 8 sha256 = "sha256-Vrs1jOg5yHdEffVo769aaxSawo4iZtGrFJ65Nu+RhcU="; 9 9 }; 10 + patches = [ 11 + # Pull patch pending upstream inclusion to support ncurses-6.3: 12 + # https://github.com/ColinIanKing/smemstat/pull/1 13 + (fetchpatch { 14 + name = "ncurses-6.3.patch"; 15 + url = "https://github.com/ColinIanKing/smemstat/commit/95119558d1679295c9f9f7f618ddbe212674a4bf.patch"; 16 + sha256 = "sha256-Cl3Y0HIy1nXqBux6+AXoPuKJatSv3Z0X/4bD+MNjkAQ="; 17 + }) 18 + ]; 10 19 buildInputs = [ ncurses ]; 11 20 installFlags = [ "DESTDIR=$(out)" ]; 12 21 postInstall = '' ··· 15 24 ''; 16 25 meta = with lib; { 17 26 description = "Memory usage monitoring tool"; 18 - homepage = "https://kernel.ubuntu.com/~cking/smemstat/"; 27 + homepage = "https://github.com/ColinIanKing/smemstat"; 19 28 license = licenses.gpl2; 20 29 platforms = platforms.linux; 21 30 maintainers = with maintainers; [ womfoo ];