Merge pull request #47675 from kalbasit/nixpkgs_update-twa

twa: 1.3.1 -> 1.5.1
This commit is contained in:
Jörg Thalheim 2018-10-02 20:07:03 +01:00 committed by GitHub
commit 1de4ebdf9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,19 +1,29 @@
{ stdenv, fetchFromGitHub, makeWrapper, bash, gawk, curl, netcat, ncurses }: { stdenv
, bash
, curl
, fetchFromGitHub
, gawk
, host
, lib
, makeWrapper
, ncurses
, netcat
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "twa-${version}"; name = "twa-${version}";
version = "1.3.1"; version = "1.5.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "trailofbits"; owner = "trailofbits";
repo = "twa"; repo = "twa";
rev = version; rev = version;
sha256 = "16x9nzsrf10waqmjm423vx44820c6mls7gxc8azrdqnz18vdy1h4"; sha256 = "14pwiq1kza92w2aq358zh5hrxpxpfhg31am03b56g6vlvqzsvib7";
}; };
dontBuild = true; dontBuild = true;
buildInputs = [ makeWrapper bash gawk curl netcat ]; buildInputs = [ makeWrapper bash gawk curl netcat host.dnsutils ];
installPhase = '' installPhase = ''
install -Dm 0755 twa "$out/bin/twa" install -Dm 0755 twa "$out/bin/twa"
@ -22,13 +32,14 @@ stdenv.mkDerivation rec {
install -Dm 0644 README.md "$out/share/doc/twa/README.md" install -Dm 0644 README.md "$out/share/doc/twa/README.md"
wrapProgram "$out/bin/twa" \ wrapProgram "$out/bin/twa" \
--prefix PATH : ${stdenv.lib.makeBinPath [ curl netcat ncurses ]} --prefix PATH : ${stdenv.lib.makeBinPath [ curl netcat ncurses host.dnsutils ]}
''; '';
meta = { meta = with lib; {
description = "A tiny web auditor with strong opinions"; description = "A tiny web auditor with strong opinions";
homepage = https://github.com/trailofbits/twa; homepage = https://github.com/trailofbits/twa;
license = stdenv.lib.licenses.mit; license = licenses.mit;
maintainers = with stdenv.lib.maintainers; [ avaq ]; maintainers = with maintainers; [ avaq ];
platforms = platforms.unix;
}; };
} }