37 lines
1.5 KiB
Nix
37 lines
1.5 KiB
Nix
{
|
|
description = "Quixos Camino package runtime helpers";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
quixos-protocol.url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git?ref=refs/heads/exported&rev=e6b34535afa6e94a118e1f9d082054855e7df632";
|
|
quixosNixHelpers = {
|
|
url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git?ref=refs/heads/exported&rev=1f0c39b01501d646fe97dfc6e5777ccab0bde2f1";
|
|
flake = false;
|
|
};
|
|
};
|
|
|
|
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";
|
|
};
|
|
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}"
|
|
'';
|
|
};
|
|
}
|