Skip to content

Instantly share code, notes, and snippets.

@CapsAdmin
Created January 26, 2018 09:39
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/a8772c48feea4a05a88531345460d071 to your computer and use it in GitHub Desktop.
Save CapsAdmin/a8772c48feea4a05a88531345460d071 to your computer and use it in GitHub Desktop.
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