2020-07-09 16:27:23 +02:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "oneshot";
|
2021-03-30 17:50:53 +02:00
|
|
|
version = "1.4.1";
|
2020-07-09 16:27:23 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raphaelreyna";
|
|
|
|
repo = "oneshot";
|
|
|
|
rev = "v${version}";
|
2021-03-30 17:50:53 +02:00
|
|
|
sha256 = "sha256-UD67xYBb1rvGMSPurte5z2Hcd7+JtXDPbgp3BVBdLuk=";
|
2020-07-09 16:27:23 +02:00
|
|
|
};
|
|
|
|
|
2021-03-30 17:50:53 +02:00
|
|
|
vendorSha256 = "sha256-d+YE618OywSDOWiiULHENFEqzRmFVUFKPuPXnL1JubM=";
|
2020-07-09 16:27:23 +02:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-07-09 16:27:23 +02:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A first-come-first-serve single-fire HTTP server";
|
|
|
|
homepage = "https://github.com/raphaelreyna/oneshot";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ edibopp ];
|
|
|
|
};
|
|
|
|
}
|