nixpkgs/pkgs/tools/typesetting/scdoc/default.nix
2019-09-11 22:10:13 +02:00

32 lines
768 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "scdoc";
version = "1.10.0";
src = fetchurl {
url = "https://git.sr.ht/~sircmpwn/scdoc/archive/${version}.tar.gz";
sha256 = "0lk8wpz95ld1fnpnc3xkhvnd58px1vbhvlpkr8labi2ck65y10il";
};
postPatch = ''
substituteInPlace Makefile \
--replace "-static" "" \
--replace "/usr/local" "$out"
'';
doCheck = true;
meta = with stdenv.lib; {
description = "A simple man page generator";
longDescription = ''
scdoc is a simple man page generator written for POSIX systems written in
C99.
'';
homepage = https://git.sr.ht/~sircmpwn/scdoc;
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ primeos ];
};
}