1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 01:46:30 +00:00
nixpkgs/pkgs/tools/networking/termshark/default.nix
Jörg Thalheim 066db11215
Revert "Merge pull request #83099 from marsam/fix-buildGoModule-packages-darwin"
This reverts commit 4e6bf03504, reversing
changes made to afd997aab6.

Instead we propagate those frameworks from the compiler again
2020-03-27 07:33:21 +00:00

35 lines
901 B
Nix

{ stdenv, fetchFromGitHub, makeWrapper, buildGoModule, wireshark-cli }:
buildGoModule rec {
pname = "termshark";
version = "2.1.1";
src = fetchFromGitHub {
owner = "gcla";
repo = "termshark";
rev = "v${version}";
sha256 = "14h548apg3zvjvq6yy22hpw2ziy5vmwyr04vv59ls1mjg4qf2v8b";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ wireshark-cli ];
modSha256 = "0lp4gky76di7as78421p3lsirfr7mic3z204ildvj6gf6d15svpr";
postFixup = ''
wrapProgram $out/bin/termshark --prefix PATH : ${stdenv.lib.makeBinPath [ wireshark-cli ]}
'';
buildFlagsArray = ''
-ldflags=
-X github.com/gcla/termshark.Version=${version}
'';
meta = with stdenv.lib; {
homepage = https://termshark.io/;
description = "A terminal UI for wireshark-cli, inspired by Wireshark";
license = licenses.mit;
maintainers = with maintainers; [ winpat elseym ];
};
}