1 { lib, stdenv, fetchFromGitLab, git, bash }:
3 stdenv.mkDerivation rec {
5 pname = "git-latexdiff";
7 src = fetchFromGitLab {
8 sha256 = "05fnhr1pqvj8l25vi9hdccwfk4mv2f0pfhn05whbdvf66gyl4fs9";
10 repo = "git-latexdiff";
11 owner = "git-latexdiff";
14 buildInputs = [ git bash ];
18 patches = [ ./version-test.patch ];
21 substituteInPlace git-latexdiff \
22 --replace "@GIT_LATEXDIFF_VERSION@" "v${version}"
23 patchShebangs git-latexdiff
28 mv git-latexdiff $prefix/bin
29 chmod +x $prefix/bin/git-latexdiff
33 description = "View diff on LaTeX source files on the generated PDF files";
34 homepage = "https://gitlab.com/git-latexdiff/git-latexdiff";
36 license = licenses.bsd3; # https://gitlab.com/git-latexdiff/git-latexdiff/issues/9
37 platforms = platforms.unix;