Format authored monorepo code with pinned language formatters
This commit is contained in:
@@ -11,7 +11,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
outputs = inputs@{ nixpkgs, flake-utils, quixosNixHelpers, ... }:
|
||||
outputs =
|
||||
inputs@{
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
quixosNixHelpers,
|
||||
...
|
||||
}:
|
||||
let
|
||||
quixosHelpers = import "${quixosNixHelpers}/quixos-package-helpers.nix";
|
||||
packageOutputs = quixosHelpers.mkCaminoTsYarnNixifyFlake {
|
||||
@@ -22,18 +28,37 @@
|
||||
nativeBuildInputs = { pkgs, ... }: [
|
||||
pkgs.protobuf
|
||||
];
|
||||
buildEnv = { inputs, pkgs, system }: {
|
||||
QUIXOS_PROTO_PATH = "${pkgs.protobuf}/include:${inputs.quixos-protocol.packages.${system}.default}/proto";
|
||||
};
|
||||
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}"
|
||||
'';
|
||||
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:
|
||||
packageOutputs
|
||||
// flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
builtPackage = packageOutputs.packages.${system}.default;
|
||||
@@ -45,5 +70,6 @@
|
||||
${builtPackage}/libexec/-quixos-camino-package-runtime/dist
|
||||
touch "$out"
|
||||
'';
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user