diff options
-rw-r--r-- | default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
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 <nixpkgs> {}, ... }: +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 + ''; +} |