2020-07-11 23:47:57 +01:00
|
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
let
|
|
|
|
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
|
|
|
|
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
|
|
|
|
|
|
|
|
in
|
2020-07-11 23:47:57 +01:00
|
|
|
pkgs.rustPlatform.buildRustPackage {
|
2020-07-11 23:47:57 +01:00
|
|
|
pname = "tlaternet";
|
|
|
|
version = "1.0";
|
|
|
|
src = ./.;
|
|
|
|
cargoSha256 = "1gyvc4gc2b799q9hi0af4z14fbg0sgnkqsmajniqyb693ifg9f6d";
|
2020-07-11 23:47:57 +01:00
|
|
|
verifyCargoDeps = true;
|
2020-07-11 23:47:57 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
nixpkgs.latest.rustChannels.nightly.rust
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
}
|