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; }