presenterm: 0.9.0 -> 0.10.0 (#378946)
[NixPkgs.git] / pkgs / by-name / li / libutempter / package.nix
blob6506d10076423c1b03902c7bab6d0034258e1bab
2   stdenv,
3   fetchurl,
4   lib,
5   glib,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "libutempter";
10   version = "1.2.1";
12   src = fetchurl {
13     url = "http://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-${version}.tar.gz";
14     sha256 = "sha256-ln/vNy85HeUBhDrYdXDGz12r2WUfAPF4MJD7wSsqNMs=";
15   };
17   buildInputs = [ glib ];
19   patches = [ ./exec_path.patch ];
21   patchFlags = [ "-p2" ];
23   prePatch = ''
24     substituteInPlace Makefile --replace 2711 0711
25   '';
27   makeFlags = [
28     "libdir=\${out}/lib"
29     "libexecdir=\${out}/lib"
30     "includedir=\${out}/include"
31     "mandir=\${out}/share/man"
32   ];
34   meta = with lib; {
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";
37     longDescription = ''
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.
40     '';
41     license = licenses.lgpl21Plus;
42     platforms = platforms.linux;
43     maintainers = [ maintainers.msteen ];
44   };