uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
17
pkgs/tools/security/metasploit/update.sh
Executable file
17
pkgs/tools/security/metasploit/update.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl bundix git libiconv libpcap libxml2 libxslt pkg-config postgresql ruby.devEnv sqlite xmlstarlet nix-update
|
||||
|
||||
set -eu -o pipefail
|
||||
cd "$(dirname "$(readlink -f "$0")")"
|
||||
|
||||
latest=$(curl https://github.com/rapid7/metasploit-framework/tags.atom | xmlstarlet sel -N atom="http://www.w3.org/2005/Atom" -t -m /atom:feed/atom:entry -v atom:title -n | head -n1)
|
||||
echo "Updating metasploit to $latest"
|
||||
|
||||
sed -i "s#refs/tags/.*#refs/tags/$latest\"#" Gemfile
|
||||
|
||||
bundler install
|
||||
bundix
|
||||
sed -i '/[ ]*dependencies =/d' gemset.nix
|
||||
|
||||
cd "../../../../"
|
||||
nix-update metasploit --version "$latest"
|
||||
Loading…
Add table
Add a link
Reference in a new issue