summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/beef/default.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-09-26 15:36:25 +0200
committerlassulus <lassulus@lassul.us>2022-09-26 15:36:25 +0200
commit059a5b48af9f6c21c3c442bb0fc35d2105d3b682 (patch)
tree15de5c35d213d677bc2b294fc411d0f43dc536b2 /makefu/5pkgs/beef/default.nix
parent4d7aacdd1c2a8cc9f6d826cb7e3bb2bc10e36a5e (diff)
parent5b9d7e47c3f1877bcffdf2aafac712451db43d61 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/5pkgs/beef/default.nix')
-rw-r--r--makefu/5pkgs/beef/default.nix45
1 files changed, 0 insertions, 45 deletions
diff --git a/makefu/5pkgs/beef/default.nix b/makefu/5pkgs/beef/default.nix
deleted file mode 100644
index c99577caf..000000000
--- a/makefu/5pkgs/beef/default.nix
+++ /dev/null
@@ -1,45 +0,0 @@
-{ stdenv, lib, bundlerEnv, ruby, fetchFromGitHub, nodejs }:
-# nix-shell --command "bundler install && bundix" in the clone, copy gemset.nix, Gemfile and Gemfile.lock
-let
- gems = bundlerEnv {
- name = "beef-env";
- inherit ruby;
- gemdir = ./.;
- };
-in stdenv.mkDerivation {
- name = "beef-2018-09-21";
- src = fetchFromGitHub {
- owner = "beefproject";
- repo = "beef";
- rev = "d237c95";
- sha256 = "1mykbjwjcbd2a18wycaf35hi3b9rmvqz1jnk2v55sd4c39f0jpf2";
- };
- prePatch = ''
- ls -alhtr
- '';
- patches = [ ./db-in-homedir.patch ];
- buildInputs = [gems ruby];
- installPhase = ''
- mkdir -p $out/{bin,share/beef}
-
- cp -r * $out/share/beef
- # set the default db path, unfortunately setting to /tmp does not seem to work
- # sed -i 's#db_file: .*#db_file: "/tmp/beef.db"#' $out/share/beef/config.yaml
-
- bin=$out/bin/beef
- cat > $bin <<EOF
-#!/bin/sh -e
-PATH=$PATH:${nodejs}/bin/
-exec ${gems}/bin/bundle exec ${ruby}/bin/ruby $out/share/beef/beef "\$@"
-EOF
- chmod +x $bin
- '';
-
- meta = with lib; {
- homepage = https://beefproject.com/;
- description = "The Browser Exploitation Framework";
- platforms = platforms.linux;
- maintainers = with maintainers; [ makefu ];
- };
-
-}