Fix package

This commit is contained in:
Tim Schubert 2020-12-31 01:09:47 +01:00
parent cb85ed0059
commit c77ffc0488
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 9 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{ pkgs ? import <nixpkgs> {} }:
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}"' {} \;
'';

6
shell.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
{
this = callPackage ./default.nix { };
}