blob: 7ab2a82ed320f177ee8d27be744046c1147cbf4d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ lib
, stdenv
, fetchFromSourcehut
, buildPackages
}:
stdenv.mkDerivation (finalAttrs: {
pname = "scdoc";
version = "1.11.2";
src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "scdoc";
rev = finalAttrs.version;
hash = "sha256-2NVC+1in1Yt6/XGcHXP+V4AAz8xW/hSq9ctF/Frdgh0=";
};
outputs = [ "out" "man" "dev" ];
postPatch = ''
substituteInPlace Makefile \
--replace "-static" ""
'';
makeFlags = [
"PREFIX=${placeholder "out"}"
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
"HOST_SCDOC=${lib.getExe buildPackages.scdoc}"
];
doCheck = true;
meta = {
description = "A simple man page generator written in C99 for POSIX systems";
homepage = "https://git.sr.ht/~sircmpwn/scdoc";
changelog = "https://git.sr.ht/~sircmpwn/scdoc/refs/${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ primeos AndersonTorres ];
platforms = lib.platforms.unix;
mainProgram = "scdoc";
};
})
|