nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitLab, 5 autoconf, 6 automake, 7 gettext, 8 ncurses, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 pname = "psmisc"; 13 version = "23.7"; 14 15 src = fetchFromGitLab { 16 owner = "psmisc"; 17 repo = "psmisc"; 18 rev = "v${finalAttrs.version}"; 19 hash = "sha256-49YpdIh0DxLHfxos4sw1HUkV0XQBqmm4M9b0T4eN2xI="; 20 }; 21 22 nativeBuildInputs = [ 23 autoconf 24 automake 25 gettext 26 ]; 27 buildInputs = [ ncurses ]; 28 29 preConfigure = 30 lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' 31 # Goes past the rpl_malloc linking failure 32 export ac_cv_func_malloc_0_nonnull=yes 33 export ac_cv_func_realloc_0_nonnull=yes 34 '' 35 + '' 36 echo $version > .tarball-version 37 ./autogen.sh 38 ''; 39 40 meta = { 41 homepage = "https://gitlab.com/psmisc/psmisc"; 42 description = "Set of small useful utilities that use the proc filesystem (such as fuser, killall and pstree)"; 43 platforms = lib.platforms.linux; 44 license = lib.licenses.gpl2Plus; 45 maintainers = with lib.maintainers; [ ryantm ]; 46 }; 47})