at 23.11-beta 40 lines 1.1 kB view raw
1{ stdenv, fetchurl, lib, glib }: 2 3stdenv.mkDerivation rec { 4 pname = "libutempter"; 5 version = "1.2.1"; 6 7 src = fetchurl { 8 url = "http://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-${version}.tar.gz"; 9 sha256 = "sha256-ln/vNy85HeUBhDrYdXDGz12r2WUfAPF4MJD7wSsqNMs="; 10 }; 11 12 buildInputs = [ glib ]; 13 14 patches = [ ./exec_path.patch ]; 15 16 patchFlags = [ "-p2" ]; 17 18 prePatch = '' 19 substituteInPlace Makefile --replace 2711 0711 20 ''; 21 22 makeFlags = [ 23 "libdir=\${out}/lib" 24 "libexecdir=\${out}/lib" 25 "includedir=\${out}/include" 26 "mandir=\${out}/share/man" 27 ]; 28 29 meta = with lib; { 30 homepage = "https://github.com/altlinux/libutempter"; 31 description = "Interface for terminal emulators such as screen and xterm to record user sessions to utmp and wtmp files"; 32 longDescription = '' 33 The bundled utempter binary must be able to run as a user belonging to group utmp. 34 On NixOS systems, this can be achieved by creating a setguid wrapper. 35 ''; 36 license = licenses.lgpl21Plus; 37 platforms = platforms.linux; 38 maintainers = [ maintainers.msteen ]; 39 }; 40}