From 4638955d5c852fc56c5086cee1a87e1f43d13bc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Sat, 11 Jul 2020 23:47:57 +0100 Subject: [PATCH] Add nix build script --- default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..a438384 --- /dev/null +++ b/default.nix @@ -0,0 +1,23 @@ +{ pkgs ? import {} }: + +with pkgs; + +let + moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz); + nixpkgs = import { overlays = [ moz_overlay ]; }; + +in +rustPlatform.buildRustPackage { + pname = "tlaternet"; + version = "1.0"; + src = ./.; + cargoSha256 = "1gyvc4gc2b799q9hi0af4z14fbg0sgnkqsmajniqyb693ifg9f6d"; + verifyCargoDeps = true; + nativeBuildInputs = [ + nixpkgs.latest.rustChannels.nightly.rust + pkg-config + ]; + buildInputs = [ + openssl + ]; +}