2020-07-09 16:27:23 +02:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "oneshot";
|
2020-07-15 16:41:26 +02:00
|
|
|
version = "1.1.3";
|
2020-07-09 16:27:23 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raphaelreyna";
|
|
|
|
repo = "oneshot";
|
|
|
|
rev = "v${version}";
|
2020-07-15 16:41:26 +02:00
|
|
|
sha256 = "14s5cl1g0rgqj7fj699xgz2kmkzym1zpckhv3h33ypsn4dq7gjh2";
|
2020-07-09 16:27:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/raphaelreyna/oneshot";
|
|
|
|
vendorSha256 = "0v53dsj0w959pmvk6v1i7rwlfd2y0vrghxlwkgidw0sf775qpgvy";
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|