btcs

bitcoin script parser/evaluator/compiler/decompiler
git clone git://jb55.com/btcs
Log | Files | Refs | README | LICENSE

commit a6b7e8b3a1385b8613cddcc792349fec0cec21a7
parent f69017607010372aaecdf65e4aca6ed5b25bf846
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 29 Sep 2019 03:30:58 -0700

nix build

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
MREADME.md | 4++++
Adefault.nix | 28++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -19,6 +19,10 @@ deps: `python3`, `bison`, `flex`, a C compiler $ make install +with nix: + + $ nix-env -if . + ## TODOs - [X] Tokenizer diff --git a/default.nix b/default.nix @@ -0,0 +1,28 @@ +{ nixpkgs ? import <nixpkgs> {} +, stdenv ? nixpkgs.stdenv +, bison ? nixpkgs.bison +, flex ? nixpkgs.flex +, python3 ? nixpkgs.python3 +}: + +stdenv.mkDerivation rec { + name = "btcs-${version}"; + version = "0.1"; + + src = ./.; + + makeFlags = ["PREFIX=$(out)"]; + + nativeBuildInputs = [ bison flex python3 ]; + + patchPhase = '' + patchShebangs mph-opcodes + ''; + + meta = with stdenv.lib; { + description = "Bitcoin script evaluator"; + homepage = "https://github.com/jb55/btcs"; + maintainers = with maintainers; [ jb55 ]; + license = licenses.mit; + }; +}