/ default.nix
default.nix
 1  let
 2    pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.11") {};
 3  in {
 4    aeternityEnv = pkgs.stdenv.mkDerivation {
 5      name = "aeternity";
 6      ## required to compile the C parts of cuckoo
 7      hardeningDisable = [ "format" ];
 8      nativeBuildInputs = [ pkgs.cmake ];
 9      buildInputs = [
10        ## base
11        pkgs.stdenv
12        ## erlang
13        pkgs.erlang_26 # OTP 26.1.2
14        ## crypto
15        pkgs.libsodium
16        ## rocksdb build deps
17        pkgs.automake
18        pkgs.autoconf
19        pkgs.libtool
20        pkgs.which
21        ## emcl's dependencies
22        pkgs.gmp
23      ];
24      ## required to start the node locally
25      shellHooks = ''
26        ulimit -n 24576
27      '';
28    };
29  }