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
50
pkgs/tools/security/whatweb/default.nix
Normal file
50
pkgs/tools/security/whatweb/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ lib, stdenv, fetchFromGitHub, bundlerEnv, ruby }:
|
||||
|
||||
let
|
||||
gems = bundlerEnv {
|
||||
name = "whatweb-env";
|
||||
inherit ruby;
|
||||
gemdir = ./.;
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "whatweb";
|
||||
version = "0.5.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "urbanadventurer";
|
||||
repo = "whatweb";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-HLF55x4C8n8aPO4SI0d6Z9wZe80krtUaGUFmMaYRBIE=";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "/usr/local" "$out" \
|
||||
--replace "/usr" "$out"
|
||||
'';
|
||||
|
||||
buildInputs = [ gems ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
raw=$out/share/whatweb/whatweb
|
||||
rm $out/bin/whatweb
|
||||
cat << EOF >> $out/bin/whatweb
|
||||
#!/bin/sh -e
|
||||
exec ${gems}/bin/bundle exec ${ruby}/bin/ruby "$raw" "\$@"
|
||||
EOF
|
||||
chmod +x $out/bin/whatweb
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Next generation web scanner";
|
||||
homepage = "https://github.com/urbanadventurer/whatweb";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ wolfangaukang ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue