nixpkgs/pkgs/development/libraries/libgtop/default.nix
Artturin faee5b03a8 libgtop: use deterministic-uname
this will make the build reproducible
libgtop_server2 contained
Linux 5.15.68 x86_64 This libgtop was compiled on %s %s %s
2023-01-12 18:29:18 +02:00

52 lines
1.0 KiB
Nix

{ lib, stdenv
, fetchurl
, glib
, pkg-config
, perl
, gettext
, gobject-introspection
, gnome
, gtk-doc
, deterministic-uname
}:
stdenv.mkDerivation rec {
pname = "libgtop";
version = "2.40.0";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq";
};
nativeBuildInputs = [
# uname output embedded in https://gitlab.gnome.org/GNOME/libgtop/-/blob/master/src/daemon/Makefile.am
deterministic-uname
pkg-config
gtk-doc
perl
gettext
gobject-introspection
];
propagatedBuildInputs = [
glib
];
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "odd-unstable";
};
};
meta = with lib; {
description = "A library that reads information about processes and the running system";
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
platforms = platforms.unix;
};
}