Add Nix files for obtaining all C/C++ dependencies

This commit is contained in:
Zahary Karadjov 2018-02-23 18:55:04 +02:00
parent 99921f38cb
commit fd23b8ac0f
2 changed files with 32 additions and 0 deletions

22
default.nix Normal file
View File

@ -0,0 +1,22 @@
{ pkgs ? import <nixpkgs> {} }:
let
stdenv = pkgs.stdenv;
in
stdenv.mkDerivation rec {
name = "nimbus-${version}";
version = "0.0.1";
meta = with stdenv.lib; {
description = "An Ethereum 2.0 Sharding Client for Resource-Restricted Devices";
homepage = https://github.com/status-im/nimbus;
license = [licenses.asl20];
platforms = platforms.unix;
};
src = ./.;
buildInputs = [pkgs.clang pkgs.nim pkgs.rocksdb pkgs.secp256k1 pkgs.cryptopp];
}

10
devenv.nix Normal file
View File

@ -0,0 +1,10 @@
let
pkgs = import (builtins.fetchGit {
url = git://github.com/NixOS/nixpkgs;
rev = "8c6f9223d02c5123cbd364d6d56caca3c81416f0";
}) {};
in
import ./default.nix { inherit pkgs; }