uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
62
pkgs/tools/networking/twa/default.nix
Normal file
62
pkgs/tools/networking/twa/default.nix
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, bash
|
||||
, curl
|
||||
, dnsutils
|
||||
, gawk
|
||||
, jq
|
||||
, ncurses
|
||||
, netcat
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "twa";
|
||||
version = "1.10.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "trailofbits";
|
||||
repo = "twa";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-8c1o03iwStmhjKHmEXIZGyaSOAJRlOuhu0ERjCO5SHg=";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildInputs = [ bash
|
||||
curl
|
||||
dnsutils
|
||||
gawk
|
||||
jq
|
||||
netcat ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
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 : ${lib.makeBinPath [ curl
|
||||
dnsutils
|
||||
gawk
|
||||
jq
|
||||
ncurses
|
||||
netcat ]}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue