nixpkgs/pkgs/servers/swego/default.nix

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

39 lines
930 B
Nix
Raw Normal View History

{ buildGoModule
, fetchFromGitHub
, lib
, stdenv
}:
buildGoModule rec {
pname = "swego";
2023-09-13 06:13:23 +00:00
version = "1.0";
src = fetchFromGitHub {
owner = "nodauf";
repo = "Swego";
rev = "v${version}";
2023-09-13 06:13:23 +00:00
sha256 = "sha256-OlaNDXKaIim5n0niqYIpRliVo7lse76vNxPKF6B6yF0=";
};
2023-09-13 06:13:23 +00:00
vendorHash = "sha256-N4HDngQFNCzQ74W52R0khetN6+J7npvBC/bYZBAgLB4=";
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;
2023-11-23 21:09:35 +00:00
mainProgram = "swego";
};
}