depot/third_party/nixpkgs/pkgs/servers/swego/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

44 lines
973 B
Nix

{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "swego";
version = "1.12";
src = fetchFromGitHub {
owner = "nodauf";
repo = "Swego";
rev = "refs/tags/v${version}";
hash = "sha256-roaAzh6Mncu4qtaxEoXk41Mrmz/l7X1+n+Yh5skA65A=";
};
vendorHash = "sha256-mJWJdwbZq042//hM3WWp2rnLC1GebckUnsIopbF858Q=";
postInstall = ''
mv $out/bin/src $out/bin/$pname
'';
ldflags = [
"-w"
"-s"
];
meta = with lib; {
description = "Simple Webserver";
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;
mainProgram = "swego";
};
}