Skip to content

Instantly share code, notes, and snippets.

@CapsAdmin
Created January 26, 2018 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CapsAdmin/b7801b3ab82d70d84b4e2ee20e99a56c to your computer and use it in GitHub Desktop.
Save CapsAdmin/b7801b3ab82d70d84b4e2ee20e99a56c to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "ffibuild_luajit";
src = ./.;
buildInputs = [ gcc assimp ];
buildPhase = ''
gcc -xc -E -P -I${lib.getDev assimp} -c /home/caps/goluwa/goluwa/framework/lua/build/assimp/temp.c -o temp.p
'';
installPhase = ''
mkdir $out;
find ${assimp.lib}/lib/;
cp ${assimp.lib}/lib/libassimp.so $out/libassimp.so;
mv temp.p $out/temp.p;
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment