@@ -60,8 +60,8 @@ Executable cabal2nix
6060 hs-source-dirs: src
6161 Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.18,
6262 filepath, directory, process, hackage-db >= 1.11, transformers,
63− deepseq, bytestring, SHA
64− Extensions: PatternGuards, RecordWildCards, CPP
63+ deepseq, bytestring, SHA, deepseq-generics
64+ Extensions: PatternGuards, RecordWildCards, CPP, DeriveGeneric, StandaloneDeriving
6565 Ghc-Options: -Wall
6666 other-modules: Cabal2Nix.CorePackages
6767 Cabal2Nix.Flags
@@ -86,9 +86,9 @@ Executable hackage2nix
8686 Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.18,
8787 filepath, directory, process, hackage-db >= 1.11, transformers, deepseq,
8888 containers, mtl, monad-par, monad-par-extras, bytestring, SHA, aeson,
89− split, utf8-string
89+ split, utf8-string, deepseq-generics
9090 Ghc-Options: -Wall -threaded -rtsopts -with-rtsopts=-N
91− Extensions: PatternGuards, RecordWildCards, CPP
91+ Extensions: PatternGuards, RecordWildCards, CPP, DeriveGeneric, StandaloneDeriving
9292 other-modules: Cabal2Nix.CorePackages
9393 Cabal2Nix.Flags
9494 Cabal2Nix.Generate
@@ -107,4 +107,18 @@ Test-Suite doctest-cabal2nix
107107 type: exitcode-stdio-1.0
108108 main-is: doc-test.hs
109109 hs-source-dirs: test
110+ Extensions: PatternGuards, RecordWildCards, CPP, DeriveGeneric, StandaloneDeriving
110111 build-depends: base, doctest
112+
113+Test-Suite self-test
114+ type: exitcode-stdio-1.0
115+ main-is: spec.hs
116+ hs-source-dirs: src, test
117+ Extensions: PatternGuards, RecordWildCards, CPP, DeriveGeneric, StandaloneDeriving
118+ build-depends: base, regex-posix, pretty, Cabal >= 1.18,
119+ filepath, directory, process, hackage-db >= 1.11, transformers, deepseq,
120+ containers, mtl, monad-par, monad-par-extras, bytestring, SHA, aeson,
121+ split, utf8-string, deepseq-generics, hspec, QuickCheck
122+ other-modules: Distribution.NixOS.Derivation.Cabal
123+ Distribution.NixOS.Derivation.License
124+ Distribution.NixOS.Derivation.Meta