From 0f5f0ba97857daac019797f0d93ec567af7d15a0 Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 26 Oct 2019 01:20:04 +0200 Subject: [PATCH] default.nix: add ticker-serve --- default.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 6740378..fde4212 100644 --- a/default.nix +++ b/default.nix @@ -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; }