From fedcb5e07e0f110de37ca436183b58f81e2dc493 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sat, 5 May 2018 19:11:12 +1000 Subject: [PATCH] nix: fix crypto --- derivation.nix | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/derivation.nix b/derivation.nix index 8ef886b9..f38ab3db 100644 --- a/derivation.nix +++ b/derivation.nix @@ -170,10 +170,13 @@ let installPhase = '' mkdir -p $out/lib + mkdir -p $out/include/d0_blind_id + cp libd0_blind_id.so $out/lib + (cd $src; cp d0.h d0_blind_id.h $out/include/d0_blind_id) - mkdir -p $out/include/d0_blind_id - (cd $src; cp d0_blind_id.h d0.h $out/include/d0_blind_id) + cp libd0_rijndael.so $out/lib + (cd $src; cp d0_rijndael.h $out/include/d0_blind_id) ''; }; @@ -391,6 +394,20 @@ let ''; }; + xonotic-keys = mkDerivation rec { + name = "xonotic-keys-${version}"; + version = VERSION; + + src = srcs."xonotic"; + + phases = [ "installPhase" ]; + + installPhase = '' + mkdir $out + cp $src/*.d0pk $out + ''; + }; + xonotic = mkDerivation rec { name = "xonotic-${version}"; version = VERSION; @@ -447,7 +464,11 @@ let mkdir -p $out cat > $out/init <