python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / typesetting / git-latexdiff / default.nix
blob0bc8b7e073ec2d09d957d98d91d75d3a7015dd85
1 { lib, stdenv, fetchFromGitLab, git, bash }:
3 stdenv.mkDerivation rec {
4   version = "1.3.0";
5   pname = "git-latexdiff";
7   src = fetchFromGitLab {
8     sha256 = "05fnhr1pqvj8l25vi9hdccwfk4mv2f0pfhn05whbdvf66gyl4fs9";
9     rev = "v${version}";
10     repo = "git-latexdiff";
11     owner = "git-latexdiff";
12   };
14   buildInputs = [ git bash ];
16   dontBuild = true;
18   patches = [ ./version-test.patch ];
20   postPatch = ''
21     substituteInPlace git-latexdiff \
22       --replace "@GIT_LATEXDIFF_VERSION@" "v${version}"
23     patchShebangs git-latexdiff
24   '';
26   installPhase = ''
27     mkdir -p $prefix/bin
28     mv git-latexdiff $prefix/bin
29     chmod +x $prefix/bin/git-latexdiff
30   '';
32   meta = with lib; {
33     description = "View diff on LaTeX source files on the generated PDF files";
34     homepage = "https://gitlab.com/git-latexdiff/git-latexdiff";
35     maintainers = [ ];
36     license = licenses.bsd3; # https://gitlab.com/git-latexdiff/git-latexdiff/issues/9
37     platforms = platforms.unix;
38   };