commit
6e6cabc4b8
39
pkgs/tools/X11/xosview/default.nix
Normal file
39
pkgs/tools/X11/xosview/default.nix
Normal 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
|
|
@ -1,21 +1,23 @@
|
||||||
{ lib, stdenv, fetchurl, libX11 }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, libX11
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "xosview2";
|
pname = "xosview2";
|
||||||
version = "2.3.2";
|
version = "2.3.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/xosview/${pname}-${version}.tar.gz";
|
url = "mirror://sourceforge/xosview/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
|
||||||
sha256 = "sha256-ex1GDBgx9Zzx5tOkZ2IRYskmBh/bUYpRTXHWRoE30vA=";
|
hash = "sha256-ex1GDBgx9Zzx5tOkZ2IRYskmBh/bUYpRTXHWRoE30vA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# The software failed to buid with this enabled; it seemed tests were not implemented
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
buildInputs = [ libX11 ];
|
buildInputs = [ libX11 ];
|
||||||
|
|
||||||
meta = with lib; {
|
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 = ''
|
longDescription = ''
|
||||||
xosview is a lightweight program that gathers information from your
|
xosview is a lightweight program that gathers information from your
|
||||||
operating system and displays it in graphical form. It attempts to show
|
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
|
connect to it on a network, then you can popup an xosview instance and
|
||||||
monitor what is going on.
|
monitor what is going on.
|
||||||
'';
|
'';
|
||||||
homepage = "http://xosview.sourceforge.net/index.html";
|
|
||||||
license = with licenses; [ gpl2 bsdOriginal ];
|
license = with licenses; [ gpl2 bsdOriginal ];
|
||||||
maintainers = [ maintainers.SeanZicari ];
|
maintainers = with maintainers; [ AndersonTorres ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
|
@ -71,10 +71,10 @@ with pkgs;
|
||||||
#
|
#
|
||||||
# TODO It would be much better to pass the `stdenvNoCC` and *unwrapped*
|
# TODO It would be much better to pass the `stdenvNoCC` and *unwrapped*
|
||||||
# cc, bintools, compiler-rt equivalent, etc. and create all final stdenvs
|
# 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
|
# as part of the stage. Then we would never be tempted to override a later
|
||||||
# later thing to to create an earlier thing (leading to infinite
|
# thing to to create an earlier thing (leading to infinite recursion) and
|
||||||
# recursion) and we also would still respect the stage arguments choices
|
# we also would still respect the stage arguments choices for these
|
||||||
# for these things.
|
# things.
|
||||||
overrideCC stdenv buildPackages.llvmPackages.clangNoCompilerRt
|
overrideCC stdenv buildPackages.llvmPackages.clangNoCompilerRt
|
||||||
else mkStdenvNoLibs stdenv;
|
else mkStdenvNoLibs stdenv;
|
||||||
|
|
||||||
|
@ -88,7 +88,8 @@ with pkgs;
|
||||||
### Helper functions.
|
### Helper functions.
|
||||||
inherit lib config overlays;
|
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) lowPrio hiPrio makeOverridable;
|
||||||
|
|
||||||
inherit (lib) recurseIntoAttrs;
|
inherit (lib) recurseIntoAttrs;
|
||||||
|
@ -295,7 +296,8 @@ with pkgs;
|
||||||
|
|
||||||
elfcat = callPackage ../tools/misc/elfcat { };
|
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
|
# ValueError: ZIP does not support timestamps before 1980
|
||||||
ensureNewerSourcesForZipFilesHook = ensureNewerSourcesHook { year = "1980"; };
|
ensureNewerSourcesForZipFilesHook = ensureNewerSourcesHook { year = "1980"; };
|
||||||
|
|
||||||
|
@ -35450,6 +35452,8 @@ with pkgs;
|
||||||
|
|
||||||
xosd = callPackage ../misc/xosd { };
|
xosd = callPackage ../misc/xosd { };
|
||||||
|
|
||||||
|
xosview = callPackage ../tools/X11/xosview { };
|
||||||
|
|
||||||
xosview2 = callPackage ../tools/X11/xosview2 { };
|
xosview2 = callPackage ../tools/X11/xosview2 { };
|
||||||
|
|
||||||
xow_dongle-firmware = callPackage ../os-specific/linux/firmware/xow_dongle-firmware { };
|
xow_dongle-firmware = callPackage ../os-specific/linux/firmware/xow_dongle-firmware { };
|
||||||
|
|
Loading…
Reference in a new issue