git-latexdiff: 1.6.0 -> 1.7.1
Diff: https://gitlab.com/git-latexdiff/git-latexdiff/-/compare/1.6.0...1.7.1
This commit is contained in:
@@ -11,18 +11,16 @@
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
version = "1.6.0";
|
||||
version = "1.7.1";
|
||||
pname = "git-latexdiff";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
repo = "git-latexdiff";
|
||||
owner = "git-latexdiff";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-DMoGEbCBuqUGjbna3yDpD4WNTikPudYRD4Wy1pPG2mw=";
|
||||
hash = "sha256-ocEDds1vAnaj84YiAez150OZV82w3NlsgXoxNbUGW/Q=";
|
||||
};
|
||||
|
||||
patches = [ ./version-test.patch ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace git-latexdiff \
|
||||
--replace-fail "@GIT_LATEXDIFF_VERSION@" "v${finalAttrs.version}"
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
Fix for https://gitlab.com/git-latexdiff/git-latexdiff/issues/7
|
||||
---
|
||||
--- src/git-latexdiff 2016-01-26 14:04:54.338568955 +0100
|
||||
+++ src/git-latexdiff 2016-01-26 14:40:23.700381943 +0100
|
||||
@@ -44,11 +44,7 @@
|
||||
git_latexdiff_version='@GIT_LATEXDIFF_VERSION@'
|
||||
|
||||
git_latexdiff_compute_version () {
|
||||
- if [ "$git_latexdiff_version" = '@GIT_LATEXDIFF''_VERSION@' ]; then
|
||||
- (cd "$(dirname "$0")" && git describe --tags HEAD 2>/dev/null || echo 'Unknown version')
|
||||
- else
|
||||
- echo "$git_latexdiff_version"
|
||||
- fi
|
||||
+ echo "$git_latexdiff_version"
|
||||
}
|
||||
|
||||
usage () {
|
||||
Reference in New Issue
Block a user