Compare commits
No commits in common. "38229ee5fd1e085352f554b9984aecdfca950399" and "963b456c6827818fde6b7637dc9b0e77137f0170" have entirely different histories.
38229ee5fd
...
963b456c68
|
@ -5,10 +5,14 @@ let
|
||||||
callPackage = super.lib.callPackageWith self;
|
callPackage = super.lib.callPackageWith self;
|
||||||
in
|
in
|
||||||
with self; rec {
|
with self; rec {
|
||||||
|
bpytop = callPackage ./pkgs/bpytop { };
|
||||||
|
|
||||||
chrysalis = callPackage ./pkgs/chrysalis { };
|
chrysalis = callPackage ./pkgs/chrysalis { };
|
||||||
|
|
||||||
janus-gateway = callPackage ./pkgs/janus-gateway { };
|
janus-gateway = callPackage ./pkgs/janus-gateway { };
|
||||||
|
|
||||||
|
linuxPackages_latest = linuxPackages_5_9;
|
||||||
|
|
||||||
nextcloud-spreed-signaling = callPackage ./pkgs/nextcloud-spreed-signaling { };
|
nextcloud-spreed-signaling = callPackage ./pkgs/nextcloud-spreed-signaling { };
|
||||||
|
|
||||||
usrsctp = callPackage ./pkgs/usrsctp { };
|
usrsctp = callPackage ./pkgs/usrsctp { };
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
{ stdenv, python3Packages, fetchFromGitHub, makeWrapper, substituteAll }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "bpytop";
|
||||||
|
version = "1.0.50";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "aristocratos";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "10j2g19sh2hl5lzbcllr862hkzr0mc1z8n24afzaycn1sphri8fc";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ makeWrapper ];
|
||||||
|
propagatedBuildInputs = with python3Packages; [ python psutil ];
|
||||||
|
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i -e "s#/usr/\[local/\]#$out/#g" \
|
||||||
|
-e "s#/usr/{td}#$out/#g" \
|
||||||
|
-e "s#THEME_DIR: str = \"\"#THEME_DIR: str = \"$out/share/bpytop/themes\"#" \
|
||||||
|
./bpytop.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/{bin,libexec,share/bpytop}/
|
||||||
|
cp -r ./themes $out/share/bpytop/
|
||||||
|
cp ./bpytop.py $out/libexec/
|
||||||
|
|
||||||
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/bpytop \
|
||||||
|
--add-flags "$out/libexec/bpytop.py" \
|
||||||
|
--prefix PYTHONPATH : "$PYTHONPATH"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A resource monitor; python port of bashtop";
|
||||||
|
homepage = src.meta.homepage;
|
||||||
|
license = licenses.apsl20;
|
||||||
|
maintainers = with maintainers; [ aw ];
|
||||||
|
platforms = with platforms; linux ++ freebsd ++ darwin;
|
||||||
|
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/94625#issuecomment-668509399
|
||||||
|
broken = stdenv.isDarwin;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue