nixpkgs/pkgs/tools/system/ps_mem/default.nix
Robert Schütz d5cceedbd1 python,pythonPackages: make aliases
Since aliases are disallowed in nixpkgs, this makes usage of Python 2
which is EOL more explicit.
2022-01-16 18:39:59 +00:00

24 lines
588 B
Nix

{ lib, python2Packages, fetchFromGitHub }:
let
version = "3.13";
pname = "ps_mem";
in python2Packages.buildPythonApplication {
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "pixelb";
repo = pname;
rev = "v${version}";
sha256 = "0pgi9hvwfbkzvwicqlkwx4rwal1ikza018yxbwpnf7c80zw0zaw9";
};
meta = with lib; {
description = "A utility to accurately report the in core memory usage for a program";
homepage = "https://github.com/pixelb/ps_mem";
license = licenses.lgpl21;
maintainers = [ ];
platforms = platforms.linux;
};
}