From c77ffc04882f32c2feced7d0f2d8ce3622060230 Mon Sep 17 00:00:00 2001 From: dadada Date: Thu, 31 Dec 2020 01:09:47 +0100 Subject: [PATCH] Fix package --- default.nix | 6 +++--- shell.nix | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 shell.nix 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 { }; +}