1 { stdenv, fetchurl, lib, glib }:
5 stdenv.mkDerivation rec {
10 url = "http://archive.ubuntu.com/ubuntu/pool/main/libu/libutempter/libutempter_${version}.orig.tar.bz2";
11 sha256 = "15y3xbgznjxnfmix4xg3bwmqdvghdw7slbhazb0ybmyf65gmd65q";
14 buildInputs = [ glib ];
16 patches = [ ./exec_path.patch ];
19 substituteInPlace Makefile --replace 2711 0711
24 "libexecdir=\${out}/lib"
25 "includedir=\${out}/include"
26 "mandir=\${out}/share/man"
30 description = "Interface for terminal emulators such as screen and xterm to record user sessions to utmp and wtmp files";
32 The bundled utempter binary must be able to run as a user belonging to group utmp.
33 On NixOS systems, this can be achieved by creating a setguid wrapper.
35 license = licenses.lgpl21Plus;
36 platforms = platforms.linux;
37 maintainers = [ maintainers.msteen ];