qNP      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVW X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~  SafeNone/51  !"#$%&'()*+,-./1  !"#$%&'()*+,-./None0 A variant of G that adds the SHA256 digest of the original Cabal file to the parsed . That hash is required to build packages with an "edited" cabal file, because Nix needs to download the edited file and patch it into the original tarball.01x      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./010101None2'Map Cabal names to Nix attribute names.3FMap library names specified in Cabal files to Nix package identifiers.]TODO: This list should not be hard-coded here; it belongs into the Nixpkgs repository.;TODO: Re-use hook matching system from PostProcess.hs here.4,Map build tool names to Nix attribute names.0|Helper function to extract the package name from a String that may or may not be formatted like a Cabal package identifier.guessNixIdentifier "foo-1.0"Identifier "foo"guessNixIdentifier "foo"Identifier "foo"guessNixIdentifier "foo - 0"Identifier "foo - 0"guessNixIdentifier "1foo-1.0"Identifier "1foo"guessNixIdentifier "-foo-1.0"Identifier "-foo-1.0"23402342342340Safe5555None61266612None789789789789None!"59;<Target compiler. Used by finalizePackageDescription/ to choose appropriate flags and dependencies.=6Compiler core packages that are also found on Hackage.>SThese packages replace the latest respective version during dependency resolution.?bThese packages are added to the generated set, but the play no role during dependency resolution.@We know that these packages won't build, so we give them an empty meta.hydraPlatforms attribute to avoid cluttering our Hydra output with lots of failure messages.A This information is used by the  hackage2nix utility to determine the  maintainers for a given Haskell package.:;<=>?@A3BCDEFGH :;<=>?@ABC :;<=>?@ABC :;<=>?@A3BCDEFGHNone59;<=K45678OPQRSTUVKOPQRSKOPQRS K45678OPQRSTUV None!"5T WrA source for a derivation. It always needs a hash and also has a protocol attached to it (url, git, svn, ...). A DerivationSourceK also always has it's revision fully resolved (not relative revisions like master, HEAD, etc).YVThe kind of the source. The name of the build-support fetch derivation should be fetch kind.ZURL to fetch from.[FRevision to use. Leave empty if the fetcher doesn't support revisions.\The hash of the source.aSA source is a location from which we can fetch, such as a HTTP URL, a GIT URL, ....cURL to fetch from.dpRevision to use. For protocols where this doesn't make sense (such as HTTP), this should be the empty string.e.The expected hash of the source, if available.f$Directory where Cabal file is found.hAFetch a source, trying any of the various nix-prefetch-* scripts.iLike h,, but allows to specify which script to use.WXYZ[\]^_`abcdef9:ghOThis function is passed the output path name as an argument. It should return ; if the file doesn't match the expected format. This is required, because we cannot always check if a download succeeded otherwise.The source to fetch from.hThe derivation source and the result of the processing function. Returns Nothing if the download failed.i<jklmWXYZ[\]^_`abcdefghiabcdef]^_`WXYZ[\ghi WXYZ[\]^_`abcdef9:ghi<jklm None !"59;<=zyA represtation of Nix expressions for building Haskell packages. The data type correspond closely to the definition of PackageDescription from Cabal.9z=>?@ABCDEFGHIJKLMNOPQRSTUV{z{z{z=>?@ABCDEFGHIJKLMNOPQRSTUV{None"KOPQRSz{ NoneWhen a flag is specified multiple times, the first occurrence counts. This is counter-intuitive, IMHO, but it's how cabal does it. Flag names are spelled in all lowercase.]normalizeCabalFlags [(FlagName "foo", True), (FlagName "FOO", True), (FlagName "Foo", False)][(FlagName "foo",True)]WXYZWXYZ None[\]^_`abcdefghijklmnop[\]^_`abcdefghijklmnop None!"qrsqrsNonetuvwxyz{| tuvwxyz{|} !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKKLMNOPQRSTUVWXYZ[\]^_`abc:de f f g h i j k l m n o o p q r s t u v w x y z { | } ~           !"#$$%&'(()*+,,-./01234567899:;<=>?@ABC[[DEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abbcdefghijklmnopqrstuvwxyz{|}~~      !"#$%&'()*+,-./01234[5678 9 :;< = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s tuvwxyz{|}~&cabal2nix-2.2.1-1zw9JqtMhw5ELZgmE8xxAi,Distribution.Nixpkgs.Haskell.OrphanInstances$Distribution.Nixpkgs.Haskell.Hackage+Distribution.Nixpkgs.Haskell.FromCabal.Name.Distribution.Nixpkgs.Haskell.FromCabal.License,Distribution.Nixpkgs.Haskell.FromCabal.Flags'Distribution.Nixpkgs.Haskell.Constraint4Distribution.Nixpkgs.Haskell.FromCabal.Configuration&Distribution.Nixpkgs.Haskell.BuildInfoDistribution.Nixpkgs.Fetch'Distribution.Nixpkgs.Haskell.Derivation0Distribution.Nixpkgs.Haskell.FromCabal.Normalize2Distribution.Nixpkgs.Haskell.FromCabal.PostProcess&Distribution.Nixpkgs.Haskell.FromCabal.Distribution.Nixpkgs.Haskell.PackageSourceSpecPaths_cabal2nixDistribution.Nixpkgs.Haskell$fFromJSONCompilerInfo$fFromJSONDependency$fFromJSONPackageIdentifier$fFromJSONPackageName$fFromJSONPlatform$fIsStringPlatform$fIsStringCompilerId$fIsStringDependency$fIsStringPackageIdentifier$fIsStringVersion$fIsStringPackageName$fNFDataAbiTag$fNFDataCompilerId$fNFDataCompilerInfo$fNFDataPlatform$fNFDataCondition$fNFDataVersionRange$fNFDataTestType$fNFDataTestSuiteInterface$fNFDataTestSuite$fNFDataSourceRepo$fNFDataRepoType$fNFDataRepoKind$fNFDataPackageDescription $fNFDataOS$fNFDataModuleRenaming$fNFDataModuleReexport$fNFDataModuleName$fNFDataLicense$fNFDataLibrary$fNFDataLanguage$fNFDataKnownExtension!$fNFDataGenericPackageDescription$fNFDataFlagName $fNFDataFlag$fNFDataExtension$fNFDataExecutable$fNFDataDependency$fNFDataConfVar$fNFDataCompilerFlavor$fNFDataBuildType$fNFDataBuildInfo$fNFDataBenchmarkType$fNFDataBenchmarkInterface$fNFDataBenchmark $fNFDataArch$fNFDataCondTree$fNFDataSetupBuildInforeadHashedHackagereadHashedHackage' toNixName libNixNamebuildToolNixNamefromCabalLicenseconfigureCabalFlags ConstraintsatisfiesConstraintsatisfiesConstraints Configuration compilerInfo corePackagesdefaultPackageOverrides extraPackagesdontDistributePackagespackageMaintainersreadConfigurationassertConsistency$fFromJSONKeyPackageName$fFromJSONKeyIdentifier$fFromJSONIdentifier$fFromJSONConfiguration$fNFDataConfiguration$fShowConfiguration$fGenericConfiguration BuildInfo$fShowBuildInfo $fEqBuildInfo$fGenericBuildInfohaskell pkgconfigsystemtoolpPrintBuildInfo$fMonoidBuildInfo$fEachBuildInfoBuildInfoSetSetDerivationSource derivKindderivUrl derivRevision derivHashHashCertainGuess UnknownHashSource sourceUrlsourceRevision sourceHashsourceCabalDirfromDerivationSourcefetch fetchWith$fFromJSONDerivationSource$fNFDataDerivationSource $fNFDataHash$fNFDataSource $fShowHash$fEqHash $fOrdHash $fGenericHash $fShowSource $fEqSource $fOrdSource$fGenericSource$fShowDerivationSource$fEqDerivationSource$fOrdDerivationSource$fGenericDerivationSource DerivationnullDerivation$fShowDerivation$fEqDerivation$fGenericDerivationbenchmarkDepends cabalFlagsconfigureFlagsdoCheckeditedCabalFileenableExecutableProfilingenableLibraryProfilingenableSplitObjsexecutableDependsextraFunctionArgshyperlinkSource isExecutable isLibrary jailbreaklibraryDepends metaSectionphaseOverridespkgidrevision runHaddock setupDependssrcsubpath testDepends testTarget dependencies$fPrettyDerivation$fNFDataDerivation$fPackageDerivation normalizenormalizeCabalFlags postProcessNixpkgsResolverHaskellResolverfromGenericPackageDescriptionfromPackageDescriptionPackage pkgSourcepkgCabal getPackagesourceFromHackage $fShowPackagecatchIOversionbindirlibdir dynlibdirdatadir libexecdir sysconfdir getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileName text2isString&hackage-db-1.22-1fc93mlOTtgA29Yx8PPU2XDistribution.Hackage.DB.Parsed readHackageCabal-1.24.2.0Distribution.PackageDescriptionGenericPackageDescriptioncOrcAndcNotupdatePackageDescriptionknownRepoTypeshcSharedOptions hcProfOptions hcOptionsemptyHookedBuildInfousedExtensions allExtensions allLanguages allBuildInfoemptyBuildInfo benchmarkTypeknownBenchmarkTypesbenchmarkModules withBenchmarkenabledBenchmarks hasBenchmarksemptyBenchmarktestTypeknownTestTypes testModuleswithTest enabledTestshasTestsemptyTestSuite exeModuleswithExehasExesemptyExecutable libModuleswithLibhasLibs emptyLibrarylookupRenamingdefaultRenamingknownBuildTypesemptyPackageDescriptiondescCabalVersion specVersionPackageDescriptionpackagelicense licenseFiles copyright maintainerauthor stability testedWithhomepagepkgUrl bugReports sourceRepossynopsis descriptioncategorycustomFieldsPD buildDependsspecVersionRaw buildTypesetupBuildInfolibrary executables testSuites benchmarks dataFilesdataDir extraSrcFiles extraTmpFiles extraDocFiles BuildTypeSimple ConfigureMakeCustomUnknownBuildTypeSetupBuildInfodefaultSetupDependsModuleRenamingLibraryexposedModulesreexportedModulesrequiredSignaturesexposedSignatures libExposed libBuildInfoModuleReexportmoduleReexportOriginalPackagemoduleReexportOriginalNamemoduleReexportName ExecutableexeName modulePath buildInfo TestSuitetestName testInterface testBuildInfo testEnabledTestSuiteInterfaceTestSuiteExeV10TestSuiteLibV09TestSuiteUnsupportedTestType TestTypeExe TestTypeLibTestTypeUnknown Benchmark benchmarkNamebenchmarkInterfacebenchmarkBuildInfobenchmarkEnabledBenchmarkInterfaceBenchmarkExeV10BenchmarkUnsupported BenchmarkTypeBenchmarkTypeExeBenchmarkTypeUnknownoptions buildable buildTools cppOptions ccOptions ldOptionspkgconfigDepends frameworksextraFrameworkDirscSources jsSources hsSourceDirs otherModulesdefaultLanguageotherLanguagesdefaultExtensionsotherExtensions oldExtensions extraLibs extraGHCiLibs extraLibDirs includeDirsincludesinstallIncludes profOptions sharedOptionscustomFieldsBItargetBuildDependstargetBuildRenamingHookedBuildInfo SourceReporepoKindrepoType repoLocation repoModule repoBranchrepoTag repoSubdirRepoKindRepoHeadRepoThisRepoKindUnknownRepoTypeDarcsGitSVNCVS MercurialGnuArchBazaarMonotone OtherRepoTypepackageDescriptiongenPackageFlags condLibrarycondExecutablescondTestSuitescondBenchmarksFlagMkFlagflagNameflagDescription flagDefault flagManualFlagNameFlagAssignmentConfVarArchOSImpl ConditionVarLitCNotCOrCAndCondTreeCondNode condTreeDatacondTreeConstraintscondTreeComponentsDistribution.PackageinstalledPackageIdpackageVersion packageNamesimplifyDependencynotThisPackageVersionthisPackageVersionmkLegacyUnitIdmkUnitIdgetHSLibraryName PackageName unPackageName PackageIdPackageIdentifierpkgName pkgVersion ComponentIdInstalledPackageIdUnitId SimpleUnitId Dependency packageId HasUnitIdinstalledUnitIdPackageInstalledinstalledDependsAbiHashbase Data.VersionVersion versionTags versionBranchcontainers-0.5.7.1 Data.Map.BaseMap makeVersion parseVersion showVersionData.Map foldWithKeyfoldinsertLookupWithKey'insertWithKey' insertWith' splitRootvalid showTreeWithshowTree deleteFindMax deleteFindMin splitLookupsplitfromDistinctAscListfromAscListWithKeyfromAscListWith fromAscList toDescList toAscListtoListfromListWithKey fromListWithfromListfromSetkeysSetassocskeyselemsfoldMapWithKey foldlWithKey' foldlWithKey foldrWithKey' foldrWithKeyfoldl'foldlfoldr'foldrmapKeysMonotonic mapKeysWithmapKeysmapAccumRWithKeymapAccumWithKeymapAccumtraverseWithKey mapWithKeymapmapEitherWithKey mapEithermapMaybeWithKeymapMaybepartitionWithKey partition filterWithKeyfilterisProperSubmapOfByisProperSubmapOf isSubmapOfBy isSubmapOf mergeWithKeyintersectionWithKeyintersectionWith intersectiondifferenceWithKeydifferenceWith difference unionWithKey unionWithunion unionsWithunionsmaxViewminViewmaxViewWithKeyminViewWithKeyupdateMaxWithKeyupdateMinWithKey updateMax updateMin deleteMax deleteMinfindMaxfindMindeleteAtupdateAtelemAt lookupIndex findIndexalterupdateLookupWithKey updateWithKeyupdate adjustWithKeyadjustdeleteinsertLookupWithKey insertWithKey insertWithinsert singletonemptylookupGElookupLElookupGTlookupLTfindWithDefault notMembermemberlookupsizenull\\! parseHackage readHackage'HackageDistribution.Hackage.DB.Path hackagePathguessNixIdentifierenabledisableparseKey_haskell _pkgconfig_system_tool isUnknown hashToListGHC.BaseNothing stripPrefix MkDerivation_pkgid _revision_src_subpath _isLibrary _isExecutable_extraFunctionArgs _setupDepends_libraryDepends_executableDepends _testDepends_benchmarkDepends_configureFlags _cabalFlags _runHaddock _jailbreak_doCheck _testTarget_hyperlinkSource_enableLibraryProfiling_enableExecutableProfiling_enableSplitObjs_phaseOverrides_editedCabalFile _metaSectionnormalizeBuildInfo normalizeMetanormalizeSynopsisquote fixGtkBuildshookspkgpkgsbindreplacegtk3Hook haddockHook gitAnnexHookhfusePreConfiguregfPhaseOverrideswxcHookcabalInstallPostInstalldarcsInstallPostInstallxmonadPostInstallagdaPostInstallagda25PostInstallstackOverridesgiGstLibOverridesgiCairoPhaseOverrideshfseventsOverrideswebkitgtk24xHookbindNull enableTestsenableBenchmarks fetchOrFromDBfromDB readFileMay hashCachePathshowPackageIdentifier cabalFromPathcabalFromDirectoryhandleIO cabalFromFile