nixpkgs-suyu/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
733 B
Nix
Raw Normal View History

2021-10-05 19:16:51 +02:00
{ lib
, buildGoModule
, fetchFromGitHub
2022-10-23 07:50:54 +02:00
, stdenv
2021-10-05 19:16:51 +02:00
}:
buildGoModule rec {
pname = "mole";
version = "2.0.0";
src = fetchFromGitHub {
owner = "davrodpin";
repo = pname;
rev = "v${version}";
sha256 = "11q48wfsr35xf2gmvh4biq4hlpba3fh6lrm3p9wni0rl1nxy40i7";
};
vendorSha256 = "1qm328ldkaifj1vsrz025vsa2wqzii9rky00b6wh8jf31f4ljbzv";
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 07:50:54 +02:00
broken = stdenv.isDarwin; # build fails with go > 1.17
2021-10-05 19:16:51 +02:00
};
}