From 11e9ce199457393225fb02214f3c0ff0898d22bd Mon Sep 17 00:00:00 2001 From: Tino Breddin Date: Mon, 9 Dec 2019 14:03:39 +0100 Subject: [PATCH] Add environment configuration for Nix --- default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..3e31823 --- /dev/null +++ b/default.nix @@ -0,0 +1,20 @@ +let + stable = import (fetchTarball { # 19.09 + url = https://github.com/NixOS/nixpkgs-channels/archive/a22b0189002.tar.gz; + sha256 = "0rgd0cbxg9mrzb830hgjlvy134ivpfcnkyhbnlvvn8vl4y20zqmz"; + }) {}; +in { + aeternityEnv = stable.stdenv.mkDerivation { + name = "ecrecover"; + buildInputs = [ + ## base + stable.stdenv + ## erlang + stable.erlangR21 # OTP 21.3.5.2 + ## rust, required for building the NIF + stable.rustc + stable.cargo + stable.cmake + ]; + }; +}