diff options
Diffstat (limited to 'service-hello/default.nix')
-rw-r--r-- | service-hello/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/service-hello/default.nix b/service-hello/default.nix new file mode 100644 index 0000000..e56116a --- /dev/null +++ b/service-hello/default.nix @@ -0,0 +1,14 @@ +{ pkgs ? import <nixpkgs> {} }: + +with pkgs.stdenv; +with pkgs.lib; + +pkgs.rustPlatform.buildRustPackage rec { + name = "hello-service"; + src = pkgs.nix-gitignore.gitignoreSourcePure "target\n" ./.; + + cargoSha256 = "sha256:0nam3yr99gg0lajdha0s9pijqwblgwggqi94mg7d3wz7vfhj8c31"; + + nativeBuildInputs = with pkgs; [ pkg-config makeWrapper ]; + buildInputs = with pkgs; [ openssl ]; +} |