forked from WithSecureLabs/chainsaw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
49 lines (39 loc) · 1.22 KB
/
flake.nix
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
{
description = "Rapidly Search and Hunt through Windows Forensic Artefacts";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = inputs: let
systems = ["x86_64-linux"];
genSystems = inputs.nixpkgs.lib.genAttrs systems;
in {
devShells = genSystems (system: let
pkgs = inputs.nixpkgs.legacyPackages.${system};
in {
default = pkgs.mkShell {
inputsFrom = [inputs.self.packages.${system}.chainsaw];
packages = with pkgs; [
cargo
pre-commit
rust-analyzer
rustc
rustfmt
vscode-extensions.llvm-org.lldb-vscode
inputs.self.packages.${system}.chainsaw
];
RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc;
};
});
packages = genSystems (system: let
pkgs = inputs.nixpkgs.legacyPackages.${system};
in {
chainsaw = pkgs.rustPlatform.buildRustPackage {
pname = "chainsaw";
version = "2.10.1";
src = ./.;
doCheck = false;
cargoLock.lockFile = ./Cargo.lock;
};
default = inputs.self.packages.${system}.chainsaw;
});
formatter = genSystems (system: inputs.nixpkgs.legacyPackages.${system}.alejandra);
};
}