scdoc: 1.9.7 -> 1.10.0

This commit is contained in:
Michael Weiss 2019-09-11 22:04:45 +02:00
parent 68d0a7114f
commit bcaa3e702f
No known key found for this signature in database
GPG Key ID: 5BE487C4D4771D83

View File

@ -2,19 +2,17 @@
stdenv.mkDerivation rec {
pname = "scdoc";
version = "1.9.7";
version = "1.10.0";
src = fetchurl {
url = "https://git.sr.ht/~sircmpwn/scdoc/archive/${version}.tar.gz";
sha256 = "0y9p03dzdaszx02jbkdf3vcs52fqml591cmic5jdch5yznrg03ky";
sha256 = "0lk8wpz95ld1fnpnc3xkhvnd58px1vbhvlpkr8labi2ck65y10il";
};
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;