~kaction/config

b79c8771f467ebbd659691f56e313877d517dd86 — Dmitry Bogatov 6 months ago 6774d2e
Drop universe/universe-key: I switched to git-crypt
3 files changed, 0 insertions(+), 27 deletions(-)

M flake.nix
D universe/universe-key/default.nix
D universe/universe-key/universe.pub
M flake.nix => flake.nix +0 -1
@@ 108,7 108,6 @@
          tempfile = pkgs.pkgsStatic.callPackage ./universe/tempfile { };
          vidir = callPackage ./universe/vidir { };
          uenv = call ./universe/uenv;
          universe-key = call ./universe/universe-key;
          universe = import ./universe { pkgs = self.packages."${system}"; };
        });


D universe/universe-key/default.nix => universe/universe-key/default.nix +0 -25
@@ 1,25 0,0 @@
{ stdenv, enchive, runCommand, requireFile }:
let
  public = ./universe.pub;
  private = requireFile {
    name = "universe.sec";
    sha256 = "4fb0ac712197b23ef4d4ba00f312d3b574f658b4e9cb698bd6755ede62ad5b04";
    message = "This file is required to build universe-full.";
  };
  key = runCommand "universe-key" { inherit public private; } ''
    mkdir $out
    cp $public  $out/key.pub
    cp $private $out/key.sec
  '';
  decrypt = src:
    stdenv.mkDerivation {
      name = "decrypted";
      phases = [ "installPhase" ];
      nativeBuildInputs = [ enchive ];
      installPhase = ''
        enchive -s $key/key.sec extract < $src > $out
      '';

      inherit key src;
    };
in key // { inherit decrypt; }

D universe/universe-key/universe.pub => universe/universe-key/universe.pub +0 -1
@@ 1,1 0,0 @@
�#Y�F򗂚N�6���"eD�y�Ԩ��a�	
\ No newline at end of file