diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-24 16:27:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-24 16:27:17 +0100 |
commit | 5c7e19604efa1e325a34a04a410897bb5dde2efe (patch) | |
tree | c9160f00a0ff91426291490d107362b4d3f031a8 /pkgs/servers/swego | |
parent | 367618236aa1cc175325b4d00bbede180f189f5a (diff) |
swego: init at 0.7 (#108106)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/servers/swego')
-rw-r--r-- | pkgs/servers/swego/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/servers/swego/default.nix b/pkgs/servers/swego/default.nix new file mode 100644 index 0000000000000..4c7c9d7645037 --- /dev/null +++ b/pkgs/servers/swego/default.nix @@ -0,0 +1,37 @@ +{ buildGoModule +, fetchFromGitHub +, lib +, stdenv +}: + +buildGoModule rec { + pname = "swego"; + version = "0.7"; + + src = fetchFromGitHub { + owner = "nodauf"; + repo = "Swego"; + rev = "v${version}"; + sha256 = "14qww4ndvrxmrgkggr8hyvfpz2v7fw0vq6s8715mxa28f8pfi78b"; + }; + + vendorSha256 = "068drahh0aysrm8cr5pgik27jqyk28bsx5130mc2v3xd0xmk8yp1"; + + postInstall = '' + mv $out/bin/src $out/bin/$pname + ''; + + meta = with lib; { + description = "Simple Webserver in Golang"; + longDescription = '' + Swiss army knife Webserver in Golang. Similar to the Python + SimpleHTTPServer but with many features. + ''; + homepage = "https://github.com/nodauf/Swego"; + license = with licenses; [ gpl2Only ]; + maintainers = with maintainers; [ fab ]; + # darwin crashes with: + # src/controllers/parsingArgs.go:130:4: undefined: PrintEmbeddedFiles + broken = stdenv.isDarwin; + }; +} |