aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorEthel Morgan <eth@ethulhu.co.uk>2020-07-07 21:01:24 +0100
committerEthel Morgan <eth@ethulhu.co.uk>2020-07-07 21:01:24 +0100
commit10f476400508fe147b8746c20913bb02e195146b (patch)
treea3dde79d184c2106bb5382de82ce97fa5b7abd16 /default.nix
parentb659e33bb5798311c3f726c37a041ab2f94f4260 (diff)
add nix-build default.nix
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..ce5eeb6
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,21 @@
+# SPDX-FileCopyrightText: 2020 Ethel Morgan
+#
+# SPDX-License-Identifier: MIT
+
+{ pkgs ? import <nixpkgs> {} }:
+with pkgs;
+
+buildGoModule rec {
+ name = "dispatch-${version}";
+ version = "latest";
+ goPackagePath = "go.eth.moe/dispatch";
+
+ modSha256 = "02ymhmswdgyg1l5p58bdmnkqmidimynp1p39fyyv65j1jjk9gxpp";
+
+ src = ./.;
+
+ meta = {
+ homepage = "https://git.eth.moe/dispatch";
+ licence = stdenv.lib.licenses.mit;
+ };
+}