default.nix: add ticker-serve
This commit is contained in:
parent
760d7b1d36
commit
0f5f0ba978
19
default.nix
19
default.nix
|
@ -20,6 +20,8 @@ let
|
||||||
cargo = rust;
|
cargo = rust;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
cargoSha256 = "0igr8k46yl5a89zjymp6914faawcvqza08h6l9pcplpikhbvls42";
|
||||||
|
|
||||||
ticker-update = rustPlatform.buildRustPackage {
|
ticker-update = rustPlatform.buildRustPackage {
|
||||||
name = "ticker-update";
|
name = "ticker-update";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
@ -29,10 +31,23 @@ let
|
||||||
];
|
];
|
||||||
preBuild = "pushd ticker-update";
|
preBuild = "pushd ticker-update";
|
||||||
postBuild = "popd";
|
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 {
|
in {
|
||||||
inherit
|
inherit
|
||||||
rustPlatform
|
rustPlatform
|
||||||
ticker-update;
|
ticker-update
|
||||||
|
ticker-serve;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue