Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "swego";
|
|
version = "1.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nodauf";
|
|
repo = "Swego";
|
|
tag = "v${version}";
|
|
hash = "sha256-28PU7jAVnWfRbFmTE2pmwJO1Zi+ceyFrzY5MiRt+91Y=";
|
|
};
|
|
|
|
vendorHash = "sha256-w2OhZq7vaVDVoRfnWPH0bFO85yGTFcO6KpDo5ulTifo=";
|
|
|
|
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";
|
|
changelog = "https://github.com/nodauf/Swego/releases/tag/${src.tag}";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
# darwin crashes with:
|
|
# src/controllers/parsingArgs.go:130:4: undefined: PrintEmbeddedFiles
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
mainProgram = "swego";
|
|
};
|
|
}
|