Merge pull request #47675 from kalbasit/nixpkgs_update-twa
twa: 1.3.1 -> 1.5.1
This commit is contained in:
commit
1de4ebdf9a
@ -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 {
|
||||
name = "twa-${version}";
|
||||
version = "1.3.1";
|
||||
version = "1.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "trailofbits";
|
||||
repo = "twa";
|
||||
rev = version;
|
||||
sha256 = "16x9nzsrf10waqmjm423vx44820c6mls7gxc8azrdqnz18vdy1h4";
|
||||
sha256 = "14pwiq1kza92w2aq358zh5hrxpxpfhg31am03b56g6vlvqzsvib7";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
buildInputs = [ makeWrapper bash gawk curl netcat ];
|
||||
buildInputs = [ makeWrapper bash gawk curl netcat host.dnsutils ];
|
||||
|
||||
installPhase = ''
|
||||
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"
|
||||
|
||||
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";
|
||||
homepage = https://github.com/trailofbits/twa;
|
||||
license = stdenv.lib.licenses.mit;
|
||||
maintainers = with stdenv.lib.maintainers; [ avaq ];
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ avaq ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user