depot/third_party/nixpkgs/pkgs/by-name/sc/scd2html/package.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

43 lines
839 B
Nix

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