diff --git a/default.nix b/default.nix index ee644a0..30cd1da 100644 --- a/default.nix +++ b/default.nix @@ -1,7 +1,7 @@ -{ pkgs ? import {} }: -pkgs.stdenv.mkDerivation rec { +{ stdenv, pandoc }: +stdenv.mkDerivation rec { src = ./src; - nativeBuildInputs = [ pkgs.pandoc ]; + 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}"' {} \; ''; diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..56a40a1 --- /dev/null +++ b/shell.nix @@ -0,0 +1,6 @@ +{ pkgs ? import {} }: + +with pkgs; +{ + this = callPackage ./default.nix { }; +}