at 18.03-beta 33 lines 829 B view raw
1{ stdenv, fetchurl, lib, glib }: 2 3with lib; 4 5stdenv.mkDerivation rec { 6 name = "libutempter-${version}"; 7 version = "1.1.6"; 8 9 src = fetchurl { 10 url = "http://archive.ubuntu.com/ubuntu/pool/main/libu/libutempter/libutempter_${version}.orig.tar.bz2"; 11 sha256 = "15y3xbgznjxnfmix4xg3bwmqdvghdw7slbhazb0ybmyf65gmd65q"; 12 }; 13 14 buildInputs = [ glib ]; 15 16 prePatch = '' 17 substituteInPlace Makefile --replace 2711 0711 18 ''; 19 20 installFlags = [ 21 "libdir=\${out}/lib" 22 "libexecdir=\${out}/lib" 23 "includedir=\${out}/include" 24 "mandir=\${out}/share/man" 25 ]; 26 27 meta = { 28 description = "Interface for terminal emulators such as screen and xterm to record user sessions to utmp and wtmp files"; 29 license = licenses.lgpl21Plus; 30 platforms = platforms.linux; 31 maintainers = [ maintainers.msteen ]; 32 }; 33}