blob: 83416af317727484b4b779c97a01a3cd5219083a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ buildGoModule
, fetchFromGitHub
, lib
, stdenv
}:
buildGoModule rec {
pname = "swego";
version = "0.91";
src = fetchFromGitHub {
owner = "nodauf";
repo = "Swego";
rev = "v${version}";
sha256 = "sha256-cNsVRYKnzsxYnTkPRfX3ga0eGd09uJ0dyJj1doxfCrg=";
};
vendorSha256 = "sha256-EPcyhnTis7g0uVl+cJdG7iMbisjh7iuMhpzM/SSOeFI=";
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;
};
}
|