Created
January 26, 2018 01:35
-
-
Save CapsAdmin/b7801b3ab82d70d84b4e2ee20e99a56c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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