parent
7ec99ea7cf
commit
4dc70faa6f
|
@ -1,25 +1,25 @@
|
||||||
{ stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, makeWrapper
|
||||||
, bash
|
, bash
|
||||||
, curl
|
, curl
|
||||||
, fetchFromGitHub
|
, dnsutils
|
||||||
, gawk
|
, gawk
|
||||||
, host
|
|
||||||
, jq
|
, jq
|
||||||
, lib
|
|
||||||
, makeWrapper
|
|
||||||
, ncurses
|
, ncurses
|
||||||
, netcat
|
, netcat
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "twa";
|
pname = "twa";
|
||||||
version = "1.9.1";
|
version = "1.10.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "trailofbits";
|
owner = "trailofbits";
|
||||||
repo = "twa";
|
repo = "twa";
|
||||||
rev = version;
|
rev = "v${version}";
|
||||||
sha256 = "1ab3bcyhfach9y15w8ffvqqan2qk8h62n6z8nqbgygi7n1mf6jzx";
|
hash = "sha256-8c1o03iwStmhjKHmEXIZGyaSOAJRlOuhu0ERjCO5SHg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
@ -28,12 +28,14 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [ bash
|
buildInputs = [ bash
|
||||||
curl
|
curl
|
||||||
|
dnsutils
|
||||||
gawk
|
gawk
|
||||||
host.dnsutils
|
|
||||||
jq
|
jq
|
||||||
netcat ];
|
netcat ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
install -Dm 0755 twa "$out/bin/twa"
|
install -Dm 0755 twa "$out/bin/twa"
|
||||||
install -Dm 0755 tscore "$out/bin/tscore"
|
install -Dm 0755 tscore "$out/bin/tscore"
|
||||||
install -Dm 0644 twa.1 "$out/share/man/man1/twa.1"
|
install -Dm 0644 twa.1 "$out/share/man/man1/twa.1"
|
||||||
|
@ -41,10 +43,13 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
wrapProgram "$out/bin/twa" \
|
wrapProgram "$out/bin/twa" \
|
||||||
--prefix PATH : ${lib.makeBinPath [ curl
|
--prefix PATH : ${lib.makeBinPath [ curl
|
||||||
host.dnsutils
|
dnsutils
|
||||||
jq
|
gawk
|
||||||
ncurses
|
jq
|
||||||
netcat ]}
|
ncurses
|
||||||
|
netcat ]}
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue