initial implementation of vc4 cross-compile

This commit is contained in:
Michael Bishop
2019-11-02 12:47:38 -03:00
parent 91b02cd86b
commit 4aa1ffae04
11 changed files with 94 additions and 14 deletions

View File

@@ -0,0 +1,18 @@
{ fetchFromGitHub, stdenv, cmake, qt4 }:
stdenv.mkDerivation {
name = "resim";
src = fetchFromGitHub {
owner = "itszor";
repo = "resim";
rev = "cdc7808ceb7ba4ac00d0d08ca646b58615059150";
sha256 = "1743lngqxd7ai4k6cd4d1cf9h60z2pnvr2iynfs1zlpcj3w1hx0c";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ qt4 ];
installPhase = ''
mkdir -pv $out/{lib,bin}
cp -v libresim/libarmsim.so $out/lib/libarmsim.so
cp -v vc4emul/vc4emul $out/bin/vc4emul
'';
}