depot/third_party/nixpkgs/pkgs/by-name/sn/snicat/package.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

37 lines
745 B
Nix

{ lib
, buildGoPackage
, fetchFromGitHub
}:
buildGoPackage rec {
pname = "snicat";
version = "0.0.1";
src = fetchFromGitHub {
owner = "CTFd";
repo = "snicat";
rev = version;
hash = "sha256-fFlTBOz127le2Y7F9KKhbcldcyFEpAU5QiJ4VCAPs9Y=";
};
goPackagePath = "github.com/CTFd/snicat";
goDeps = ./deps.nix;
ldflags = [ "-s" "-w" "-X main.version=v${version}" ];
installPhase = ''
runHook preInstall
install -Dm555 go/bin/snicat $out/bin/sc
runHook postInstall
'';
meta = with lib; {
description = "TLS & SNI aware netcat";
homepage = "https://github.com/CTFd/snicat";
license = licenses.asl20;
mainProgram = "sc";
maintainers = with maintainers; [ felixalbrigtsen ];
};
}