scdoc: init at 1.3.3 (#41315)

We'll need this to build the man pages of sway 1.0 (sway 1.0-alpha.2:
"This release replaces the asciidoc dependency with scdoc." [0]).

[0]: https://github.com/swaywm/sway/releases/tag/1.0-alpha.2
This commit is contained in:
Michael Weiss 2018-05-31 17:55:23 +02:00 committed by GitHub
parent e754f60fd9
commit 37b90ed9af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "scdoc-${version}";
version = "1.3.3";
src = fetchurl {
url = "https://git.sr.ht/~sircmpwn/scdoc/snapshot/scdoc-${version}.tar.xz";
sha256 = "1xkfsrzpbm68522b1dml9dghnwb5dlwpf91c1i4y51rgv3hdgwdj";
};
postPatch = ''
substituteInPlace Makefile \
--replace "VERSION=1.2.3" "VERSION=${version}" \
--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 ];
};
}

View File

@ -4853,6 +4853,8 @@ with pkgs;
scanbd = callPackage ../tools/graphics/scanbd { };
scdoc = callPackage ../tools/typesetting/scdoc { };
screen = callPackage ../tools/misc/screen {
inherit (darwin.apple_sdk.libs) utmp;
};