45 lines
832 B
Nix
45 lines
832 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromSourcehut,
|
|
scdoc,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "scd2html";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~bitfehler";
|
|
repo = "scd2html";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-oZSHv5n/WOrvy77tC94Z8pYugLpHkcv7U1PrzR+8fHM=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
scdoc
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace "LDFLAGS+=-static" "LDFLAGS+="
|
|
'';
|
|
|
|
makeFlags = [
|
|
"PREFIX=${placeholder "out"}"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "Generates HTML from scdoc source files";
|
|
homepage = "https://git.sr.ht/~bitfehler/scd2html";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "scd2html";
|
|
};
|
|
})
|