1 { lib, stdenv, fetchFromGitHub, bundlerEnv, ruby }:
10 in stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
15 owner = "urbanadventurer";
18 sha256 = "sha256-HLF55x4C8n8aPO4SI0d6Z9wZe80krtUaGUFmMaYRBIE=";
22 substituteInPlace Makefile \
23 --replace "/usr/local" "$out" \
24 --replace "/usr" "$out"
27 buildInputs = [ gems ];
32 raw=$out/share/whatweb/whatweb
34 cat << EOF >> $out/bin/whatweb
36 exec ${gems}/bin/bundle exec ${ruby}/bin/ruby "$raw" "\$@"
38 chmod +x $out/bin/whatweb
44 description = "Next generation web scanner";
45 mainProgram = "whatweb";
46 homepage = "https://github.com/urbanadventurer/whatweb";
47 license = licenses.gpl2Only;
49 platforms = platforms.unix;