forked from WithSecureLabs/deject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
38 lines (33 loc) · 840 Bytes
/
flake.nix
File metadata and controls
38 lines (33 loc) · 840 Bytes
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
{
description = "Memory dump and Sample analysis tool";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = inputs: let
inherit (inputs.nixpkgs) lib;
supportedSystems = ["x86_64-linux"];
genSystems = lib.genAttrs supportedSystems;
pkgsFor = system:
import inputs.nixpkgs {
inherit system;
overlays = [(import ./nix/overlays)];
};
in {
packages = genSystems (system: let
pkgs = pkgsFor system;
in rec {
default = pkgs.python311Packages.callPackage ./nix {};
deject = default;
});
devShells = genSystems (system: let
pkgs = pkgsFor system;
in {
default = pkgs.mkShell {
packages = with pkgs; [
python3
inputs.self.packages.${system}.default
];
};
});
};
}