2015-11-14 23:16:52 +00:00
|
|
|
{ stdenv, fetchurl, lib, glib }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libutempter";
|
2022-11-13 20:38:18 +00:00
|
|
|
version = "1.2.1";
|
2015-11-14 23:16:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-11-13 20:38:18 +00:00
|
|
|
url = "http://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-${version}.tar.gz";
|
|
|
|
sha256 = "sha256-ln/vNy85HeUBhDrYdXDGz12r2WUfAPF4MJD7wSsqNMs=";
|
2015-11-14 23:16:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ glib ];
|
|
|
|
|
2018-06-01 22:29:33 +00:00
|
|
|
patches = [ ./exec_path.patch ];
|
|
|
|
|
2022-11-13 20:38:18 +00:00
|
|
|
patchFlags = [ "-p2" ];
|
|
|
|
|
2017-06-28 19:23:57 +00:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace Makefile --replace 2711 0711
|
|
|
|
'';
|
|
|
|
|
2018-06-01 22:29:33 +00:00
|
|
|
makeFlags = [
|
2015-11-14 23:16:52 +00:00
|
|
|
"libdir=\${out}/lib"
|
|
|
|
"libexecdir=\${out}/lib"
|
|
|
|
"includedir=\${out}/include"
|
|
|
|
"mandir=\${out}/share/man"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2022-11-13 20:38:18 +00:00
|
|
|
homepage = "https://github.com/altlinux/libutempter";
|
2015-11-14 23:16:52 +00:00
|
|
|
description = "Interface for terminal emulators such as screen and xterm to record user sessions to utmp and wtmp files";
|
2018-06-01 22:29:33 +00:00
|
|
|
longDescription = ''
|
|
|
|
The bundled utempter binary must be able to run as a user belonging to group utmp.
|
|
|
|
On NixOS systems, this can be achieved by creating a setguid wrapper.
|
|
|
|
'';
|
2015-11-14 23:16:52 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.msteen ];
|
|
|
|
};
|
|
|
|
}
|