-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
62 lines (61 loc) · 1.85 KB
/
flake.nix
File metadata and controls
62 lines (61 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
description = "BrowsEm";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
npm-package = {
url = "github:netbrain/npm-package";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
};
outputs = { self, nixpkgs, flake-utils, rust-overlay, npm-package }:
flake-utils.lib.eachDefaultSystem
(system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
py = pkgs.python3.withPackages (python-pkgs: with python-pkgs; [
pandas
tqdm
pyshark
psutil
jupyterlab
jupyterlab
ipython
matplotlib
numpy
scapy
dpkt
ping3
]);
chrome-har-capturer = (npm-package.lib.${system}.npmPackage {
name = "chrome-har-capturer";
});
go-task = pkgs.go-task.overrideAttrs (old: {
src = pkgs.fetchFromGitHub {
owner = "holzingk";
repo = "task";
rev = "28424fe77cf6d8b30e4046aa72e8926751ed7c13";
sha256 = "sha256-T6s0U8GIBGz7LpwZQbLscBYPKCB6ysDbzhTYUN18rYc=";
};
});
nativeBuildInputs = with pkgs; [rust-bin.stable.latest.default openssl.dev pkg-config ];
buildInputs = with pkgs; [ openssl curlHTTP3.dev go-task gzip bat nodejs chrome-har-capturer py chromium killall tshark iproute2 jq tmux gdb ];
in with pkgs;
{
devShells.default = mkShell {
inherit buildInputs nativeBuildInputs;
};
}
);
}