mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
776d4c13ac
This commit updates twa from version 1.8.0 to version 1.9.1, specifying its new 'jq' dependency. It also moves 'makeWrapper' from the build inputs to the native build inputs, as it's not necessary during runtime.
58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{ stdenv
|
|
, bash
|
|
, curl
|
|
, fetchFromGitHub
|
|
, gawk
|
|
, host
|
|
, jq
|
|
, lib
|
|
, makeWrapper
|
|
, ncurses
|
|
, netcat
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "twa";
|
|
version = "1.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trailofbits";
|
|
repo = "twa";
|
|
rev = version;
|
|
sha256 = "1ab3bcyhfach9y15w8ffvqqan2qk8h62n6z8nqbgygi7n1mf6jzx";
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ bash
|
|
curl
|
|
gawk
|
|
host.dnsutils
|
|
jq
|
|
netcat ];
|
|
|
|
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
|
|
host.dnsutils
|
|
jq
|
|
ncurses
|
|
netcat ]}
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|