diff options
Diffstat (limited to 'pkgs-temp')
-rw-r--r-- | pkgs-temp/scdoc/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs-temp/scdoc/default.nix b/pkgs-temp/scdoc/default.nix new file mode 100644 index 0000000..43d880f --- /dev/null +++ b/pkgs-temp/scdoc/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "scdoc-${version}"; + version = "1.9.3"; + + src = fetchurl { + url = "https://git.sr.ht/~sircmpwn/scdoc/archive/${version}.tar.gz"; + sha256 = "1av933421a7g2c984l77gh1fwrhyqblglxr3px5qbng2sh7i33f6"; + }; + + 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 ]; + }; +} |