diff --git a/exherbo-cabal.cabal b/exherbo-cabal.cabal
--- a/exherbo-cabal.cabal
+++ b/exherbo-cabal.cabal
@@ -10,7 +10,7 @@
 -- PVP summary:      +-+------- breaking API changes
 --                   | | +----- non-breaking API additions
 --                   | | | +--- code changes with no API change
-version:             0.1.0.0
+version:             0.1.0.1
 
 -- A short (one-line) description of the package.
 synopsis:            Exheres generator for cabal packages
@@ -66,8 +66,8 @@
   
   -- Other library packages from which modules are imported.
   build-depends:
-    Cabal >=1.18 && <1.19,
-    base >=4.7 && <4.8,
+    Cabal >=1.20 && <1.23,
+    base >=4.7 && <4.9,
     bytestring >=0.10 && <0.11,
     containers,
     haddock-library >=1.0 && <1.3,
diff --git a/src/ExRender.hs b/src/ExRender.hs
--- a/src/ExRender.hs
+++ b/src/ExRender.hs
@@ -193,6 +193,7 @@
                                  ]
                 exParams = spaces $ exHasLib <+> exHasBin <+> exHasOptions
 
+        exSlot = if hasLib then empty else exField "SLOT" "0"
         exheres = vcat [
             "# Copyright 2015 Mykola Orliuk <virkony@gmail.com>",
             "# Distributed under the terms of the GNU General Public License v2",
@@ -205,6 +206,7 @@
             exField "HOMEPAGE" (homepage pkgDescr),
             "",
             exField "LICENCES" (exRender $ license pkgDescr),
+            exSlot,
             exField "PLATFORMS" "~amd64",
             "",
             exDependencies,
diff --git a/src/Main.hs b/src/Main.hs
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -59,7 +59,7 @@
         pkgDescr = packageDescription descr
         packageUri = hackageBaseUri ++ display (package pkgDescr)
         adjustLicense = do
-            let licensePath = licenseFile pkgDescr
+            let licensePath = head $ licenseFiles pkgDescr -- TODO: proper handling of multiple licenses
             licenseContent ← simpleFetch (packageUri ++ "/src/" ++ licensePath)
             license' ← guessLicense licenseContent
             case license' of
