summaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-07-09 20:32:34 +0200
committerMartin Fischer <martin@push-f.com>2025-07-14 07:01:33 +0200
commitba6b72b4c7e257b9514ce21b7fbbc469e4c8a849 (patch)
treef70afb535e75d3e1c9d100212b64ad171b088b8b /default.nix
initial commitHEADmaster
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..4b0f9dd
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,18 @@
+{ pkgs ? import <nixpkgs> {} }:
+
+pkgs.buildGoModule {
+ pname = "vdf";
+ version = "0+git";
+ src = ./.;
+ vendorHash = "sha256-ZnjEnksVFER5GiOfn+RabYxu3sNgno7UKYE6SCHAFt8=";
+
+ nativeBuildInputs = [ pkgs.lowdown ];
+
+ postBuild = ''
+ lowdown manual.md -st man -M section=1 > vdf.1
+ '';
+
+ postInstall = ''
+ install -Dm644 vdf.1 $out/share/man/man1/vdf.1
+ '';
+}