btcs

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

default.nix (575B)


      1 { nixpkgs ? import <nixpkgs> {}
      2 , stdenv ? nixpkgs.stdenv
      3 , bison ? nixpkgs.bison
      4 , lib ? nixpkgs.lib
      5 , flex ? nixpkgs.flex
      6 , python3 ? nixpkgs.python3
      7 }:
      8 
      9 stdenv.mkDerivation rec {
     10   name = "btcs-${version}";
     11   version = "0.1";
     12 
     13   src = ./.;
     14 
     15   makeFlags = ["PREFIX=$(out)"];
     16 
     17   nativeBuildInputs = [ bison flex python3 ];
     18 
     19   patchPhase = ''
     20     patchShebangs mph-opcodes
     21   '';
     22 
     23   meta = with lib; {
     24     description = "Bitcoin script evaluator";
     25     homepage = "https://github.com/jb55/btcs";
     26     maintainers = with maintainers; [ jb55 ];
     27     license = licenses.mit;
     28   };
     29 }