<rekado_>This is rather short and I wonder if I should simply write a guile script instead. How is a snippet like this to be included in a package definition?
<civodul>rekado_: similar to patches: make it a file, and add it to the inputs of the package
<civodul>see how ld-wrapper.scm is used, for instance
<civodul>however, we don't really have a convention for where to store such files
<civodul>FWIW, i package gcj and attempted IcedTea in Nixpkgs in the old days
<civodul>apparently icedtea includes a 'javac' wrapper already
<civodul>it might be simpler to package icedtea rather openjdk
<rekado_>civodul: icedtea7 includes a javac wrapper, but icedtea6 does not. (I'm working on both atm.)
<rekado_>I have packaged gcj and gcj-jdk as well as a couple of dependencies for icedtea6/7 already. The build of IcedTea7 fails after 20 minutes when linking some library with GCJ, so I'm trying to build IcedTea6 first, and then use IcedTea6 to build IcedTea7.