From 10f476400508fe147b8746c20913bb02e195146b Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Tue, 7 Jul 2020 21:01:24 +0100 Subject: add nix-build default.nix --- default.nix | 21 +++++++++++++++++++++ result | 1 + 2 files changed, 22 insertions(+) create mode 100644 default.nix create mode 120000 result 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 {} }: +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; + }; +} diff --git a/result b/result new file mode 120000 index 0000000..ed6bf93 --- /dev/null +++ b/result @@ -0,0 +1 @@ +/nix/store/z9fwlc9w5307mxf6hh98wi76z649lxv2-dispatch-latest \ No newline at end of file -- cgit v1.2.3