2015-11-15 00:16:52 +01:00
|
|
|
{ stdenv, fetchurl, lib, glib }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libutempter";
|
2015-11-15 00:16:52 +01:00
|
|
|
version = "1.1.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://archive.ubuntu.com/ubuntu/pool/main/libu/libutempter/libutempter_${version}.orig.tar.bz2";
|
|
|
|
sha256 = "15y3xbgznjxnfmix4xg3bwmqdvghdw7slbhazb0ybmyf65gmd65q";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ glib ];
|
|
|
|
|
2018-06-02 00:29:33 +02:00
|
|
|
patches = [ ./exec_path.patch ];
|
|
|
|
|
2017-06-28 21:23:57 +02:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace Makefile --replace 2711 0711
|
|
|
|
'';
|
|
|
|
|
2018-06-02 00:29:33 +02:00
|
|
|
makeFlags = [
|
2015-11-15 00:16:52 +01:00
|
|
|
"libdir=\${out}/lib"
|
|
|
|
"libexecdir=\${out}/lib"
|
|
|
|
"includedir=\${out}/include"
|
|
|
|
"mandir=\${out}/share/man"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Interface for terminal emulators such as screen and xterm to record user sessions to utmp and wtmp files";
|
2018-06-02 00:29:33 +02: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-15 00:16:52 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.msteen ];
|
|
|
|
};
|
|
|
|
}
|