diff options
author | Ethel Morgan <eth@ethulhu.co.uk> | 2020-07-07 21:01:24 +0100 |
---|---|---|
committer | Ethel Morgan <eth@ethulhu.co.uk> | 2020-07-07 21:01:24 +0100 |
commit | 10f476400508fe147b8746c20913bb02e195146b (patch) | |
tree | a3dde79d184c2106bb5382de82ce97fa5b7abd16 | |
parent | b659e33bb5798311c3f726c37a041ab2f94f4260 (diff) |
add nix-build default.nix
-rw-r--r-- | default.nix | 21 | ||||
l--------- | result | 1 |
2 files changed, 22 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; + }; +} @@ -0,0 +1 @@ +/nix/store/z9fwlc9w5307mxf6hh98wi76z649lxv2-dispatch-latest
\ No newline at end of file |