-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
70 lines (65 loc) · 2.26 KB
/
default.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{ pkgs ? import <nixpkgs> { system = builtins.currentSystem; }
, lib ? pkgs.lib
, fetchFromGitHub ? pkgs.fetchFromGitHub
, fetchpatch ? pkgs.fetchpatch
, fetchPypi ? pkgs.fetchPypi
, buildGoModule ? pkgs.buildGoModule
, python2 ? pkgs.python2
, python3 ? pkgs.python3
, stdenv ? pkgs.stdenv
}:
let
analyzeMFT = import ./analyzeMFT/package.nix { inherit lib fetchFromGitHub python3; };
bmc-tools = import ./bmc-tools/package.nix { inherit lib fetchFromGitHub python3; };
docker-explorer = import ./docker-explorer/package.nix { inherit lib fetchFromGitHub python3; };
hindsight = import ./hindsight/package.nix { inherit lib fetchFromGitHub python3; };
Mac-Locations-Scraper = import ./Mac-Locations-Scraper/package.nix { inherit lib fetchFromGitHub python2; };
PsqlHunter = import ./PsqlHunter/package.nix { inherit lib fetchFromGitHub python3; };
recuperabit = import ./recuperabit/package.nix { inherit lib fetchFromGitHub python3; };
regrippy = import ./regrippy/package.nix { inherit lib fetchFromGitHub python3; };
timeliner = import ./timeliner/package.nix { inherit lib fetchFromGitHub buildGoModule; };
usnparser = import ./usnparser/package.nix { inherit lib fetchPypi python3; };
yarGen = import ./yarGen/package.nix { inherit lib fetchFromGitHub fetchpatch python3; };
defaultPackage = stdenv.mkDerivation {
name = "all-packages";
dontUnpack = true;
buildInputs = [
analyzeMFT
bmc-tools
docker-explorer
hindsight
Mac-Locations-Scraper
PsqlHunter
recuperabit
regrippy
timeliner
usnparser
yarGen
];
};
packageToBuild = pkgName:
let
pkg = import ./${pkgName}/package.nix { inherit lib fetchFromGitHub fetchpatch fetchPypi buildGoModule python2 python3; };
in
stdenv.mkDerivation {
name = pkgName;
buildInputs = [ pkg ];
};
in
{
packages = {
analyzeMFT = analyzeMFT;
bmc-tools = bmc-tools;
docker-explorer = docker-explorer;
hindsight = hindsight;
Mac-Locations-Scraper = Mac-Locations-Scraper;
PsqlHunter = PsqlHunter;
recuperabit = recuperabit;
regrippy = regrippy;
timeliner = timeliner;
usnparser = usnparser;
yarGen = yarGen;
};
defaultPackage = defaultPackage;
packageToBuild = packageToBuild;
}