8 stdenv.mkDerivation rec {
13 url = "http://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-${version}.tar.gz";
14 sha256 = "sha256-ln/vNy85HeUBhDrYdXDGz12r2WUfAPF4MJD7wSsqNMs=";
17 buildInputs = [ glib ];
19 patches = [ ./exec_path.patch ];
21 patchFlags = [ "-p2" ];
24 substituteInPlace Makefile --replace 2711 0711
29 "libexecdir=\${out}/lib"
30 "includedir=\${out}/include"
31 "mandir=\${out}/share/man"
35 homepage = "https://github.com/altlinux/libutempter";
36 description = "Interface for terminal emulators such as screen and xterm to record user sessions to utmp and wtmp files";
38 The bundled utempter binary must be able to run as a user belonging to group utmp.
39 On NixOS systems, this can be achieved by creating a setguid wrapper.
41 license = licenses.lgpl21Plus;
42 platforms = platforms.linux;
43 maintainers = [ maintainers.msteen ];