32 lines
785 B
Nix
32 lines
785 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "scdoc-${version}";
|
|
version = "1.3.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://git.sr.ht/~sircmpwn/scdoc/snapshot/scdoc-${version}.tar.xz";
|
|
sha256 = "131f6sd4azpc988kwzlrc9c4x98abhfnxr5wpk7i427ha84g89yb";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|