Make package-runtime publication verify generated distribution
This commit is contained in:
@@ -14,23 +14,36 @@
|
||||
outputs = inputs@{ nixpkgs, flake-utils, quixosNixHelpers, ... }:
|
||||
let
|
||||
quixosHelpers = import "${quixosNixHelpers}/quixos-package-helpers.nix";
|
||||
in
|
||||
quixosHelpers.mkCaminoTsYarnNixifyFlake {
|
||||
inherit inputs nixpkgs flake-utils;
|
||||
packageRoot = ./.;
|
||||
sourceName = "quixos-camino-package-runtime-source";
|
||||
promptName = "camino-package-runtime";
|
||||
nativeBuildInputs = { pkgs, ... }: [
|
||||
pkgs.protobuf
|
||||
];
|
||||
buildEnv = { inputs, pkgs, system }: {
|
||||
QUIXOS_PROTO_PATH = "${pkgs.protobuf}/include:${inputs.quixos-protocol.packages.${system}.default}/proto";
|
||||
packageOutputs = quixosHelpers.mkCaminoTsYarnNixifyFlake {
|
||||
inherit inputs nixpkgs flake-utils;
|
||||
packageRoot = ./.;
|
||||
sourceName = "quixos-camino-package-runtime-source";
|
||||
promptName = "camino-package-runtime";
|
||||
nativeBuildInputs = { pkgs, ... }: [
|
||||
pkgs.protobuf
|
||||
];
|
||||
buildEnv = { inputs, pkgs, system }: {
|
||||
QUIXOS_PROTO_PATH = "${pkgs.protobuf}/include:${inputs.quixos-protocol.packages.${system}.default}/proto";
|
||||
};
|
||||
devShellPackages = { pkgs, ... }: [
|
||||
pkgs.protobuf
|
||||
];
|
||||
devShellHook = { inputs, pkgs, system, ... }: ''
|
||||
export QUIXOS_PROTO_PATH="${pkgs.protobuf}/include:${inputs.quixos-protocol.packages.${system}.default}/proto''${QUIXOS_PROTO_PATH:+:$QUIXOS_PROTO_PATH}"
|
||||
'';
|
||||
};
|
||||
devShellPackages = { pkgs, ... }: [
|
||||
pkgs.protobuf
|
||||
];
|
||||
devShellHook = { inputs, pkgs, system, ... }: ''
|
||||
export QUIXOS_PROTO_PATH="${pkgs.protobuf}/include:${inputs.quixos-protocol.packages.${system}.default}/proto''${QUIXOS_PROTO_PATH:+:$QUIXOS_PROTO_PATH}"
|
||||
'';
|
||||
};
|
||||
in
|
||||
packageOutputs // flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
builtPackage = packageOutputs.packages.${system}.default;
|
||||
in
|
||||
{
|
||||
checks.dist-current = pkgs.runCommand "camino-package-runtime-dist-current" { } ''
|
||||
diff --recursive --unified \
|
||||
${./dist} \
|
||||
${builtPackage}/libexec/-quixos-camino-package-runtime/dist
|
||||
touch "$out"
|
||||
'';
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user