diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-10-24 17:15:54 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-10-24 17:15:54 +0200 |
commit | 4d1dd4d6aad006c86c20df45b1c57ff96aa983d6 (patch) | |
tree | f5f0921e4ffe1df6bfa103a206e74e021774aad3 /person-api-types/default.nix | |
parent | 23ad83bc603c1b6d6bd9505142bf2462df5f9b4b (diff) |
Add build setup for person-api-types
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'person-api-types/default.nix')
-rw-r--r-- | person-api-types/default.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/person-api-types/default.nix b/person-api-types/default.nix new file mode 100644 index 0000000..181f97c --- /dev/null +++ b/person-api-types/default.nix @@ -0,0 +1,17 @@ +{ pkgs ? import <nixpkgs> {} }: + +with pkgs.stdenv; +with pkgs.lib; + +pkgs.rustPlatform.buildRustPackage rec { + name = "person-api-types"; + src = pkgs.nix-gitignore.gitignoreSourcePure "target\n" ./.; + + buildType = "debug"; + + cargoSha256 = "sha256:1j4x994iybxsscwv2xm57w9my10v4bap6jw2krbfwsq153pd5dy7"; + + nativeBuildInputs = with pkgs; [ pkg-config makeWrapper ]; + buildInputs = with pkgs; [ openssl ]; +} + |