Browse Source

default.nix: add ticker-serve

master
Astro 2 years ago
parent
commit
0f5f0ba978
  1. 19
      default.nix

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

Loading…
Cancel
Save