nixpkgs/pkgs/tools/X11/xosview2/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

42 lines
1.6 KiB
Nix

{ lib, stdenv, fetchurl, libX11 }:
stdenv.mkDerivation rec {
pname = "xosview2";
version = "2.3.1";
src = fetchurl {
url = "mirror://sourceforge/xosview/${pname}-${version}.tar.gz";
sha256 = "1drp0n6qjbxyc0104a3aw2g94rh5p218wmrqwxh3kwwm7pmr9xip";
};
# The software failed to buid with this enabled; it seemed tests were not implemented
doCheck = false;
buildInputs = [ libX11 ];
meta = with lib; {
description = "Lightweight program that gathers information from your operating system and displays it in graphical form";
longDescription = ''
xosview is a lightweight program that gathers information from your
operating system and displays it in graphical form. It attempts to show
you in a quick glance an overview of how your system resources are being
utilized.
It can be configured to be nothing more than a small strip showing a
couple of parameters on a desktop task bar. Or it can display dozens of
meters and rolling graphical charts over your entire screen.
Since xosview renders all graphics with core X11 drawing methods, you can
run it on one machine and display it on another. This works even if your
other host is an operating system not running an X server inside a
virtual machine running on a physically different host. If you can
connect to it on a network, then you can popup an xosview instance and
monitor what is going on.
'';
homepage = "http://xosview.sourceforge.net/index.html";
license = with licenses; [ gpl2 bsdOriginal ];
maintainers = [ maintainers.SeanZicari ];
platforms = platforms.all;
};
}