Created
January 26, 2018 09:39
-
-
Save CapsAdmin/a8772c48feea4a05a88531345460d071 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 libsndfile ]; | |
buildPhase = '' | |
gcc -xc -E -P -c /home/caps/goluwa/goluwa/framework/lua/build/sndfile/temp.c -o temp.p | |
''; | |
installPhase = '' | |
mkdir $out; | |
echo "cp -r ${lib.getLib libsndfile}/lib/libsndfile.so $out/."; | |
cp -r ${lib.getLib libsndfile}/lib/libsndfile.so $out/.; | |
mv temp.p $out/temp.p; | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment