2021-02-05 17:12:51 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "swego";
|
2021-02-22 21:28:39 +00:00
|
|
|
version = "0.91";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nodauf";
|
|
|
|
repo = "Swego";
|
|
|
|
rev = "v${version}";
|
2021-02-22 21:28:39 +00:00
|
|
|
sha256 = "sha256-cNsVRYKnzsxYnTkPRfX3ga0eGd09uJ0dyJj1doxfCrg=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
vendorSha256 = "sha256-EPcyhnTis7g0uVl+cJdG7iMbisjh7iuMhpzM/SSOeFI=";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|