nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromSourcehut,
5 scdoc,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "scd2html";
10 version = "1.0.0";
11
12 src = fetchFromSourcehut {
13 owner = "~bitfehler";
14 repo = "scd2html";
15 rev = "v${finalAttrs.version}";
16 hash = "sha256-oZSHv5n/WOrvy77tC94Z8pYugLpHkcv7U1PrzR+8fHM=";
17 };
18
19 strictDeps = true;
20
21 nativeBuildInputs = [
22 scdoc
23 ];
24
25 postPatch = ''
26 substituteInPlace Makefile \
27 --replace "LDFLAGS+=-static" "LDFLAGS+="
28 '';
29
30 makeFlags = [
31 "PREFIX=${placeholder "out"}"
32 ];
33
34 enableParallelBuilding = true;
35
36 meta = {
37 description = "Generates HTML from scdoc source files";
38 homepage = "https://git.sr.ht/~bitfehler/scd2html";
39 license = lib.licenses.mit;
40 maintainers = [ ];
41 platforms = lib.platforms.linux;
42 mainProgram = "scd2html";
43 };
44})