From 001b0016acfeaeff22c2cef42ae72a1fa1fec0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 13 Dec 2021 17:17:01 +0100 Subject: Add Sentinel packages and needed libraries --- default.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 default.nix (limited to 'default.nix') diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..576da5b --- /dev/null +++ b/default.nix @@ -0,0 +1,31 @@ +{ nixpkgs ? import {}}: + +let + pkgs = nixpkgs // turrispkgs; + callPackage = pkgs.lib.callPackageWith pkgs; + + turrispkgs = with pkgs; { + bootstrapHook = callPackage ( + { makeSetupHook, autoconf, autoconf-archive, automake, gettext, libtool }: + makeSetupHook + { deps = [ autoconf autoconf-archive automake gettext libtool ]; } + ./build-support/bootstrap.sh + ) { }; + + logc = callPackage ./libraries/logc { }; + logc-0_1 = callPackage ./libraries/logc { + pkgversion = "0.1.0"; + pkgsha256 = "1swjzs2249wvnqx2zvxwd7d1z22kd3512xxfvq002cvgbq78ka9a"; + }; + logc-libs = callPackage ./libraries/logc-libs { }; + base64c = callPackage ./libraries/base64c { }; + paho-mqtt-c = callPackage ./libraries/paho-mqtt-c { }; + + sentinel-proxy = callPackage ./sentinel/proxy { }; + sentinel-minipot = callPackage ./sentinel/minipot { }; + sentinel-fwlogs = callPackage ./sentinel/fwlogs { }; + sentinel-faillogs = callPackage ./sentinel/faillogs { }; + + }; + +in turrispkgs -- cgit v1.2.3