depot/third_party/nixpkgs/pkgs/tools/system/ps_mem/default.nix
Default email 3e2acf8aff Project import generated by Copybara.
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
2021-05-20 18:08:51 -05:00

23 lines
586 B
Nix

{ lib, pythonPackages, fetchFromGitHub }:
let
version = "3.13";
pname = "ps_mem";
in pythonPackages.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;
};
}