at 22.05-pre 33 lines 984 B view raw
1{lib, stdenv, fetchFromGitLab, autoconf, automake, gettext, ncurses}: 2 3stdenv.mkDerivation rec { 4 pname = "psmisc"; 5 version = "23.4"; 6 7 src = fetchFromGitLab { 8 owner = pname; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-s7omgtsNooYqhr4JUTZ6WCtPaZVC1ujJGz6KxUBWIs8="; 12 }; 13 14 nativeBuildInputs = [ autoconf automake gettext ]; 15 buildInputs = [ ncurses ]; 16 17 preConfigure = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' 18 # Goes past the rpl_malloc linking failure 19 export ac_cv_func_malloc_0_nonnull=yes 20 export ac_cv_func_realloc_0_nonnull=yes 21 '' + '' 22 echo $version > .tarball-version 23 ./autogen.sh 24 ''; 25 26 meta = with lib; { 27 homepage = "https://gitlab.com/psmisc/psmisc"; 28 description = "A set of small useful utilities that use the proc filesystem (such as fuser, killall and pstree)"; 29 platforms = platforms.linux; 30 license = licenses.gpl2Plus; 31 maintainers = with maintainers; [ ryantm ]; 32 }; 33}