blob: b33f05d34a7870ac06c91e1583f49ec1b6cca603 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{lib, stdenv, fetchurl, unzip}:
stdenv.mkDerivation {
name = "pgf-3.00";
src = fetchurl {
url = "mirror://sourceforge/project/pgf/pgf/version%203.0.0/pgf_3.0.0.tds.zip";
sha256 = "0kj769hyp4z2zmdv3f8xv443wcfqn5nkkbzxzqgfxjizlz81aav7";
};
nativeBuildInputs = [ unzip ];
# Multiple files problem
unpackPhase = ''
mkdir pgf
cd pgf
unzip $src
'';
dontBuild = true;
installPhase = "
mkdir -p $out/share/texmf-nix
cp -prd * $out/share/texmf-nix
";
meta = with lib; {
branch = "3";
platforms = platforms.unix;
license = licenses.gpl2;
};
}
|