Echo/default.nix

24 lines
616 B
Nix
Raw Normal View History

2023-12-01 18:51:47 +00:00
{
buildGoModule,
lib,
...
}: let
pname = "echo";
version = "0.1.0";
in
buildGoModule {
inherit pname version;
src = builtins.filterSource (path: type: type != "directory" || baseNameOf path != ".git" || lib.hasSuffix ".nix" path) ./.;
vendorHash = null;
ldflags = ["-s" "-w" "-X main.version=${version}"];
meta = {
description = "Simple & lighweight mock server on localhost for testing.";
homepage = "https://github.com/notAShelf/echo";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [NotAShelf];
mainProgram = pname;
};
}