1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/servers/swego/default.nix

38 lines
906 B
Nix
Raw Normal View History

{ buildGoModule
, fetchFromGitHub
, lib
, stdenv
}:
buildGoModule rec {
pname = "swego";
2021-08-23 05:36:01 +01:00
version = "0.97";
src = fetchFromGitHub {
owner = "nodauf";
repo = "Swego";
rev = "v${version}";
2021-08-23 05:36:01 +01:00
sha256 = "sha256-T4xkjNdOSD0kHLVfwUz1PrFokLmnbzcj/pbV36W+2ZQ=";
};
2021-08-23 05:36:01 +01:00
vendorSha256 = "sha256-GiYJfykcBvIoJ0zvdtT3P+iHmBgBWIeOTaniFysAPHs=";
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;
};
}