From e8c23f486012962f1096cf2cf216c9ef127a0bdb Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 24 Oct 2021 17:16:29 +0200 Subject: Add build setup for service-person Signed-off-by: Matthias Beyer --- service-person/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 service-person/default.nix diff --git a/service-person/default.nix b/service-person/default.nix new file mode 100644 index 0000000..8c04149 --- /dev/null +++ b/service-person/default.nix @@ -0,0 +1,18 @@ +{ pkgs ? import {} +, personApiTypes ? (import ../person-api-types {}) +}: + +with pkgs.stdenv; +with pkgs.lib; + +pkgs.rustPlatform.buildRustPackage rec { + name = "person-service"; + src = pkgs.nix-gitignore.gitignoreSourcePure "target\n" ./.; + + buildType = "debug"; + + cargoSha256 = "sha256:01am3yr99gg0lajdha0s9pijqwblgwggqi94mg7d3wz7vfhj8c31"; + + nativeBuildInputs = with pkgs; [ pkg-config makeWrapper personApiTypes ]; + buildInputs = with pkgs; [ openssl ]; +} -- cgit v1.2.3