mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
41 lines
926 B
Nix
41 lines
926 B
Nix
{ fetchurl, stdenv, autoreconfHook, curl }:
|
|
|
|
let
|
|
major = "2";
|
|
minor = "22";
|
|
in stdenv.mkDerivation rec {
|
|
pname = "dirb";
|
|
version = "${major}.${minor}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/dirb/${version}/dirb${major}${minor}.tar.gz";
|
|
sha256 = "0b7wc2gvgnyp54rxf1n9arn6ymrvdb633v6b3ah138hw4gg8lx7k";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs = [ curl ];
|
|
|
|
unpackPhase = ''
|
|
tar -xf $src
|
|
find . -exec chmod +x "{}" ";"
|
|
export sourceRoot="dirb222"
|
|
'';
|
|
|
|
postPatch = ''
|
|
sed -i "s#/usr#$out#" src/dirb.c
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/dirb/
|
|
cp -r wordlists/ $out/share/dirb/
|
|
'';
|
|
|
|
meta = {
|
|
description = "A web content scanner";
|
|
homepage = http://dirb.sourceforge.net/;
|
|
maintainers = with stdenv.lib.maintainers; [ bennofs ];
|
|
license = with stdenv.lib.licenses; [ gpl2 ];
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|