summary refs log tree commit diff
path: root/pkgs/applications/altcoins/zcash/libsnark/xbyak.nix
blob: c0b36ab93443403be57c05048e2fab7d02d9697a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  name = "xbyak-unstable-${version}";
  version = "2016-05-03";

  src = fetchFromGitHub {
    owner = "herumi";
    repo  = "xbyak";
    rev = "b6133a02dd6b7116bea31d0e6b7142bf97f071aa";
    sha256 = "1rc2nx8kj2lj13whxb9chhh79f4hmjjj4j1hpqsd0lbdb60jikrn";
  };

  phases = ["unpackPhase" "installPhase"];

  installPhase = ''
    mkdir -p $out/include
    cp -r xbyak $out/include
  '';

  meta = with stdenv.lib; {
    description = "JIT assembler for x86, x64";
    homepage = "https://github.com/herumi/xbyak";
    maintainers = with maintainers; [ rht ];
    license = licenses.bsd3;
    platforms = platforms.unix;
  };
}