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
Richard Marko
6f21bb30ef
remote: add Recursive newtype for addToStore
2023-11-15 08:29:49 +01:00
Richard Marko
3b3752d758
core: don't (re)export StorePathHashPart constructor
2023-11-15 08:29:49 +01:00
Richard Marko
c095d12427
remote: move flags to Types, wrap in newtype
2023-11-15 08:29:49 +01:00
Richard Marko
b1e590606e
core: don't (re)export StorePathName constructor
2023-11-15 08:29:49 +01:00
Richard Marko
e7622b3269
remote: move default-extensions into common stanza
2023-11-15 08:29:49 +01:00
Richard Marko
3b44930603
Merge pull request #228 from sorki/srk/release/core07
...
Release core `0.7`
2023-11-15 08:19:25 +01:00
Richard Marko
c9a3f5a929
overlay.nix: refactor using pipe, add buildFromSdist
2023-11-15 07:51:30 +01:00
Richard Marko
f9edde00ca
core: add case-conflict.nar fixture to extra-source-files
2023-11-15 07:46:29 +01:00
Richard Marko
8e2399dd95
Merge pull request #229 from sorki/srk/buildRemoteReadme
...
remote: build README.md via cabal
2023-11-14 11:04:34 +01:00
Richard Marko
5bad6836c5
remote: build README.md via cabal
...
Added as `remote-readme` executable.
Closes #47 .
2023-11-14 09:45:29 +01:00
Richard Marko
12732e62e3
remote: bump core bounds to require 0.7
...
Related to #227
2023-11-14 09:31:19 +01:00
Richard Marko
242c475993
Bump core to 0.7
...
Related to #227
2023-11-14 09:31:04 +01:00
Richard Marko
03e4d0d76e
Merge pull request #218 from sandydoo/fix/213
...
Handle case conflicts on case-insensitive filesystems
2023-11-13 16:53:00 +01:00
Sander
372a561ec2
Update changelog with case-hack support
2023-11-13 18:10:11 +04:00
Sander
33a7585c8a
Expose NarOptions
2023-11-13 18:09:19 +04:00
Sander
c68762f8d7
Test the case hack against a NAR fixture with case conflicts
2023-11-13 17:13:44 +04:00
Sander
0092a2952f
Implement case-insensitive hack
2023-11-13 17:13:44 +04:00
Richard Marko
a63e522201
Merge pull request #224 from sandydoo/fix/read-file
...
Use the narReadFile effect in the NAR streamer
2023-11-13 10:08:11 +01:00
Richard Marko
5b66d53bb5
Merge pull request #226 from sandydoo/fix/not-enough-input
...
Fix NAR parsing failure when not enough input is available
2023-11-13 10:06:16 +01:00
Richard Marko
696c839f2c
Merge pull request #223 from sorki/srk/haskell-ci
...
Rework CI
2023-11-13 10:02:30 +01:00