packages feed

hercules-ci-cnix-store 0.3.3.5 → 0.3.4.0

raw patch · 5 files changed

+128/−13 lines, 5 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Hercules.CNix.Store: inline_c_ffi_6989586621679087783 :: Ptr NixStorePath -> Ptr NixStorePath -> IO CInt
- Hercules.CNix.Store: inline_c_ffi_6989586621679087793 :: Ptr NixStorePath -> IO (Ptr CChar)
- Hercules.CNix.Store: inline_c_ffi_6989586621679087873 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> IO (Ptr (Ref NixStore))
- Hercules.CNix.Store: inline_c_ffi_6989586621679087882 :: Ptr (Ref NixStore) -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679087913 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr CChar -> IO (Ptr (Ref NixStore))
- Hercules.CNix.Store: inline_c_ffi_6989586621679087922 :: Ptr (Ref NixStore) -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679087931 :: Ptr (Ref NixStore) -> IO (Ptr CChar)
- Hercules.CNix.Store: inline_c_ffi_6989586621679087940 :: Ptr (Ref NixStore) -> IO (Ptr CChar)
- Hercules.CNix.Store: inline_c_ffi_6989586621679087964 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> IO CInt
- Hercules.CNix.Store: inline_c_ffi_6989586621679087985 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> IO CInt
- Hercules.CNix.Store: inline_c_ffi_6989586621679087991 :: IO (FunPtr (Ptr NixStorePath -> IO ()))
- Hercules.CNix.Store: inline_c_ffi_6989586621679088019 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr CChar -> CLong -> IO (Ptr NixStorePath)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088049 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr CChar -> CLong -> IO (Ptr NixStorePath)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088057 :: Ptr NixStorePath -> IO (Ptr CChar)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088065 :: Ptr NixStorePath -> IO (Ptr CChar)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088076 :: Ptr (Ref NixStore) -> Ptr NixStorePath -> IO (Ptr CChar)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088102 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr NixStorePath -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088128 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr NixStorePath -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088152 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088173 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088179 :: IO (FunPtr (Ptr NixStorePathWithOutputs -> IO ()))
- Hercules.CNix.Store: inline_c_ffi_6989586621679088191 :: Ptr NixStorePath -> Ptr (CStdSet CStdString) -> IO (Ptr NixStorePathWithOutputs)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088199 :: Ptr NixStorePathWithOutputs -> IO (Ptr NixStorePath)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088222 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr NixStorePathWithOutputs -> IO (Ptr (CStdVector CStdString))
- Hercules.CNix.Store: inline_c_ffi_6989586621679088248 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr (CStdVector NixStorePathWithOutputs) -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088256 :: IO (FunPtr (Ptr Derivation -> IO ()))
- Hercules.CNix.Store: inline_c_ffi_6989586621679088282 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr NixStorePath -> IO (Ptr Derivation)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088318 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr CChar -> CLong -> Ptr CChar -> CLong -> IO (Ptr Derivation)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088341 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr NixStorePath -> IO (Ptr CChar)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088351 :: Ptr Derivation -> IO (Ptr DerivationOutputsIterator)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088362 :: Ptr DerivationOutputsIterator -> Ptr Derivation -> IO CBool
- Hercules.CNix.Store: inline_c_ffi_6989586621679088415 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr CChar -> CLong -> Ptr DerivationOutputsIterator -> Ptr (Ptr CChar) -> Ptr CInt -> Ptr (Ptr NixStorePath) -> Ptr CInt -> Ptr CInt -> Ptr (Ptr CChar) -> Ptr CInt -> Ptr Derivation -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088480 :: Ptr DerivationOutputsIterator -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088488 :: Ptr Derivation -> IO (Ptr CChar)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088496 :: Ptr Derivation -> IO (Ptr CChar)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088519 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr Derivation -> IO (Ptr Strings)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088542 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr Derivation -> IO (Ptr (CStdVector (Ptr NixStorePath)))
- Hercules.CNix.Store: inline_c_ffi_6989586621679088562 :: Ptr DerivationInputsIterator -> Ptr Derivation -> IO CBool
- Hercules.CNix.Store: inline_c_ffi_6989586621679088586 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr DerivationInputsIterator -> IO (Ptr NixStorePath)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088595 :: Ptr DerivationInputsIterator -> IO (Ptr Strings)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088604 :: Ptr DerivationInputsIterator -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088613 :: Ptr DerivationInputsIterator -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088621 :: Ptr Derivation -> IO (Ptr StringPairs)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088644 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr Derivation -> IO (Ptr Strings)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088653 :: Ptr StringPairs -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088662 :: Ptr Strings -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088668 :: IO (FunPtr (Ptr Strings -> IO ()))
- Hercules.CNix.Store: inline_c_ffi_6989586621679088677 :: Ptr Strings -> IO CSize
- Hercules.CNix.Store: inline_c_ffi_6989586621679088686 :: Ptr Strings -> IO (Ptr StringsIterator)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088698 :: Ptr StringsIterator -> Ptr Strings -> IO CBool
- Hercules.CNix.Store: inline_c_ffi_6989586621679088707 :: Ptr StringsIterator -> IO (Ptr CChar)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088717 :: Ptr StringsIterator -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088726 :: Ptr StringPairs -> IO (Ptr StringPairsIterator)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088738 :: Ptr StringPairsIterator -> Ptr StringPairs -> IO CBool
- Hercules.CNix.Store: inline_c_ffi_6989586621679088747 :: Ptr StringPairsIterator -> IO (Ptr CChar)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088756 :: Ptr StringPairsIterator -> IO (Ptr CChar)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088767 :: Ptr StringPairsIterator -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088773 :: IO (Ptr Strings)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088782 :: Ptr Strings -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088798 :: Ptr Strings -> Ptr CChar -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088831 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr (Ref NixStore) -> Ptr (CStdVector (Ptr NixStorePath)) -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088857 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr CChar -> IO (Ptr SecretKey)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088863 :: IO (FunPtr (Ptr SecretKey -> IO ()))
- Hercules.CNix.Store: inline_c_ffi_6989586621679088892 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr NixStorePath -> Ptr SecretKey -> IO CInt
- Hercules.CNix.Store: inline_c_ffi_6989586621679088922 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr CChar -> CLong -> IO (Ptr NixStorePath)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088948 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr NixStorePath -> IO CBool
- Hercules.CNix.Store: inline_c_ffi_6989586621679088981 :: IO (FunPtr (Ptr (Ref ValidPathInfo) -> IO ()))
- Hercules.CNix.Store: inline_c_ffi_6989586621679088989 :: Ptr (Ref ValidPathInfo) -> IO CLong
- Hercules.CNix.Store: inline_c_ffi_6989586621679088997 :: Ptr (Ref ValidPathInfo) -> IO (Ptr CChar)
- Hercules.CNix.Store: inline_c_ffi_6989586621679089020 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref ValidPathInfo) -> IO (Ptr NixStorePath)
- Hercules.CNix.Store: inline_c_ffi_6989586621679089043 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref ValidPathInfo) -> IO (Ptr (CStdVector (Ptr NixStorePath)))
- Hercules.CNix.Store: inline_c_ffi_6989586621679089085 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr (CStdSet NixStorePath) -> Ptr (CStdSet NixStorePath) -> CInt -> CInt -> CInt -> IO ()
+ Hercules.CNix.Settings: getUseSQLiteWAL :: IO Bool
+ Hercules.CNix.Settings: setUseSQLiteWAL :: Bool -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088277 :: Ptr NixStorePath -> Ptr NixStorePath -> IO CInt
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088287 :: Ptr NixStorePath -> IO (Ptr CChar)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088367 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> IO (Ptr (Ref NixStore))
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088376 :: Ptr (Ref NixStore) -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088407 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr CChar -> IO (Ptr (Ref NixStore))
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088416 :: Ptr (Ref NixStore) -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088425 :: Ptr (Ref NixStore) -> IO (Ptr CChar)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088434 :: Ptr (Ref NixStore) -> IO (Ptr CChar)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088458 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> IO CInt
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088479 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> IO CInt
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088485 :: IO (FunPtr (Ptr NixStorePath -> IO ()))
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088513 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr CChar -> CLong -> IO (Ptr NixStorePath)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088543 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr CChar -> CLong -> IO (Ptr NixStorePath)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088559 :: Ptr NixStorePath -> IO (Ptr CChar)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088570 :: Ptr (Ref NixStore) -> Ptr NixStorePath -> IO (Ptr CChar)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088596 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr NixStorePath -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088622 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr NixStorePath -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088646 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088667 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088673 :: IO (FunPtr (Ptr NixStorePathWithOutputs -> IO ()))
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088685 :: Ptr NixStorePath -> Ptr (CStdSet CStdString) -> IO (Ptr NixStorePathWithOutputs)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088693 :: Ptr NixStorePathWithOutputs -> IO (Ptr NixStorePath)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088716 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr NixStorePathWithOutputs -> IO (Ptr (CStdVector CStdString))
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088742 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr (CStdVector NixStorePathWithOutputs) -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088750 :: IO (FunPtr (Ptr Derivation -> IO ()))
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088776 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr NixStorePath -> IO (Ptr Derivation)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088812 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr CChar -> CLong -> Ptr CChar -> CLong -> IO (Ptr Derivation)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088835 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr NixStorePath -> IO (Ptr CChar)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088845 :: Ptr Derivation -> IO (Ptr DerivationOutputsIterator)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088856 :: Ptr DerivationOutputsIterator -> Ptr Derivation -> IO CBool
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088909 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr CChar -> CLong -> Ptr DerivationOutputsIterator -> Ptr (Ptr CChar) -> Ptr CInt -> Ptr (Ptr NixStorePath) -> Ptr CInt -> Ptr CInt -> Ptr (Ptr CChar) -> Ptr CInt -> Ptr Derivation -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088982 :: Ptr Derivation -> IO (Ptr CChar)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088990 :: Ptr Derivation -> IO (Ptr CChar)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089013 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr Derivation -> IO (Ptr Strings)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089036 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr Derivation -> IO (Ptr (CStdVector (Ptr NixStorePath)))
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089045 :: Ptr Derivation -> IO (Ptr DerivationInputsIterator)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089056 :: Ptr DerivationInputsIterator -> Ptr Derivation -> IO CBool
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089080 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr DerivationInputsIterator -> IO (Ptr NixStorePath)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089089 :: Ptr DerivationInputsIterator -> IO (Ptr Strings)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089098 :: Ptr DerivationInputsIterator -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089107 :: Ptr DerivationInputsIterator -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089115 :: Ptr Derivation -> IO (Ptr StringPairs)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089138 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr Derivation -> IO (Ptr Strings)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089147 :: Ptr StringPairs -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089156 :: Ptr Strings -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089162 :: IO (FunPtr (Ptr Strings -> IO ()))
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089171 :: Ptr Strings -> IO CSize
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089180 :: Ptr Strings -> IO (Ptr StringsIterator)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089192 :: Ptr StringsIterator -> Ptr Strings -> IO CBool
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089201 :: Ptr StringsIterator -> IO (Ptr CChar)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089211 :: Ptr StringsIterator -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089220 :: Ptr StringPairs -> IO (Ptr StringPairsIterator)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089232 :: Ptr StringPairsIterator -> Ptr StringPairs -> IO CBool
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089241 :: Ptr StringPairsIterator -> IO (Ptr CChar)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089250 :: Ptr StringPairsIterator -> IO (Ptr CChar)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089261 :: Ptr StringPairsIterator -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089267 :: IO (Ptr Strings)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089276 :: Ptr Strings -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089292 :: Ptr Strings -> Ptr CChar -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089325 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr (Ref NixStore) -> Ptr (CStdVector (Ptr NixStorePath)) -> IO ()
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089351 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr CChar -> IO (Ptr SecretKey)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089357 :: IO (FunPtr (Ptr SecretKey -> IO ()))
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089386 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr NixStorePath -> Ptr SecretKey -> IO CInt
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089416 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr CChar -> CLong -> IO (Ptr NixStorePath)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089442 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr NixStorePath -> IO CBool
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089468 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr NixStorePath -> IO (Ptr (Ref ValidPathInfo))
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089475 :: IO (FunPtr (Ptr (Ref ValidPathInfo) -> IO ()))
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089483 :: Ptr (Ref ValidPathInfo) -> IO CLong
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089491 :: Ptr (Ref ValidPathInfo) -> IO (Ptr CChar)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089514 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref ValidPathInfo) -> IO (Ptr NixStorePath)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089537 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref ValidPathInfo) -> IO (Ptr (CStdVector (Ptr NixStorePath)))
+ Hercules.CNix.Store: inline_c_ffi_6989586621679089579 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr (CStdSet NixStorePath) -> Ptr (CStdSet NixStorePath) -> CInt -> CInt -> CInt -> IO ()
- Hercules.CNix.Store: inline_c_ffi_6989586621679088551 :: Ptr Derivation -> IO (Ptr DerivationInputsIterator)
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088551 :: Ptr NixStorePath -> IO (Ptr CChar)
- Hercules.CNix.Store: inline_c_ffi_6989586621679088974 :: Ptr CInt -> Ptr (Ptr CChar) -> Ptr (Ptr CChar) -> Ptr (Ptr ()) -> Ptr (Ptr AbstractCppExceptionPtr) -> Ptr (Ref NixStore) -> Ptr NixStorePath -> IO (Ptr (Ref ValidPathInfo))
+ Hercules.CNix.Store: inline_c_ffi_6989586621679088974 :: Ptr DerivationOutputsIterator -> IO ()

