depot/third_party/nixpkgs/pkgs/tools/security/cewl/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

34 lines
750 B
Nix

{ stdenv, lib, fetchFromGitHub, bundlerEnv }:
let
rubyEnv = bundlerEnv {
name = "cewl-ruby-env";
gemdir = ./.;
};
in
stdenv.mkDerivation rec {
pname = "cewl";
version = "5.5.2";
src = fetchFromGitHub {
owner = "digininja";
repo = "CeWL";
rev = version;
sha256 = "sha256-5LTZUr3OMeu1NODhIgBiVqtQnUWYfZTm73q61vT3rXc=";
};
buildInputs = [ rubyEnv.wrappedRuby ];
installPhase = ''
mkdir -p $out/bin
cp *.rb $out/bin/
mv $out/bin/cewl.rb $out/bin/cewl
'';
meta = with lib; {
description = "Custom wordlist generator";
mainProgram = "cewl";
homepage = "https://digi.ninja/projects/cewl.php/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ elohmeier ];
};
}