nixpkgs/pkgs/tools/networking/mole/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
727 B
Nix
Raw Normal View History

2021-10-05 17:16:51 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
2022-10-23 05:50:54 +00:00
, stdenv
2021-10-05 17:16:51 +00:00
}:
buildGoModule rec {
pname = "mole";
version = "2.0.0";
src = fetchFromGitHub {
owner = "davrodpin";
repo = pname;
rev = "v${version}";
2023-09-21 14:23:40 +00:00
hash = "sha256-JwLiuw00g2h5uqNmaqAbal0KCY6LwF2fcL2MrB1HBIc=";
2021-10-05 17:16:51 +00:00
};
2023-09-21 14:23:40 +00:00
vendorHash = "sha256-+y9JiQvDSQS5WQD4mVOMH3Oh9C4C/Kx3kC6q2SgSo+I=";
2021-10-05 17:16:51 +00:00
ldflags = [
"-s"
"-w"
"-X=github.com/davrodpin/mole/cmd.version=${version}"
];
meta = with lib; {
description = "CLI application to create SSH tunnels";
homepage = "https://github.com/davrodpin/mole";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
2022-10-23 05:50:54 +00:00
broken = stdenv.isDarwin; # build fails with go > 1.17
2021-10-05 17:16:51 +00:00
};
}