Merge pull request #180306 from AndersonTorres/MISC

xosview: updates
This commit is contained in:
Anderson Torres 2022-07-06 01:54:00 -03:00 committed by GitHub
commit 6e6cabc4b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 61 additions and 17 deletions

View file

@ -0,0 +1,39 @@
{ lib
, stdenv
, fetchFromGitHub
, libX11
, libXpm
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xosview";
version = "1.23";
src = fetchFromGitHub {
owner = "hills";
repo = finalAttrs.pname;
rev = finalAttrs.version;
hash = "sha256-CoBVFTCpvZkIe/g+17JNV1y0G9K+t+p3EE9C5kuBe2k=";
};
dontConfigure = true;
buildInputs = [
libX11
libXpm
];
makeFlags = [
"PREFIX=${placeholder "out"}"
"PLATFORM=linux"
];
meta = with lib; {
homepage = "http://www.pogo.org.uk/~mark/xosview/";
description = "A classic system monitoring tool";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = with platforms; linux;
};
})
# TODO: generalize to other platforms

View file

@ -1,21 +1,23 @@
{ lib, stdenv, fetchurl, libX11 }:
{ lib
, stdenv
, fetchurl
, libX11
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "xosview2";
version = "2.3.2";
src = fetchurl {
url = "mirror://sourceforge/xosview/${pname}-${version}.tar.gz";
sha256 = "sha256-ex1GDBgx9Zzx5tOkZ2IRYskmBh/bUYpRTXHWRoE30vA=";
url = "mirror://sourceforge/xosview/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
hash = "sha256-ex1GDBgx9Zzx5tOkZ2IRYskmBh/bUYpRTXHWRoE30vA=";
};
# 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";
homepage = "http://xosview.sourceforge.net/index.html";
description = "Lightweight graphical operating system monitor";
longDescription = ''
xosview is a lightweight program that gathers information from your
operating system and displays it in graphical form. It attempts to show
@ -33,9 +35,8 @@ stdenv.mkDerivation rec {
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 ];
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.all;
};
}
})

View file

@ -71,10 +71,10 @@ with pkgs;
#
# TODO It would be much better to pass the `stdenvNoCC` and *unwrapped*
# cc, bintools, compiler-rt equivalent, etc. and create all final stdenvs
# as part of the stage. Then we would never be tempted to override a
# later thing to to create an earlier thing (leading to infinite
# recursion) and we also would still respect the stage arguments choices
# for these things.
# as part of the stage. Then we would never be tempted to override a later
# thing to to create an earlier thing (leading to infinite recursion) and
# we also would still respect the stage arguments choices for these
# things.
overrideCC stdenv buildPackages.llvmPackages.clangNoCompilerRt
else mkStdenvNoLibs stdenv;
@ -88,7 +88,8 @@ with pkgs;
### Helper functions.
inherit lib config overlays;
# do not import 'appendToName' to get consistent package-names with the same set of package-parameters: https://github.com/NixOS/nixpkgs/issues/68519
# do not import 'appendToName' to get consistent package-names with the same
# set of package-parameters: https://github.com/NixOS/nixpkgs/issues/68519
inherit (lib) lowPrio hiPrio makeOverridable;
inherit (lib) recurseIntoAttrs;
@ -295,7 +296,8 @@ with pkgs;
elfcat = callPackage ../tools/misc/elfcat { };
# Zip file format only allows times after year 1980, which makes e.g. Python wheel building fail with:
# Zip file format only allows times after year 1980, which makes e.g. Python
# wheel building fail with:
# ValueError: ZIP does not support timestamps before 1980
ensureNewerSourcesForZipFilesHook = ensureNewerSourcesHook { year = "1980"; };
@ -35450,6 +35452,8 @@ with pkgs;
xosd = callPackage ../misc/xosd { };
xosview = callPackage ../tools/X11/xosview { };
xosview2 = callPackage ../tools/X11/xosview2 { };
xow_dongle-firmware = callPackage ../os-specific/linux/firmware/xow_dongle-firmware { };