diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2005-06-27 09:44:27 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2005-06-27 09:44:27 +0000 |
commit | 6ea37d567feb494afde71dba01e6adaafa3f8f61 (patch) | |
tree | 5c2cef1f8121551e33b709965d1e11473677d0ac /pkgs/misc/tex | |
parent | 9301297f836493dd9a45dacb52b0e4cbb42b9b79 (diff) | |
download | nixpkgs-6ea37d567feb494afde71dba01e6adaafa3f8f61.tar nixpkgs-6ea37d567feb494afde71dba01e6adaafa3f8f61.tar.gz nixpkgs-6ea37d567feb494afde71dba01e6adaafa3f8f61.tar.bz2 nixpkgs-6ea37d567feb494afde71dba01e6adaafa3f8f61.tar.lz nixpkgs-6ea37d567feb494afde71dba01e6adaafa3f8f61.tar.xz nixpkgs-6ea37d567feb494afde71dba01e6adaafa3f8f61.tar.zst nixpkgs-6ea37d567feb494afde71dba01e6adaafa3f8f61.zip |
* A function for dot animation.
svn path=/nixpkgs/trunk/; revision=3255
Diffstat (limited to 'pkgs/misc/tex')
-rw-r--r-- | pkgs/misc/tex/nix/animatedot.sh | 9 | ||||
-rw-r--r-- | pkgs/misc/tex/nix/default.nix | 8 |
2 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/misc/tex/nix/animatedot.sh b/pkgs/misc/tex/nix/animatedot.sh new file mode 100644 index 00000000000..da4bb00c176 --- /dev/null +++ b/pkgs/misc/tex/nix/animatedot.sh @@ -0,0 +1,9 @@ +. $stdenv/setup + +ensureDir $out + +for i in $(seq 1 $nrFrames); do + echo "producing frame $i..."; + targetName=$out/$(basename $(stripHash $dotGraph; echo $strippedName) .dot)-f-$i.dot + cpp -DFRAME=$i < $dotGraph > $targetName +done diff --git a/pkgs/misc/tex/nix/default.nix b/pkgs/misc/tex/nix/default.nix index 8509562d90c..52345d0f66b 100644 --- a/pkgs/misc/tex/nix/default.nix +++ b/pkgs/misc/tex/nix/default.nix @@ -53,5 +53,11 @@ rec { ]; }; - + + animateDot = dotGraph: nrFrames: pkgs.stdenv.mkDerivation { + name = "dot-frames"; + builder = ./animatedot.sh; + inherit dotGraph nrFrames; + }; + } \ No newline at end of file |