at v206 36 lines 909 B view raw
1{ stdenv, fetchurl, pkgconfig, libpipeline, db, groff }: 2 3stdenv.mkDerivation rec { 4 name = "man-db-2.7.3"; 5 6 src = fetchurl { 7 url = "mirror://savannah/man-db/${name}.tar.xz"; 8 sha256 = "1shl07w3251ih6g6zx3xa3p1193difxwdz4ysnmff1v0jp4l8iwx"; 9 }; 10 11 buildInputs = [ pkgconfig libpipeline db groff ]; 12 13 configureFlags = [ 14 "--disable-setuid" 15 "--sysconfdir=/etc" 16 "--localstatedir=/var" 17 "--with-systemdtmpfilesdir=\${out}/lib/tmpfiles.d" 18 ]; 19 20 installFlags = [ "DESTDIR=\${out}" ]; 21 22 postInstall = '' 23 mv $out/$out/* $out 24 DIR=$out/$out 25 while rmdir $DIR 2>/dev/null; do 26 DIR="$(dirname "$DIR")" 27 done 28 ''; 29 30 meta = with stdenv.lib; { 31 homepage = "http://man-db.nongnu.org"; 32 description = "An implementation of the standard Unix documentation system accessed using the man command"; 33 license = licenses.gpl2; 34 platforms = platforms.unix; 35 }; 36}