cabal-version: 3.4-- 3.4 so a bare name in build-depends always means the external-- package: the xz sublibrary must depend on the xz package, and under-- 3.0 an in-package component name shadowed its external namesake-- (the hazard the zstandard library's name dodges, documented there).name: nova-cacheversion: 0.14.0.1synopsis: Nix binary cache protocol: NAR, narinfo, signing and a WAI serverdescription: The Nix binary cache protocol in Haskell: nix-base32, NAR serialization (whole-tree and streaming), narinfo parsing, store paths, Ed25519 signing and upload validation, with an optional WAI cache server. Bounded xz, bzip2 and zstd codecs are the public @nova-cache:xz@, @nova-cache:bzip2@ and @nova-cache:zstandard@ sublibraries.license: Apache-2.0license-file: LICENSEcopyright: 2026 Novavero AI Inc.author: Devon Tomlinmaintainer: devon.tomlin@novavero.aihomepage: https://github.com/Novavero-AI/nova-cachebug-reports: https://github.com/Novavero-AI/nova-cache/issuescategory: Nix, Distributionstability: experimentalbuild-type: Simpletested-with: GHC == 9.14.1extra-doc-files: CHANGELOG.md NOTICE README.mdextra-source-files: cbits/nova_bzip2.hflag server description: Build the cache server executable (pulls in warp and wai-extra) default: False manual: Truelibrary exposed-modules: NovaCache.Base32 NovaCache.Base64 NovaCache.Hash NovaCache.NAR NovaCache.NAR.Stream NovaCache.NarInfo NovaCache.Reclaim NovaCache.SafeName NovaCache.Server NovaCache.Signing NovaCache.Store NovaCache.StorePath NovaCache.Validate build-depends: base >= 4.22 && < 5 , base64-bytestring >= 1.2 && < 1.3 , bytestring >= 0.11 && < 0.13 , containers >= 0.6 && < 0.9 , crypton >= 1.1 && < 3 , directory >= 1.3.8 && < 1.4 , filepath >= 1.4.100 && < 1.6 , http-types >= 0.12 && < 0.13 , ram >= 0.20 && < 1 , stm >= 2.5 && < 2.6 , text >= 2.0 && < 2.2 , time >= 1.9 && < 1.17 , vector >= 0.12 && < 0.14 , wai >= 3.2 && < 3.3 -- The POSIX default executable answer reads the file mode directly -- (S_IXUSR, as upstream's dump does); Windows has no mode bit and -- no unix package. if !os(windows) build-depends: unix >= 2.8 && < 2.9 hs-source-dirs: src default-language: Haskell2010 default-extensions: BangPatterns OverloadedStrings ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns-- The bounded xz decoder as a public sublibrary: a consumer that-- substitutes from xz caches depends on nova-cache:xz, and nobody else-- builds the xz package's bundled liblzma. A sublibrary rather than a-- flag, because a dependency's flag cannot be set from a consumer's-- .cabal file.library xz visibility: public exposed-modules: NovaCache.Xz hs-source-dirs: src default-language: Haskell2010 default-extensions: BangPatterns OverloadedStrings ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns build-depends: base >= 4.22 && < 5 , bytestring >= 0.11 && < 0.13 -- The external xz package, not this very sublibrary: bare names -- are external from cabal-version 3.4 on. , xz >= 5.6.3 && < 5.7-- The bounded bzip2 decoder, the same solver-visible opt-in as xz.-- Historical cache.nixos.org narinfos declare Compression: bzip2, and-- upstream reads an absent Compression field as bzip2, so substituting-- old paths needs the codec. No existing binding bundles libbz2's C-- sources on every platform (bzlib links the system library outside-- Windows), so the module drives libbz2 directly over bzip2-clib --- nothing but the bundled sources - through the cbits shim.library bzip2 visibility: public exposed-modules: NovaCache.Bzip2 hs-source-dirs: src c-sources: cbits/nova_bzip2.c include-dirs: cbits default-language: Haskell2010 default-extensions: BangPatterns OverloadedStrings ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns build-depends: base >= 4.22 && < 5 , bytestring >= 0.11 && < 0.13 , bzip2-clib >= 1.0.8 && < 1.1-- The bounded zstd codec, the same solver-visible opt-in as xz.-- Named zstandard, not zstd: an in-package component name shadows the-- like-named external package in every build-depends of this package,-- so a sublibrary called zstd could never depend on the zstd binding.-- Consumers substituting from zstd caches (or pushing compressed)-- depend on nova-cache:zstandard; the zstd package bundles libzstd's-- C sources, so nobody else builds them.library zstandard visibility: public exposed-modules: NovaCache.Zstd hs-source-dirs: src default-language: Haskell2010 default-extensions: BangPatterns OverloadedStrings ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns build-depends: base >= 4.22 && < 5 , bytestring >= 0.11 && < 0.13 , zstd >= 0.1 && < 0.2executable nova-cache-server if !flag(server) buildable: False main-is: Main.hs hs-source-dirs: exe default-language: Haskell2010 default-extensions: OverloadedStrings ghc-options: -Wall -Wcompat -threaded -rtsopts build-depends: base >= 4.22 && < 5 , bytestring >= 0.11 && < 0.13 , nova-cache , text >= 2.0 && < 2.2 , wai >= 3.2 && < 3.3 , wai-extra >= 3.1 && < 3.2 , warp >= 3.3 && < 3.5test-suite nova-cache-test type: exitcode-stdio-1.0 main-is: Main.hs hs-source-dirs: test default-language: Haskell2010 default-extensions: OverloadedStrings ghc-options: -Wall -Wcompat build-depends: base >= 4.22 && < 5 , base64-bytestring >= 1.2 && < 1.3 , bytestring >= 0.11 && < 0.13 , containers >= 0.6 && < 0.9 , crypton >= 1.1 && < 3 , directory >= 1.3.1.0 && < 1.4 , filepath >= 1.4.100 && < 1.6 , http-types >= 0.12 && < 0.13 , nova-cache -- 2.12 dropped InsufficientCoverage, leaving the four Result -- constructors the suite matches exhaustively. , QuickCheck >= 2.12 && < 2.20 , ram >= 0.20 && < 1 , text >= 2.0 && < 2.2 , time >= 1.9 && < 1.17 , wai >= 3.2 && < 3.3 , wai-extra >= 3.1 && < 3.2 -- The tests that make a FIFO or a socket, or cut short a file a -- stream holds open, run on POSIX alone: Windows has no file mode for -- the walk to refuse them by, and no truncate(2). if !os(windows) build-depends: network >= 3.0 && < 3.3 , unix >= 2.8 && < 2.9test-suite nova-cache-xz-test type: exitcode-stdio-1.0 main-is: XzTest.hs hs-source-dirs: test default-language: Haskell2010 default-extensions: OverloadedStrings ghc-options: -Wall -Wcompat build-depends: base >= 4.22 && < 5 , bytestring >= 0.11 && < 0.13 , nova-cache:xztest-suite nova-cache-bzip2-test type: exitcode-stdio-1.0 main-is: Bzip2Test.hs hs-source-dirs: test default-language: Haskell2010 default-extensions: OverloadedStrings ghc-options: -Wall -Wcompat build-depends: base >= 4.22 && < 5 , bytestring >= 0.11 && < 0.13 , nova-cache:bzip2test-suite nova-cache-zstd-test type: exitcode-stdio-1.0 main-is: ZstdTest.hs hs-source-dirs: test default-language: Haskell2010 default-extensions: OverloadedStrings ghc-options: -Wall -Wcompat build-depends: base >= 4.22 && < 5 , bytestring >= 0.11 && < 0.13 , nova-cache:zstandardsource-repository head type: git location: https://github.com/Novavero-AI/nova-cache branch: main