From 37b90ed9af899b118758199b2e9b24b9570a30c0 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Thu, 31 May 2018 17:55:23 +0200 Subject: [PATCH] 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 --- pkgs/tools/typesetting/scdoc/default.nix | 32 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/tools/typesetting/scdoc/default.nix diff --git a/pkgs/tools/typesetting/scdoc/default.nix b/pkgs/tools/typesetting/scdoc/default.nix new file mode 100644 index 000000000000..b3c256e94869 --- /dev/null +++ b/pkgs/tools/typesetting/scdoc/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a43f084b56a7..b092b5113283 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; };