nixpkgs/pkgs/by-name/rm/rman/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.0 KiB
Nix
Raw Normal View History

{lib, stdenv, fetchurl}:
2015-05-22 11:04:44 +01:00
stdenv.mkDerivation rec {
pname = "rman";
version = "3.2";
2016-08-03 21:19:41 +01:00
2015-05-22 11:04:44 +01:00
src = fetchurl {
url = "mirror://sourceforge/polyglotman/${version}/${pname}-${version}.tar.gz";
2015-05-22 11:04:44 +01:00
sha256 = "0prdld6nbkdlkcgc2r1zp13h2fh8r0mlwxx423dnc695ddlk18b8";
};
2016-08-03 21:19:41 +01:00
2018-08-08 22:13:36 +01:00
postPatch = ''
substituteInPlace Makefile \
2021-03-08 14:59:54 +00:00
--replace ginstall install \
--replace gcc '${stdenv.cc.targetPrefix}cc'
2018-08-08 22:13:36 +01:00
'';
makeFlags = [ "BINDIR=$(out)/bin" "MANDIR=$(out)/share/man" ];
2016-08-03 21:19:41 +01:00
2015-05-22 11:04:44 +01:00
preInstall = ''
mkdir -p $out/bin
mkdir -p $out/share/man
'';
2016-08-03 21:19:41 +01:00
hardeningDisable = [ "format" ];
2023-11-29 03:09:07 +00:00
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
2018-08-08 22:13:36 +01:00
doCheck = false; # "check" target is probably meant to do "installcheck" or something
2015-05-22 11:04:44 +01: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;
2023-11-29 03:09:07 +00:00
mainProgram = "rman";
2015-05-22 11:04:44 +01:00
};
}