scdoc: 1.4.1 -> 1.4.2

This commit is contained in:
Michael Weiss 2018-09-12 20:34:17 +02:00
parent 9a70738f84
commit 37961c6507

View File

@ -2,17 +2,19 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "scdoc-${version}"; name = "scdoc-${version}";
version = "1.4.1"; version = "1.4.2";
src = fetchurl { src = fetchurl {
url = "https://git.sr.ht/~sircmpwn/scdoc/snapshot/scdoc-${version}.tar.xz"; url = "https://git.sr.ht/~sircmpwn/scdoc/snapshot/scdoc-${version}.tar.xz";
sha256 = "14nabq1hrz5jvilx22yxbqjsd9s4ll0fnl750n1qbyyxw2m6vj9b"; sha256 = "1hhvg9cifx1v8b5i91lgq5cjdcskzl3rz7vwmwdq7ad0nqnykz82";
}; };
postPatch = '' postPatch = ''
substituteInPlace Makefile \ substituteInPlace Makefile \
--replace "-static" "" \ --replace "-static" "" \
--replace "/usr/local" "$out" --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; doCheck = true;