nixpkgs/pkgs/tools/security/cewl/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

35 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 ];
};
}