Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 778 B view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 bundlerEnv, 6 bundlerUpdateScript, 7}: 8 9let 10 rubyEnv = bundlerEnv { 11 name = "cewl-ruby-env"; 12 gemdir = ./.; 13 }; 14in 15stdenv.mkDerivation rec { 16 pname = "cewl"; 17 version = "5.5.2"; 18 src = fetchFromGitHub { 19 owner = "digininja"; 20 repo = "CeWL"; 21 tag = version; 22 hash = "sha256-5LTZUr3OMeu1NODhIgBiVqtQnUWYfZTm73q61vT3rXc="; 23 }; 24 25 buildInputs = [ rubyEnv.wrappedRuby ]; 26 27 installPhase = '' 28 mkdir -p $out/bin 29 cp *.rb $out/bin/ 30 mv $out/bin/cewl.rb $out/bin/cewl 31 ''; 32 33 passthru.updateScript = bundlerUpdateScript "cewl"; 34 35 meta = { 36 description = "Custom wordlist generator"; 37 mainProgram = "cewl"; 38 homepage = "https://digi.ninja/projects/cewl.php/"; 39 license = lib.licenses.gpl3Plus; 40 }; 41}