Skip to content

Commit

Permalink
nix: add mqtt-ingest package to build
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcur committed Mar 18, 2024
1 parent ea6f0af commit 46a8c9f
Showing 1 changed file with 36 additions and 11 deletions.
47 changes: 36 additions & 11 deletions nix/build.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,46 @@
{ rustPlatform
{ pkgs
, rustPlatform
, pkg-config
, capnproto
, openssl
, postgresql
, ...
}:
rustPlatform.buildRustPackage rec {
pname = "astroplant-api";
version = "1.0.0.alpha-1";
let
astroplant-api = rustPlatform.buildRustPackage rec {
pname = "astroplant-api";
version = "1.0.0.alpha-1";

src = ../.;
cargoLock = { lockFile = ../Cargo.lock; };
src = ../.;
cargoLock = { lockFile = ../Cargo.lock; };

depsBuildBuild = [ capnproto ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
postgresql
depsBuildBuild = [ capnproto ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
postgresql
];
};
astroplant-mqtt-ingest = rustPlatform.buildRustPackage rec {
pname = "astroplant-mqtt-ingest";
version = "1.0.0.alpha-1";

src = ../.;
buildAndTestSubdir = "astroplant-mqtt-ingest";
cargoLock = { lockFile = ../Cargo.lock; };

depsBuildBuild = [ capnproto ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
postgresql
];
};
in
pkgs.buildEnv {
name = "astroplant";
paths = [
astroplant-api
astroplant-mqtt-ingest
];
}

0 comments on commit 46a8c9f

Please sign in to comment.