summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/5pkgs')
-rw-r--r--makefu/5pkgs/awesomecfg/default.nix2
-rw-r--r--makefu/5pkgs/awesomecfg/full.cfg15
-rw-r--r--makefu/5pkgs/dex2jar/default.nix48
-rw-r--r--makefu/5pkgs/drozer/default.nix32
-rw-r--r--makefu/5pkgs/jd-gui/default.nix36
5 files changed, 124 insertions, 9 deletions
diff --git a/makefu/5pkgs/awesomecfg/default.nix b/makefu/5pkgs/awesomecfg/default.nix
index b94b6fa54..3c9340692 100644
--- a/makefu/5pkgs/awesomecfg/default.nix
+++ b/makefu/5pkgs/awesomecfg/default.nix
@@ -1,7 +1,7 @@
_:
{
- # TODO: requires in path: amixer, xlock, xbacklight
+ # replace: @amixer@ @xlock@ @xbacklight@
full = ./full.cfg;
kiosk = ./kiosk.lua;
}
diff --git a/makefu/5pkgs/awesomecfg/full.cfg b/makefu/5pkgs/awesomecfg/full.cfg
index 73ff42e9f..993942771 100644
--- a/makefu/5pkgs/awesomecfg/full.cfg
+++ b/makefu/5pkgs/awesomecfg/full.cfg
@@ -365,23 +365,22 @@ globalkeys = awful.util.table.join(
{description = "restore minimized", group = "client"}),
awful.key({ }, "XF86MonBrightnessUp", function ()
- awful.util.spawn("xbacklight -inc 5", false) end),
+ awful.util.spawn("@xbacklight@ -inc 5", false) end),
awful.key({ }, "XF86MonBrightnessDown", function ()
- awful.util.spawn("xbacklight -dec 5", false) end),
+ awful.util.spawn("@xbacklight@ -dec 5", false) end),
awful.key({ }, "XF86AudioRaiseVolume", function ()
- awful.util.spawn("amixer set Master 5%+", false) end),
+ awful.util.spawn("@amixer@ set Master 5%+", false) end),
awful.key({ }, "XF86AudioLowerVolume", function ()
- awful.util.spawn("amixer set Master 5%-", false) end),
+ awful.util.spawn("@amixer@ set Master 5%-", false) end),
awful.key({ }, "XF86AudioMute", function ()
- awful.util.spawn("amixer -q -D default sset Master toggle", false) end),
+ awful.util.spawn("@amixer@ -q -D default sset Master toggle", false) end),
-- Prompt
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
{description = "run prompt", group = "launcher"}),
- -- awful.key({ modkey }, "r", function () awful.util.spawn( "dmenu_run" ) end ),
- awful.key({ modkey,"Control" }, "BackSpace", function () awful.util.spawn("xlock -mode blank") end),
- awful.key({ }, "XF86ScreenSaver", function () awful.util.spawn("xlock -mode blank") end),
+ awful.key({ modkey,"Control" }, "BackSpace", function () awful.util.spawn("@xlock@ -mode blank") end),
+ awful.key({ }, "XF86ScreenSaver", function () awful.util.spawn("@xlock@ -mode blank") end),
awful.key({ modkey }, "x",
function ()
diff --git a/makefu/5pkgs/dex2jar/default.nix b/makefu/5pkgs/dex2jar/default.nix
new file mode 100644
index 000000000..76557ce67
--- /dev/null
+++ b/makefu/5pkgs/dex2jar/default.nix
@@ -0,0 +1,48 @@
+{ stdenv, lib, pkgs, fetchurl, jre, makeWrapper, unzip }:
+stdenv.mkDerivation rec {
+ name = "${packageName}-${version}";
+ packageName = "dex2jar";
+ version = "2.0";
+
+ src = fetchurl {
+ url = "mirror://sourceforge/${packageName}/${name}.zip";
+ sha256 = "1g3mrbyl8sdw1nhp17z23qbfzqpa0w2yxrywgphvd04jdr6yn1vr";
+ };
+
+ nativeBuildInputs = [ makeWrapper unzip ];
+
+ unpackPhase = ''
+ unzip $src
+ cd ${name}
+ '';
+
+ configurePhase = ":";
+
+ buildPhase = ''
+ rm *.bat
+ chmod +x *.sh
+ '';
+
+ installPhase = ''
+ f=$out/lib/dex2jar/
+ bin=$out/bin
+
+ mkdir -p $f $bin
+
+ # fixup path to java
+ sed -i 's#^java#${pkgs.jre}/bin/java#' d2j_invoke.sh
+
+ mv * $f
+ for i in $f/*.sh; do
+ n=$(basename ''${i%.sh})
+ makeWrapper $i $bin/$n
+ done
+ '';
+ fixupPhase = ":";
+
+ meta = {
+ homepage = https://sourceforge.net/projects/dex2jar/;
+ description = "Tools to work with android .dex and java .class files";
+ license = lib.licenses.asl20;
+ };
+}
diff --git a/makefu/5pkgs/drozer/default.nix b/makefu/5pkgs/drozer/default.nix
new file mode 100644
index 000000000..c63f1d0d8
--- /dev/null
+++ b/makefu/5pkgs/drozer/default.nix
@@ -0,0 +1,32 @@
+{ pkgs, lib, fetchFromGitHub, pythonPackages, jre7, jdk7, ... }:
+
+pythonPackages.buildPythonApplication rec {
+ name = "drozer-${version}";
+ version = "2.4.3";
+ buildInputs = [ jdk7 ];
+ propagatedBuildInputs = with pythonPackages; [
+ protobuf
+ pyopenssl
+ pyyaml
+ jre7
+ twisted
+ ];
+ src = fetchFromGitHub {
+ owner = "mwrlabs";
+ repo = "drozer";
+ rev = version;
+ sha256 = "1z437y7rr53dhpi95yc2c3x8g4aix90y7zf52avcdsvhlp4iip3q";
+ };
+ prePatch = ''
+ sed -i 's#^exec java #exec ${jre7}/bin/java #' ./src/drozer/lib/dx
+ patchShebangs ./src/drozer/lib/dx
+ patchelf $(cat $NIX_CC/nix-support/dynamic-linker) ./src/drozer/lib/aapt
+ echo starting build
+ '';
+
+ meta = {
+ homepage = https://github.com/mwrlabs/drozer/;
+ description = "The Leading Security Assessment Framework for Android";
+ license = lib.licenses.bsd2;
+ };
+}
diff --git a/makefu/5pkgs/jd-gui/default.nix b/makefu/5pkgs/jd-gui/default.nix
new file mode 100644
index 000000000..adefd80dd
--- /dev/null
+++ b/makefu/5pkgs/jd-gui/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, lib, pkgs, fetchurl, jre, makeWrapper, unzip }:
+stdenv.mkDerivation rec {
+ name = "${packageName}-${version}";
+ packageName = "jd-gui";
+ version = "1.4.0";
+
+ src = fetchurl {
+ url = "https://github.com/java-decompiler/jd-gui/releases/download/v${version}/${name}.jar";
+ sha256 = "0rvbplkhafb6s9aiwgcq4ffz4bvzyp7q511pd46hx4ahhzfg7lmx";
+ };
+
+ nativeBuildInputs = [ makeWrapper unzip ];
+
+ phases = [ "installPhase" ];
+
+ installPhase = ''
+ f=$out/lib/jd-gui/
+ bin=$out/bin
+ name=$(basename $src)
+ mkdir -p $f $bin
+
+ # fixup path to java
+ cp $src $f
+ cat > $bin/jd-gui <<EOF
+ #!/bin/sh
+ exec ${pkgs.jre}/bin/java -jar $f/$name \$@
+ EOF
+ chmod +x $bin/jd-gui
+ '';
+
+ meta = {
+ homepage = https://github.com/java-decompiler/jd-gui;
+ description = "A standalone Java Decompiler GUI";
+ license = lib.licenses.gpl3;
+ };
+}