nixpkgs/pkgs/servers/swego/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
973 B
Nix
Raw Normal View History

2024-05-23 10:01:46 +00:00
{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "swego";
2024-06-13 15:18:24 +00:00
version = "1.12";
src = fetchFromGitHub {
owner = "nodauf";
repo = "Swego";
2024-05-23 10:01:31 +00:00
rev = "refs/tags/v${version}";
2024-06-13 15:18:24 +00:00
hash = "sha256-roaAzh6Mncu4qtaxEoXk41Mrmz/l7X1+n+Yh5skA65A=";
};
2024-05-23 06:07:37 +00:00
vendorHash = "sha256-mJWJdwbZq042//hM3WWp2rnLC1GebckUnsIopbF858Q=";
postInstall = ''
mv $out/bin/src $out/bin/$pname
'';
2024-05-23 10:01:31 +00:00
ldflags = [
"-w"
"-s"
];
meta = with lib; {
2024-05-23 10:01:31 +00:00
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;
2023-11-23 21:09:35 +00:00
mainProgram = "swego";
};
}