Skip to content

Commit dd67878

Browse files
authored
Fix svg (#414)
1 parent e2f66fe commit dd67878

File tree

5 files changed

+4
-12
lines changed

5 files changed

+4
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Painless dependencies for [Nix] projects. Read more in the [Getting started](#getting-started) section below.
77

88
<p align="center">
9-
<img src="https://niv.nmattia.com/niv.svg">
9+
<img src="./niv.svg">
1010
</p>
1111

1212

README.tpl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Painless dependencies for [Nix] projects. Read more in the [Getting started](#getting-started) section below.
77

88
<p align="center">
9-
<img src="https://niv.nmattia.com/niv.svg">
9+
<img src="./niv.svg">
1010
</p>
1111

1212

default.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ rec
268268
}
269269
270270
expected_hash=$(${pkgs.nix}/bin/nix-hash ${niv-svg-gen})
271-
actual_hash=$(grep -oP 'id="\K[^"]+' ${./site/niv.svg} -m 1)
271+
actual_hash=$(grep -oP 'id="\K[^"]+' ${./niv.svg} -m 1)
272272
273273
echo "expected $expected_hash"
274274
echo "actual $actual_hash"
@@ -293,12 +293,11 @@ rec
293293
#!${pkgs.stdenv.shell}
294294
set -euo pipefail
295295
export PATH=${haskellPackages.niv}/bin:${pkgs.nix}/bin:$PATH
296-
site=$PWD/site
297296
298297
pushd $(mktemp -d)
299298
${pkgs.termtosvg}/bin/termtosvg \
300299
-g 82x26 -M 2000 -m 2000 -t gjm8 \
301-
-c '${niv-svg-cmds}' $site/niv.svg
300+
-c '${niv-svg-cmds}' $PWD/niv.svg
302301
303302
echo done rendering
304303
popd

site/niv.svg renamed to niv.svg

File renamed without changes.

site/index.html

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)