mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-19 19:52:28 +03:00
34 lines
926 B
Nix
34 lines
926 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "scdoc-${version}";
|
|
version = "1.4.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://git.sr.ht/~sircmpwn/scdoc/snapshot/scdoc-${version}.tar.xz";
|
|
sha256 = "1hhvg9cifx1v8b5i91lgq5cjdcskzl3rz7vwmwdq7ad0nqnykz82";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace "-static" "" \
|
|
--replace "/usr/local" "$out"
|
|
# It happens from time to time that the version wasn't updated:
|
|
sed -iE 's/VERSION=[0-9]\.[0-9]\.[0-9]/VERSION=${version}/' Makefile
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|