summaryrefslogtreecommitdiff
path: root/package.nix
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-08-20 22:29:00 +0200
committerMel <mel@rnrd.eu>2026-08-20 22:29:00 +0200
commit07ac997c9311dbf23b88ab74220fb04e873ef20b (patch)
tree06cb85e4192e6dce9b662a005ec88286bc681548 /package.nix
parent51fad46884f2bebb0cdc6e60b8523a69d797fd77 (diff)
downloadddnnss-07ac997c9311dbf23b88ab74220fb04e873ef20b.tar.zst
ddnnss-07ac997c9311dbf23b88ab74220fb04e873ef20b.zip
Package in Nix flake, package & module
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'package.nix')
-rw-r--r--package.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/package.nix b/package.nix
new file mode 100644
index 0000000..2ab0d95
--- /dev/null
+++ b/package.nix
@@ -0,0 +1,29 @@
+{
+ lib,
+ buildGoModule,
+}:
+
+buildGoModule {
+ pname = "ddnnss";
+ version = "1.0";
+
+ src = lib.fileset.toSource {
+ root = ./.;
+ fileset = lib.fileset.unions [
+ ./go.mod
+ ./main.go
+ ./config.go
+ ./source
+ ./provider
+ ];
+ };
+
+ # stdlib only.
+ vendorHash = null;
+
+ meta = {
+ description = "dynamic domain no-name system service";
+ homepage = "https://git.rnrd.eu/ddnnss";
+ mainProgram = "ddnnss";
+ };
+}