1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/tools/networking/twa/default.nix

46 lines
1 KiB
Nix
Raw Normal View History

2018-10-02 19:10:58 +01:00
{ stdenv
, bash
, curl
, fetchFromGitHub
, gawk
, host
, lib
2018-10-02 19:10:58 +01:00
, makeWrapper
, ncurses
, netcat
}:
2018-09-21 12:16:36 +01:00
stdenv.mkDerivation rec {
name = "twa-${version}";
version = "1.6.2";
2018-09-21 12:16:36 +01:00
src = fetchFromGitHub {
owner = "trailofbits";
repo = "twa";
rev = version;
sha256 = "0b3wg6ia4dbf47baz3c6jinsi31n8iq7jrlsq86jr2ncggq7hlhj";
2018-09-21 12:16:36 +01:00
};
dontBuild = true;
2018-10-02 19:10:58 +01:00
buildInputs = [ makeWrapper bash gawk curl netcat host.dnsutils ];
2018-09-21 12:16:36 +01:00
installPhase = ''
install -Dm 0755 twa "$out/bin/twa"
install -Dm 0755 tscore "$out/bin/tscore"
install -Dm 0644 twa.1 "$out/share/man/man1/twa.1"
install -Dm 0644 README.md "$out/share/doc/twa/README.md"
wrapProgram "$out/bin/twa" \
2018-10-02 19:10:58 +01:00
--prefix PATH : ${stdenv.lib.makeBinPath [ curl netcat ncurses host.dnsutils ]}
2018-09-21 12:16:36 +01:00
'';
meta = with lib; {
2018-09-21 12:16:36 +01:00
description = "A tiny web auditor with strong opinions";
homepage = https://github.com/trailofbits/twa;
license = licenses.mit;
maintainers = with maintainers; [ avaq ];
platforms = platforms.unix;
2018-09-21 12:16:36 +01:00
};
}