Richard Marko
bb2184f5e0
ContentAddressableAddress -> ContentAddress, separate module
2023-11-18 11:19:07 +01:00
Richard Marko
dce9e157cc
core: move digestBuilder to System.Nix.Hash
2023-11-18 11:19:07 +01:00
Richard Marko
8b56d8abc4
core: move Arbitrary Digest, SomeNamedDigest, extend
2023-11-18 11:19:07 +01:00
Richard Marko
2dccf433be
remote: drop conditional -Wunused-packages
2023-11-18 09:22:34 +01:00
Richard Marko
a3d2b20afd
remote: prune extensions
2023-11-18 09:22:34 +01:00
Richard Marko
658a566a02
remote: language -> LANGUAGE in pragmas
2023-11-18 09:22:34 +01:00
Richard Marko
0b2f3d3cbc
remote: drop global OverloadedStrings
2023-11-18 09:22:34 +01:00
Richard Marko
39cff26d59
remote: drop build-depends from common stanza
2023-11-18 09:22:34 +01:00
Richard Marko
2fbb602896
core: move default-language to common stanza
2023-11-18 09:22:34 +01:00
Richard Marko
ea03ee9b08
core: revert tests/Hash to its original neat state
2023-11-18 09:22:34 +01:00
Richard Marko
894db979db
core: move extensions to common stanza
...
Sensibly
2023-11-17 19:59:34 +01:00
Richard Marko
dc885eafff
enable Werror in CI
2023-11-17 19:55:26 +01:00
Richard Marko
86a7b58620
core: drop relude
...
I prefer explicit imports vs magic and this causes
an unused packages warning to pop (with no workaround or fix in sight).
2023-11-17 19:55:26 +01:00
John Ericson
a2f35861da
Squash away internal
...
Closes #234
2023-11-17 19:55:26 +01:00
Richard Marko
e842e139aa
.gitignore: result and result-*
2023-11-17 14:16:19 +01:00
cidkidnix
843ee624a7
.gitignore add cabal.project.local, attic, tags
2023-11-17 14:09:58 +01:00
Richard Marko
a285d46fe3
core: nar: fix thesis link
2023-11-17 13:45:11 +01:00
Richard Marko
3b06982717
Merge pull request #231 from sorki/srk/cereal
...
remote: start transitioning from binary to cereal
2023-11-17 13:08:07 +01:00
Richard Marko
cefbca3a01
remote: move +io-testsuite from cabal.project.local to cabal.project
2023-11-17 10:18:05 +01:00
Richard Marko
e484ee77d2
remove cabal.project from subdirs
2023-11-17 10:18:05 +01:00
Richard Marko
9e11428824
remote: actually use build-remote flag, disable by default, enable via cabal.project
2023-11-17 10:17:56 +01:00
Richard Marko
2e1cab22b3
move ContentAddressableAddress builder and parser to core, add roundtrip prop
2023-11-17 08:03:40 +01:00
Richard Marko
b80ee47f6a
Add Default StoreDir instance
2023-11-16 13:25:20 +01:00
Richard Marko
e6740b5704
add storePathHashPartToText
2023-11-16 13:18:01 +01:00
Richard Marko
e6f016d72f
Convert StorePathMetadata into Metadata a
...
Also derive bunch of common instances.
Closes #147
2023-11-16 07:22:45 +01:00
Richard Marko
a75162d826
core: derive Eq, Enum, Generic, Hashable Ord, Show for NarHashMode
2023-11-16 07:22:44 +01:00
Richard Marko
1413c15822
core: derive Eq, Generic, Ord, Show for ContentAddressableAddress
2023-11-16 07:22:44 +01:00
Richard Marko
f70460f0d4
core: derive Generic to StorePath
2023-11-16 07:22:44 +01:00
Richard Marko
e332afbdf0
core: add Generic, Show for Signature and NarSignature
2023-11-16 07:22:44 +01:00
Richard Marko
abc57f5975
core: Add Eq and Ord for SomeNamedDigest
2023-11-16 07:22:44 +01:00
Richard Marko
ef9fb46f89
core: Fix unused warnings in Nar
2023-11-16 07:05:05 +01:00
Richard Marko
3608451559
add Serialize for Derivation, add getPathOrFail
2023-11-15 18:36:28 +01:00
Richard Marko
c53c10721b
add Serialize for BuildResult
2023-11-15 18:36:28 +01:00
Richard Marko
7f4aeae935
add BuildStatus ResolvesToAlreadyValid and NoSubstituters
2023-11-15 18:36:28 +01:00
Richard Marko
99e6217cf9
Switch BuildResult builtTimes from Integer to Int
2023-11-15 18:36:28 +01:00
Richard Marko
ddc914bcb4
remote: add Serialize instances for BuildMode, BuildStatus, Text + tests
2023-11-15 18:36:28 +01:00
Richard Marko
3e26a0dd2f
core: add GenericArbitrary derived instances
...
for `Build` and `Derivation` modules.
Switch derivation path parser to use
`Nix.Derivation.textParser` like `nix-derivation` does.
2023-11-15 18:36:28 +01:00
Richard Marko
34e788e312
core: add RecordWildCards, ScopedTypeVariables to default-extensions
2023-11-15 18:36:28 +01:00
Richard Marko
319fd00b91
remote: drop relude
...
I prefer explicit imports vs magic and this causes
an unused packages warning to pop (with no workaround or fix in sight).
2023-11-15 18:36:28 +01:00
Richard Marko
40838bd6dd
Introduce InvalidPathError
2023-11-15 10:24:59 +01:00
Richard Marko
445f59df6d
remote: start transitioning from binary to cereal
...
Strict by default, with round trip props.
Nix-like serialization primitives for now
via System.Nix.Store.Remote.Serialize.Prim
2023-11-15 09:46:48 +01:00
Richard Marko
4734067134
Merge pull request #230 from sorki/srk/safety
...
newtypes, Arbitrary instances, chores
2023-11-15 09:39:47 +01:00
Richard Marko
863852d353
core: CHANGELOG cleanup
2023-11-15 09:01:10 +01:00
Richard Marko
e81932aa77
remote: CHANGELOG cleanup
2023-11-15 08:49:38 +01:00
Richard Marko
82fc838af0
ChangeLog.md -> CHANGELOG.md, add README.lhs for remote
2023-11-15 08:42:56 +01:00
Richard Marko
522244b216
core: CHANGELOG
2023-11-15 08:40:29 +01:00
Richard Marko
5dc1802665
core: move Arbitrary instances near their types
...
This allows us to use them in remote serialization
round trip props.
Couple of them are not needed anymore (`NixLike` is the
default now) so whole `tests/Arbitrary` is gone.
2023-11-15 08:29:49 +01:00
Richard Marko
2a6fd965f6
remote: common - add RecordWildCards, ScopedTypeVariables
2023-11-15 08:29:49 +01:00
Richard Marko
b98fb44d7f
remote: rename testsuite to remote-io, move to tests-io
2023-11-15 08:29:49 +01:00
Richard Marko
fe33fba30b
Drop StorePathSet type alias
2023-11-15 08:29:49 +01:00