Extract build script
This commit is contained in:
parent
c77ffc0488
commit
643916762e
2 changed files with 6 additions and 3 deletions
3
build.sh
Executable file
3
build.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
find . -iname "*.md" -type f -exec sh -c 'pandoc -s -f commonmark -t html --template src/template.html -o "''${0%.md}.html" "''${0}"' {} \;
|
|
@ -1,13 +1,13 @@
|
|||
{ stdenv, pandoc }:
|
||||
stdenv.mkDerivation rec {
|
||||
src = ./src;
|
||||
src = ./.;
|
||||
nativeBuildInputs = [ pandoc ];
|
||||
buildPhase = ''
|
||||
find . -iname "*.md" -type f -exec sh -c 'pandoc -s -f commonmark -t html --template template.html -o "''${0%.md}.html" "''${0}"' {} \;
|
||||
./build.sh
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r . $out/
|
||||
cp -r src/* $out/
|
||||
'';
|
||||
name = "dadada.li";
|
||||
version = "0.1";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue