diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-10-24 17:16:29 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-10-24 17:16:29 +0200 |
commit | e8c23f486012962f1096cf2cf216c9ef127a0bdb (patch) | |
tree | 57e28498ac57dd453bca9d73fd5286acf12bcae1 | |
parent | 4d1dd4d6aad006c86c20df45b1c57ff96aa983d6 (diff) |
Add build setup for service-person
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | service-person/default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
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 <nixpkgs> {} +, 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 ]; +} |