1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/pkgs/tools/networking/twa/default.nix
R. RyanTM f4e5db3349 twa: 1.7.1 -> 1.8.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/twa/versions
2019-03-02 21:47:07 -08:00

46 lines
1 KiB
Nix

{ stdenv
, bash
, curl
, fetchFromGitHub
, gawk
, host
, lib
, makeWrapper
, ncurses
, netcat
}:
stdenv.mkDerivation rec {
name = "twa-${version}";
version = "1.8.0";
src = fetchFromGitHub {
owner = "trailofbits";
repo = "twa";
rev = version;
sha256 = "1xq35xyz5536nwrwmlp1wqa7q9jgh90ly7vdy3a5rvxnksx0b2l5";
};
dontBuild = true;
buildInputs = [ makeWrapper bash gawk curl netcat host.dnsutils ];
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" \
--prefix PATH : ${stdenv.lib.makeBinPath [ curl netcat ncurses host.dnsutils ]}
'';
meta = with lib; {
description = "A tiny web auditor with strong opinions";
homepage = https://github.com/trailofbits/twa;
license = licenses.mit;
maintainers = with maintainers; [ avaq ];
platforms = platforms.unix;
};
}