Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 49 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitLab, 5 git, 6 bash, 7}: 8 9stdenv.mkDerivation rec { 10 version = "1.6.0"; 11 pname = "git-latexdiff"; 12 13 src = fetchFromGitLab { 14 hash = "sha256-DMoGEbCBuqUGjbna3yDpD4WNTikPudYRD4Wy1pPG2mw="; 15 rev = version; 16 repo = "git-latexdiff"; 17 owner = "git-latexdiff"; 18 }; 19 20 buildInputs = [ 21 git 22 bash 23 ]; 24 25 dontBuild = true; 26 27 patches = [ ./version-test.patch ]; 28 29 postPatch = '' 30 substituteInPlace git-latexdiff \ 31 --replace "@GIT_LATEXDIFF_VERSION@" "v${version}" 32 patchShebangs git-latexdiff 33 ''; 34 35 installPhase = '' 36 mkdir -p $prefix/bin 37 mv git-latexdiff $prefix/bin 38 chmod +x $prefix/bin/git-latexdiff 39 ''; 40 41 meta = with lib; { 42 description = "View diff on LaTeX source files on the generated PDF files"; 43 homepage = "https://gitlab.com/git-latexdiff/git-latexdiff"; 44 maintainers = [ ]; 45 license = licenses.bsd3; # https://gitlab.com/git-latexdiff/git-latexdiff/issues/9 46 platforms = platforms.unix; 47 mainProgram = "git-latexdiff"; 48 }; 49}