diff --git a/cabal2nix.cabal b/cabal2nix.cabal
--- a/cabal2nix.cabal
+++ b/cabal2nix.cabal
@@ -1,5 +1,5 @@
 Name:                   cabal2nix
-Version:                1.46
+Version:                1.47
 Copyright:              Peter Simons, Andres Loeh
 License:                BSD3
 License-File:           LICENSE
@@ -33,8 +33,8 @@
   .
   The only required argument is the path to the cabal file. For example:
   .
-  > cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.46/cabal2nix.cabal
-  > cabal2nix cabal://cabal2nix-1.46
+  > cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.47/cabal2nix.cabal
+  > cabal2nix cabal://cabal2nix-1.47
   .
   If the @--sha256@ option has not been specified, cabal2nix calls
   @nix-prefetch-url@ to determine the hash automatically. This causes
diff --git a/src/Cabal2Nix/PostProcess.hs b/src/Cabal2Nix/PostProcess.hs
--- a/src/Cabal2Nix/PostProcess.hs
+++ b/src/Cabal2Nix/PostProcess.hs
@@ -70,7 +70,7 @@
   , "  for i in Setup.hs Setup.lhs; do"
   , "    test -f $i && ghc --make $i"
   , "  done"
-  , "  for p in $extraBuildInputs $propagatedBuildNativeInputs; do"
+  , "  for p in $extraBuildInputs $propagatedNativeBuildInputs; do"
   , "    if [ -d \"$p/include\" ]; then"
   , "      extraLibDirs=\"$extraLibDirs --extra-include-dir=$p/include\""
   , "    fi"
