numatop: 2.2 -> 2.5.1

Diff: https://github.com/intel/numatop/compare/v2.2...v2.5.1

emaryn 84497e0c b9b87f92

+11 -24
+11 -24
pkgs/by-name/nu/numatop/package.nix
··· 2 2 lib, 3 3 stdenv, 4 4 fetchFromGitHub, 5 - fetchpatch, 6 5 autoreconfHook, 7 6 pkg-config, 8 7 numactl, ··· 10 9 check, 11 10 }: 12 11 13 - stdenv.mkDerivation rec { 12 + stdenv.mkDerivation (finalAttrs: { 14 13 pname = "numatop"; 15 - version = "2.2"; 14 + version = "2.5.1"; 15 + 16 16 src = fetchFromGitHub { 17 17 owner = "intel"; 18 18 repo = "numatop"; 19 - rev = "v${version}"; 20 - sha256 = "sha256-GJvTwqgx34ZW10eIJj/xiKe3ZkAfs7GlJImz8jrnjfI="; 19 + tag = "v${finalAttrs.version}"; 20 + hash = "sha256-951Sm2zu1mPxMbPdZy+kMH8RAQo0z+Gqf2lxsY/+Lrg="; 21 21 }; 22 22 23 23 nativeBuildInputs = [ 24 24 autoreconfHook 25 25 pkg-config 26 26 ]; 27 + 27 28 buildInputs = [ 28 29 numactl 29 30 ncurses 30 31 ]; 32 + 31 33 nativeCheckInputs = [ check ]; 32 34 33 - patches = [ 34 - (fetchpatch { 35 - # https://github.com/intel/numatop/pull/54 36 - url = "https://github.com/intel/numatop/compare/eab0ac5253c5843aa0f0ac36e2eec7612207711b...c1001fd926c24eae2d40729492e07270ce133b72.patch"; 37 - sha256 = "sha256-TbMLv7TT9T8wE4uJ1a/AroyPPwrwL0eX5IBLsh9GTTM="; 38 - name = "fix-string-operations.patch"; 39 - }) 40 - (fetchpatch { 41 - # https://github.com/intel/numatop/pull/64 42 - url = "https://github.com/intel/numatop/commit/635e2ce2ccb1ac793cc276a7fcb8a92b1ffefa5d.patch"; 43 - sha256 = "sha256-IevbSFJRTS5iQ5apHOVXzF67f3LJaW6j7DySFmVuyiM="; 44 - name = "fix-format-strings-mvwprintw.patch"; 45 - }) 46 - ]; 47 - 48 35 doCheck = true; 49 36 50 - meta = with lib; { 37 + meta = { 51 38 description = "Tool for runtime memory locality characterization and analysis of processes and threads on a NUMA system"; 52 39 mainProgram = "numatop"; 53 40 homepage = "https://01.org/numatop"; 54 - license = licenses.bsd3; 55 - maintainers = with maintainers; [ dtzWill ]; 41 + license = lib.licenses.bsd3; 42 + maintainers = with lib.maintainers; [ dtzWill ]; 56 43 platforms = [ 57 44 "i686-linux" 58 45 "x86_64-linux" ··· 60 47 "powerpc64le-linux" 61 48 ]; 62 49 }; 63 - } 50 + })