Adopt to changes introduced to the nix API

This should fix #50 and #51