nixpkgs/pkgs/development/tools/misc/rman/default.nix

35 lines
916 B
Nix
Raw Normal View History

{lib, stdenv, fetchurl}:
2015-05-22 10:04:44 +00:00
stdenv.mkDerivation rec {
pname = "rman";
version = "3.2";
2016-08-03 20:19:41 +00:00
2015-05-22 10:04:44 +00:00
src = fetchurl {
url = "mirror://sourceforge/polyglotman/${version}/${pname}-${version}.tar.gz";
2015-05-22 10:04:44 +00:00
sha256 = "0prdld6nbkdlkcgc2r1zp13h2fh8r0mlwxx423dnc695ddlk18b8";
};
2016-08-03 20:19:41 +00:00
2018-08-08 21:13:36 +00:00
postPatch = ''
substituteInPlace Makefile \
2021-03-08 14:59:54 +00:00
--replace ginstall install \
--replace gcc '${stdenv.cc.targetPrefix}cc'
2018-08-08 21:13:36 +00:00
'';
makeFlags = [ "BINDIR=$(out)/bin" "MANDIR=$(out)/share/man" ];
2016-08-03 20:19:41 +00:00
2015-05-22 10:04:44 +00:00
preInstall = ''
mkdir -p $out/bin
mkdir -p $out/share/man
'';
2016-08-03 20:19:41 +00:00
hardeningDisable = [ "format" ];
2018-08-08 21:13:36 +00:00
doCheck = false; # "check" target is probably meant to do "installcheck" or something
2015-05-22 10:04:44 +00:00
meta = {
description = "Parse formatted man pages and man page source from most flavors of UNIX and converts them to HTML, ASCII, TkMan, DocBook, and other formats";
license = "artistic";
2021-03-08 14:59:54 +00:00
platforms = lib.platforms.all;
2015-05-22 10:04:44 +00:00
};
}