1 { lib, fetchFromGitHub, buildGoModule, testers, oneshot }:
7 src = fetchFromGitHub {
8 owner = "forestnode-io";
11 hash = "sha256-eEVjdFHZyk2bSVqrMJIsgZvvLoDOira8zTzX9oDNtHM=";
14 vendorHash = "sha256-TktSQMIHYXF9eyY6jyfE31WLXEq7VZU3qnVIMGjMMcA=";
16 subPackages = [ "cmd" ];
26 "-X github.com/forestnode-io/oneshot/v2/pkg/version.Version=${version}"
27 "-X github.com/forestnode-io/oneshot/v2/pkg/version.APIVersion=v1.0.0"
33 install -D -m 555 -T $GOPATH/bin/cmd $out/bin/oneshot
38 passthru.tests.version = testers.testVersion {
40 command = "oneshot version";
44 description = "First-come first-served single-fire HTTP server";
45 homepage = "https://www.oneshot.uno/";
46 license = licenses.mit;
47 maintainers = with maintainers; [ milibopp ];
48 mainProgram = "oneshot";