Fix package
This commit is contained in:
parent
cb85ed0059
commit
c77ffc0488
2 changed files with 9 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs ? import <nixpkgs> {} }:
|
{ stdenv, pandoc }:
|
||||||
pkgs.stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
src = ./src;
|
src = ./src;
|
||||||
nativeBuildInputs = [ pkgs.pandoc ];
|
nativeBuildInputs = [ pandoc ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
find . -iname "*.md" -type f -exec sh -c 'pandoc -s -f commonmark -t html --template template.html -o "''${0%.md}.html" "''${0}"' {} \;
|
find . -iname "*.md" -type f -exec sh -c 'pandoc -s -f commonmark -t html --template template.html -o "''${0%.md}.html" "''${0}"' {} \;
|
||||||
'';
|
'';
|
||||||
|
|
6
shell.nix
Normal file
6
shell.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
|
||||||
|
with pkgs;
|
||||||
|
{
|
||||||
|
this = callPackage ./default.nix { };
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue