Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions analysis.nix

This file was deleted.

26 changes: 26 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

133 changes: 133 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
description = "Binary Analysis Next Generation (BANG)";

inputs.nixpkgs.url = "nixpkgs/nixos-unstable";

outputs = { self, nixpkgs }:

let
supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
nixpkgsFor = forAllSystems (system: import nixpkgs {
inherit system;
config.allowUnfree = true;
});
in {
devShells = forAllSystems (system:
with nixpkgsFor.${system};

{
default =
let
my-python = pkgs.python3.withPackages (p: with p; [
brotli
deepdiff
defusedxml
kaitaistruct
leb128
lz4
mutf8
python-lzo
parameterized
pdfminer
pefile
pillow
protobuf
pyaxmlparser
pytest
python-snappy
pyyaml
telfhash
tlsh
zstd
]);
in pkgs.mkShell {
buildInputs = with pkgs; [
binutils
cabextract
e2tools
innoextract
libxml2
lz4
mailcap
ncompress
openjdk8
openssl
my-python
protobuf
qemu
rzip
sasquatch
squashfsTools
unrar
unshield
utillinux
zchunk
zstd
];
};

analysis =
let
my-python = pkgs.python39.withPackages (p: with p; [
cve-bin-tool
deepdiff
defusedxml
dockerfile-parse
elasticsearch
icalendar
kaitaistruct
parameterized
pdfminer
psycopg2
pytest
pyyaml
tinycss2
tlsh
yara-python
]);
in pkgs.mkShell {
buildInputs = with pkgs; [
apkid
binutils
libxml2
openjdk8
openssl
my-python
qemu
utillinux
];
};

maintenance =
let
my-python = pkgs.python39.withPackages (p: with p; [
click
cxxfilt
defusedxml
packageurl-python
psycopg2
pytest
python-ctags3
pyyaml
requests
telfhash
tlsh
woodblock
]);
in pkgs.mkShell {
buildInputs = with pkgs; [
gettext
my-python
universal-ctags
yara
];
};

});

devShell = forAllSystems (system: self.devShells.${system}.default);

};

}
31 changes: 0 additions & 31 deletions maintenance.nix

This file was deleted.

14 changes: 0 additions & 14 deletions nix/sources.json

This file was deleted.

Loading