From f619c4093e564562ce2d48f8cf9b8bcac859009c Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Tue, 16 Jul 2024 15:09:57 +0200 Subject: Minor changes and setting up crypto module --- modules/crypto/.nix/derivation.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 modules/crypto/.nix/derivation.nix (limited to 'modules/crypto/.nix/derivation.nix') diff --git a/modules/crypto/.nix/derivation.nix b/modules/crypto/.nix/derivation.nix new file mode 100644 index 0000000..dd7d36b --- /dev/null +++ b/modules/crypto/.nix/derivation.nix @@ -0,0 +1,34 @@ +{ lib +, stdenv +, scons +, clang-tools +, version +, forstio +}: + +let + +in stdenv.mkDerivation { + pname = "forstio-crypto"; + inherit version; + src = ./..; + + enableParallelBuilding = true; + + nativeBuildInputs = [ + scons + clang-tools + ]; + + buildInputs = [ + forstio.core + ]; + + doCheck = true; + checkPhase = '' + scons test + ./bin/tests + ''; + + outputs = ["out" "dev"]; +} -- cgit v1.2.3