Files

CHANGELOG.md view
@@ -5,6 +5,16 @@  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## 0.3.4.0 - 2023-06-28++### Added++ - Nix 2.16 support++ - Nix 2.15 support++ - `getUseSQLiteWAL` low level function. (Use of Nix sqlite files is not recommended)+ ## 0.3.3.5 - 2023-03-06  ### Added
hercules-ci-cnix-store.cabal view
@@ -1,7 +1,7 @@ cabal-version: 2.4  name:           hercules-ci-cnix-store-version:        0.3.3.5+version:        0.3.4.0 synopsis:       Haskell bindings for Nix's libstore category:       Nix homepage:       https://docs.hercules-ci.com@@ -24,14 +24,24 @@   description: Build for Nix >=2.4pre*   default: True -flag nix-2_5-  description: Build for Nix >=2.5pre*-  default: True+flag nix-2_15+  description: Build for Nix >=2.15.0+  default: False +flag ide+  description: Whether to enable IDE workarounds. You shouldn't need this.+  default: False+ -- match the C++ language standard Nix is using common cxx-opts+  if flag(nix-2_15)+    cxx-options:+      -std=c++2a+  else+    cxx-options:+      -std=c++17+   cxx-options:-    -std=c++17     -Wall   extra-libraries: stdc++ @@ -41,9 +51,15 @@    if impl(ghc >= 8.10)     ghc-options:-      -optcxx-std=c++17       -optcxx-Wall+    if flag(nix-2_15)+      ghc-options:+        -optcxx-std=c++2a+    else+      ghc-options:+        -optcxx-std=c++17   else+    -- Remove soon     ghc-options:       -optc-std=c++17       -optc-Wall@@ -76,8 +92,8 @@   include-dirs:       include   pkgconfig-depends:-      nix-store >= 2.4 && < 2.15-    , nix-main >= 2.4 && < 2.15+      nix-store >= 2.4 && < 2.17+    , nix-main >= 2.4 && < 2.17   install-includes:       hercules-ci-cnix/store.hxx   hs-source-dirs: src@@ -93,7 +109,8 @@     , unix     , unliftio-core     , vector-  extra-libraries:+  if ! flag(ide)+    extra-libraries:       boost_context   default-language: Haskell2010   default-extensions: DeriveGeneric DeriveTraversable DisambiguateRecordFields FlexibleContexts InstanceSigs LambdaCase MultiParamTypeClasses NoImplicitPrelude OverloadedStrings RankNTypes TupleSections TypeApplications TypeOperators@@ -106,7 +123,7 @@     -fwarn-name-shadowing     -fwarn-incomplete-patterns -test-suite hercules-ci-cnix-store-tests+test-suite hercules-ci-cnix-store-unit-tests   type: exitcode-stdio-1.0   main-is: TestMain.hs   other-modules:@@ -114,6 +131,7 @@       Hercules.CNix.Std.SetSpec       Hercules.CNix.Store.DerivationSpec       Hercules.CNix.Store.TestUtil+      Hercules.CNix.SettingsSpec       Hercules.CNix.VerbositySpec   hs-source-dirs:       test
src/Hercules/CNix/Settings.hs view
@@ -11,11 +11,14 @@     getTrustedPublicKeys,     getNarinfoCacheNegativeTtl,     getNetrcFile,+    getUseSQLiteWAL,+    setUseSQLiteWAL,   ) where  import Data.ByteString.Unsafe (unsafePackMallocCString) import qualified Data.Set as S+import Foreign (fromBool, toBool) import Hercules.CNix.Encapsulation (moveToForeignPtrWrapper) import qualified Hercules.CNix.Std.Set as Std.Set import qualified Hercules.CNix.Std.String as Std.String@@ -106,3 +109,14 @@     =<< [C.exp| const char *{       strdup(nix::settings.netrcFile.get().c_str())     }|]++-- Gets the value of https://nixos.org/manual/nix/stable/command-ref/conf-file.html?highlight=use-sqlite-wal#conf-use-sqlite-wal+getUseSQLiteWAL :: IO Bool+getUseSQLiteWAL = do+  [C.exp| bool { nix::settings.useSQLiteWAL }|] <&> toBool++-- Sets the value of https://nixos.org/manual/nix/stable/command-ref/conf-file.html?highlight=use-sqlite-wal#conf-use-sqlite-wal+setUseSQLiteWAL :: Bool -> IO ()+setUseSQLiteWAL value = do+  let v = fromBool value+  [C.block| void { nix::settings.useSQLiteWAL = $(bool v); }|]
src/Hercules/CNix/Store.hs view
@@ -463,6 +463,27 @@                       [&](DerivationOutputCAFixed dof) -> void {                         typ = 1;                         path = new StorePath(dof.path(store, $fptr-ptr:(Derivation *derivation)->name, nameString));+#if NIX_IS_AT_LEAST(2, 16, 0)+                        std::visit(overloaded {+                          [&](nix::FileIngestionMethod fim_) -> void {+                            switch (fim_) {+                              case nix::FileIngestionMethod::Flat:+                                fim = 0;+                                break;+                              case nix::FileIngestionMethod::Recursive:+                                fim = 1;+                                break;+                              default:+                                fim = -1;+                                break;+                            }+                          },+                          [&](nix::TextIngestionMethod) -> void {+                            // FIXME (RFC 92)+                            fim = -1;+                          }+                        }, dof.ca.getMethod().raw);+#else                         switch (dof.hash.method) {                           case nix::FileIngestionMethod::Flat:                             fim = 0;@@ -474,7 +495,14 @@                             fim = -1;                             break;                         }-                        switch (dof.hash.hash.type) {+#endif++#if NIX_IS_AT_LEAST(2, 16, 0)+                        const Hash & hash = dof.ca.getHash();+#else+                        const Hash & hash = dof.hash.hash;+#endif+                        switch (hash.type) {                           case htMD5:                              hashType = 0;                             break;@@ -491,14 +519,35 @@                             hashType = -1;                             break;                         }-                        hashSize = dof.hash.hash.hashSize;+                        hashSize = hash.hashSize;                         hashValue = (char*)malloc(hashSize);                         std::memcpy((void*)(hashValue),-                                    (void*)(dof.hash.hash.hash),+                                    (void*)(hash.hash),                                     hashSize);                       },                       [&](DerivationOutputCAFloating dof) -> void {                         typ = 2;+#if NIX_IS_AT_LEAST(2, 16, 0)+                        std::visit(overloaded {+                          [&](nix::FileIngestionMethod fim_) -> void {+                            switch (fim_) {+                              case nix::FileIngestionMethod::Flat:+                                fim = 0;+                                break;+                              case nix::FileIngestionMethod::Recursive:+                                fim = 1;+                                break;+                              default:+                                fim = -1;+                                break;+                            }+                          },+                          [&](nix::TextIngestionMethod) -> void {+                            // FIXME (RFC 92)+                            fim = -1;+                          }+                        }, dof.method.raw);+#else                         switch (dof.method) {                           case nix::FileIngestionMethod::Flat:                             fim = 0;@@ -510,6 +559,7 @@                             fim = -1;                             break;                         }+#endif                         switch (dof.hashType) {                           case htMD5:                              hashType = 0;
+ test/Hercules/CNix/SettingsSpec.hs view
@@ -0,0 +1,23 @@+{-# LANGUAGE BlockArguments #-}++module Hercules.CNix.SettingsSpec (spec) where++import Hercules.CNix.Settings+import Protolude+import Test.Hspec++spec :: Spec+spec = do+  describe "setUseSQLiteWAL" do+    it "affects getUseSQLiteWAL" do+      withResettingUseSQLiteWAL do+        for_ [True, False] \v -> do+          setUseSQLiteWAL v+          v' <- getUseSQLiteWAL+          v' `shouldBe` v++-- bracket on global state is a leaky abstraction, so we don't add this+-- to the library.+withResettingUseSQLiteWAL :: IO a -> IO a+withResettingUseSQLiteWAL =+  bracket getUseSQLiteWAL setUseSQLiteWAL . const