ticker/default.nix

23 lines
480 B
Nix
Raw Normal View History

{ pkgs ? import <nixpkgs> {},
2019-10-26 01:14:49 +02:00
}:
let
cargoSha256 = "11hvxh8drqpimax7b5z5r8qiwzy00j5r0xdshml0wgzxnmrnxzqc";
2019-10-07 00:33:44 +02:00
build = pname: pkgs.rustPlatform.buildRustPackage {
inherit pname;
version = "0.1.0";
2019-10-26 01:20:04 +02:00
src = ./.;
buildInputs = with pkgs; [
pkg-config openssl
postgresql.lib
2019-10-26 01:20:04 +02:00
];
preBuild = "pushd ${pname}";
2019-10-26 01:20:04 +02:00
postBuild = "popd";
inherit cargoSha256;
};
in {
ticker-update = build "ticker-update";
ticker-serve = build "ticker-serve";
2019-10-07 00:33:44 +02:00
}