unicorn-emulator: 1.0.1 -> 1.0.2-rc4
Also adds tests
This commit is contained in:
parent
5717d9d2f7
commit
8b633d8b3c
@ -1,17 +1,25 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, python }:
|
{ stdenv, fetchurl, pkgconfig, python, cmocka, hexdump, writeScriptBin, binutils-unwrapped }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "unicorn-emulator";
|
pname = "unicorn-emulator";
|
||||||
version = "1.0.1";
|
version = "1.0.2-rc4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/unicorn-engine/unicorn/archive/${version}.tar.gz";
|
url = "https://github.com/unicorn-engine/unicorn/archive/${version}.tar.gz";
|
||||||
sha256 = "0z01apwmvhvdldm372ww9pjfn45awkw3m90c0h4v0nj0ihmlysis";
|
sha256 = "05w43jq3r97l3c8ggc745ai8m5l93p1b6q6cfp1zwzz6hl5kifiv";
|
||||||
};
|
};
|
||||||
|
|
||||||
configurePhase = '' patchShebangs make.sh '';
|
PREFIX = placeholder "out";
|
||||||
buildPhase = '' ./make.sh '' + stdenv.lib.optionalString stdenv.isDarwin "macos-universal-no";
|
MACOS_UNIVERSAL = stdenv.lib.optionalString stdenv.isDarwin "no";
|
||||||
installPhase = '' env PREFIX=$out ./make.sh install '';
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||||
|
|
||||||
|
doCheck = !stdenv.isDarwin;
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
cmocka
|
||||||
|
hexdump
|
||||||
|
python.pkgs.setuptools
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig python ];
|
nativeBuildInputs = [ pkgconfig python ];
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user