From 160c9da99f9bd4e969476ab9b5c19b02b0449b38 Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 9 May 2018 22:41:29 +0200 Subject: add default.nix --- default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..e307ff9 --- /dev/null +++ b/default.nix @@ -0,0 +1,11 @@ +{ nixpkgs ? import {}, ... }: +with nixpkgs; +stdenv.mkDerivation { + name = "thesauron"; + src = ./thesauron.md; + phases = [ "buildPhase" ]; + buildPhase = '' + mkdir -p $out/share/man/man1 + ${pandoc}/bin/pandoc -s -t man $src -o $out/share/man/man1/thesauron.1 + ''; +} -- cgit v1.2.3