From dc2ed8cac406047862bae5e290ad11e0f3c37319 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Fri, 10 May 2024 04:45:43 +0200 Subject: [PATCH] ps_mem: migrate to by-name --- .../ps_mem/default.nix => by-name/ps/ps_mem/package.nix} | 8 ++++++-- pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 6 insertions(+), 4 deletions(-) rename pkgs/{tools/system/ps_mem/default.nix => by-name/ps/ps_mem/package.nix} (89%) diff --git a/pkgs/tools/system/ps_mem/default.nix b/pkgs/by-name/ps/ps_mem/package.nix similarity index 89% rename from pkgs/tools/system/ps_mem/default.nix rename to pkgs/by-name/ps/ps_mem/package.nix index a50a2ef058e6..c6cdbab67262 100644 --- a/pkgs/tools/system/ps_mem/default.nix +++ b/pkgs/by-name/ps/ps_mem/package.nix @@ -1,4 +1,8 @@ -{ lib, python3Packages, fetchFromGitHub }: +{ + lib, + python3Packages, + fetchFromGitHub, +}: python3Packages.buildPythonApplication rec { pname = "ps_mem"; @@ -11,7 +15,7 @@ python3Packages.buildPythonApplication rec { hash = "sha256-jCfPtPSky/QFk9Xo/tq3W7609Pie1yLC4iS4dqjCa+E="; }; - meta = with lib; { + meta = { description = "A utility to accurately report the in core memory usage for a program"; homepage = "https://github.com/pixelb/ps_mem"; license = lib.licenses.lgpl21; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a38897c6125b..04e73aa5b600 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6127,8 +6127,6 @@ with pkgs; poweralertd = callPackage ../tools/misc/poweralertd { }; - ps_mem = callPackage ../tools/system/ps_mem { }; - pscale = callPackage ../development/tools/pscale { }; pulsarctl = callPackage ../tools/admin/pulsarctl { };