default.nix: add ticker-serve

This commit is contained in:
Astro 2019-10-26 01:20:04 +02:00
parent 760d7b1d36
commit 0f5f0ba978
1 changed files with 17 additions and 2 deletions

View File

@ -20,6 +20,8 @@ let
cargo = rust;
});
cargoSha256 = "0igr8k46yl5a89zjymp6914faawcvqza08h6l9pcplpikhbvls42";
ticker-update = rustPlatform.buildRustPackage {
name = "ticker-update";
src = ./.;
@ -29,10 +31,23 @@ let
];
preBuild = "pushd ticker-update";
postBuild = "popd";
cargoSha256 = "0igr8k46yl5a89zjymp6914faawcvqza08h6l9pcplpikhbvls42";
inherit cargoSha256;
};
ticker-serve = rustPlatform.buildRustPackage {
name = "ticker-serve";
src = ./.;
buildInputs = [
pkg-config openssl postgresql.lib
rust
];
preBuild = "pushd ticker-serve";
postBuild = "popd";
inherit cargoSha256;
};
in {
inherit
rustPlatform
ticker-update;
ticker-update
ticker-serve;
}