summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2018-05-09 22:41:29 +0200
committerlassulus <git@lassul.us>2018-05-09 22:43:05 +0200
commit160c9da99f9bd4e969476ab9b5c19b02b0449b38 (patch)
tree4aad51f0e5d6846623c5900489429d1b076e4f50
parentb62936b9a9e337eedf1813ba2dd8a7b786bba7b1 (diff)
add default.nix
-rw-r--r--default.nix11
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
+ '';
+}