summaryrefslogtreecommitdiff
path: root/pkgs/default.nix
blob: 81360e6515523d7e76f31245c78340524a45c962 (plain)
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
{ nixpkgs ? <nixpkgs>, nixlib ? nixpkgs.lib }:

let
  pkgs = nixpkgs // sentinelPkgs;
  callPackage = nixlib.callPackageWith pkgs;

  sentinelPkgs = with pkgs; {

    bootstrapHook = callPackage (
      { makeSetupHook, autoconf, autoconf-archive, automake, gettext, libtool }:
      makeSetupHook
        { deps = [ autoconf autoconf-archive automake gettext libtool ]; }
        ./build-support/bootstrap.sh
    ) { };

    ## Libraries ##
    logc = callPackage ./libraries/logc { };
    logc-0_1 = logc.overrideAttrs (oldAttrs: rec {
      version = "0.1.0";
      src = fetchgit {
        url = "https://gitlab.nic.cz/turris/logc.git";
        rev = "v" + version;
        sha256 = "1swjzs2249wvnqx2zvxwd7d1z22kd3512xxfvq002cvgbq78ka9a";
      };
      patches = [];
    });
    logc-libs = callPackage ./libraries/logc-libs { };
    base64c = callPackage ./libraries/base64c { };
    paho-mqtt-c = callPackage ./libraries/paho-mqtt-c { };

    ## Sentinel applications ##
    sentinel-certgen = python3Packages.callPackage ./sentinel/certgen { };
    #sentinel-dynfw-client = python3Packages.callPackage ./sentinel/dynfw-client { };
    sentinel-proxy = callPackage ./sentinel/proxy { };
    sentinel-minipot = callPackage ./sentinel/minipot { };
    sentinel-fwlogs = callPackage ./sentinel/fwlogs { };
    sentinel-faillogs = callPackage ./sentinel/faillogs { };
    turris-crypto-wrapper = callPackage ./turris/crypto-wrapper { };

    ## Turris routers specific tools ##
    libatsha204 = callPackage ./turris/libatsha204 { };

  };

in sentinelPkgs