about summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex/nix/dot2pdf.sh
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2016-06-25 14:25:58 +0100
committerzimbatm <zimbatm@zimbatm.com>2016-06-25 14:25:58 +0100
commit4f5918cd2e11082f33b3ce6a1bdcd5f70c68d3c2 (patch)
treebb0b815513dc9a0b5562c9795d725557a845e9d0 /pkgs/tools/typesetting/tex/nix/dot2pdf.sh
parent893ab31159486b260e0ede4ab876ea9cdf935fbc (diff)
downloadnixlib-4f5918cd2e11082f33b3ce6a1bdcd5f70c68d3c2.tar
nixlib-4f5918cd2e11082f33b3ce6a1bdcd5f70c68d3c2.tar.gz
nixlib-4f5918cd2e11082f33b3ce6a1bdcd5f70c68d3c2.tar.bz2
nixlib-4f5918cd2e11082f33b3ce6a1bdcd5f70c68d3c2.tar.lz
nixlib-4f5918cd2e11082f33b3ce6a1bdcd5f70c68d3c2.tar.xz
nixlib-4f5918cd2e11082f33b3ce6a1bdcd5f70c68d3c2.tar.zst
nixlib-4f5918cd2e11082f33b3ce6a1bdcd5f70c68d3c2.zip
Revert "stdenv: introduce baseHash() to replace stripHash()"
Introduced by mistake

This reverts commit e71a5cb87841f0af4a2279517b77a9a07ba394c0.
Diffstat (limited to 'pkgs/tools/typesetting/tex/nix/dot2pdf.sh')
-rw-r--r--pkgs/tools/typesetting/tex/nix/dot2pdf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/typesetting/tex/nix/dot2pdf.sh b/pkgs/tools/typesetting/tex/nix/dot2pdf.sh
index 93ea9099ad1b..c416bf235a14 100644
--- a/pkgs/tools/typesetting/tex/nix/dot2pdf.sh
+++ b/pkgs/tools/typesetting/tex/nix/dot2pdf.sh
@@ -4,7 +4,7 @@ mkdir -p $out
 
 dot2pdf() {
     sourceFile=$1
-    targetName=$out/$(baseHash $sourceFile .dot).pdf
+    targetName=$out/$(basename $(stripHash $sourceFile; echo $strippedName) .dot).pdf
     echo "converting $sourceFile to $targetName..."
     export FONTCONFIG_FILE=$fontsConf
     dot -Tpdf $sourceFile > $targetName