diff options
author | Karel Kočí <cynerd@email.cz> | 2022-04-09 10:17:34 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-04-09 10:17:34 +0200 |
commit | bd9812fab0daea5f0911047a70494dc25089ac79 (patch) | |
tree | a96d9955b6aee8c5dcc435c551a5c2c724dd945e /pkgs/default.nix | |
download | nixsentinel-bd9812fab0daea5f0911047a70494dc25089ac79.tar.gz nixsentinel-bd9812fab0daea5f0911047a70494dc25089ac79.tar.bz2 nixsentinel-bd9812fab0daea5f0911047a70494dc25089ac79.zip |
This was taken from nixturris.
Diffstat (limited to 'pkgs/default.nix')
-rw-r--r-- | pkgs/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix new file mode 100644 index 0000000..81360e6 --- /dev/null +++ b/pkgs/default.nix @@ -0,0 +1,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 |