Commit Graph

55 Commits

Author SHA1 Message Date
Richard Marko
862e01b0c3 Next changelog sections 2020-12-30 14:46:26 +01:00
Richard Marko
3e043dc99d README tweaks and pruning 2020-12-30 14:46:26 +01:00
Richard Marko
e7c1aa7a7b remote: add bounds for hnix-store-core 2020-12-30 14:15:21 +01:00
Richard Marko
3d6487d0e3 Release 0.4 2020-12-30 14:14:57 +01:00
Anton Latukha
43313d0870
hnix-store-{core,remote}: allow also base16-bytestring < 1.0 (#100) 2020-12-30 01:54:31 +02:00
Anton-Latukha
ba91603cb0
remote: tmp-override-cryptohash-sha512
cryptohash-sha512 unmaintained, PR adds support of base 4.14 (GHC 8.10).

A  hnix-store-remote/cabal.project
2020-12-22 21:04:53 +02:00
Anton Latukha
1a4aa98514
remote: cosmetic
Co-authored-by: Richard Marko <srk@48.io>
2020-12-17 13:06:26 +02:00
Anton Latukha
181f5fc0a8
remote: cosmetic
Co-authored-by: Richard Marko <srk@48.io>
2020-12-17 13:05:58 +02:00
Anton-Latukha
5d160cd5c5
core & remote: cosmetics 2020-12-17 00:58:07 +02:00
Anton-Latukha
54ec4855ba
core & remote: refactor (Digest <-> BaseNN) encodeInBase & decodeBase
also rename functions `encodeIn` `decode` to `encodeInBase` `decodeBase`
2020-12-17 00:56:00 +02:00
Richard Marko
353ac1511c ChangeLog(s): release 0.3.0.0 2020-11-29 15:14:26 +01:00
Richard Marko
914f16fcb1 remote: fix contentAddressableAddressBuilder to work with SomeDigest 2020-11-16 11:56:31 +01:00
Richard Marko
f9bff5907e remote: add lower bound for hnix-store-core 2020-11-16 11:43:00 +01:00
Richard Marko
df2937eb86 remote: drop build-tool-depends: nix:nix-daemon from cabal file 2020-11-16 11:41:42 +01:00
Richard Marko
ccc8d9c1ee remote: mention removal of addToStoreNar in ChangeLog 2020-11-16 11:41:42 +01:00
Richard Marko
313ae0de37 remote: bump version to 0.3.0.0 2020-11-16 11:41:42 +01:00
Richard Marko
2497d37d35
Merge pull request #75 from layus/fix-build
[Quickfixes] Fix tests and build of hnix-store-remote
2020-11-13 23:36:12 +01:00
Guillaume Maudoux
272cc6f09d Fix tests for queryPathInfoUncached 2020-11-11 23:29:06 +01:00
Guillaume Maudoux
b3cffef050 Propagate Nar streaming to the remote store 2020-11-11 23:29:06 +01:00
Guillaume Maudoux
ffc0cc4519 Fix text encoding to utf8 2020-11-11 22:57:49 +01:00
Guillaume Maudoux
f0d0d12f83 Add support for base64 and sha512
cryptohash-sha512 is not yet updated to work with ghc 8.10.
Some jailbreaking is required.
2020-11-03 22:40:56 +01:00
Guillaume Maudoux
5b91fcae07 Fix parsing of cas path adresses 2020-07-24 22:25:52 +02:00
Richard Marko
dff752750d remote: Put tests behind io-testsuite flag
Disabled by default since it requires `nix-daemon` binary
and Linux namespaces support.

For development this can be enabled by

```
cabal configure --flag=io-testsuite
```

or by adding

```
flags: +io-testsuite
```

to `cabal.project.local`

Enabled by `callCabal2nixWithOptions` in `overlay.nix` so
it is tested by `nix-build` and `nix-shell` brings all
test dependencies.

This is fine on NixOS where `build-tool-depends: nix:nix-daemon` works
and we have namespaces supported.
2020-07-14 13:27:24 +02:00
Richard Marko
850bafdb84 remote: Add ChangeLog.md 2020-07-14 13:27:24 +02:00
Richard Marko
5f33d9755b remote: add buildDerivation and test
Closes #20.
2020-07-14 13:27:24 +02:00
Richard Marko
11277253c0 switch hackage category from System to Nix 2020-07-14 13:27:24 +02:00
Richard Marko
1f862114c6 simple store path root, remote store rework
Closes #15, #16, #21, #22, #62.
2020-07-14 13:27:24 +02:00
tv
3a24d3423b
hnix-store-remote README: fix example 2019-03-28 21:32:31 +01:00
Shea Levy
df43823868
hnix-store-remote: Remove erroneous path putting/getting.
mkPath's logic was completely wrong (tried to make a PathName out of
the entire path, made up a hash based on the whole path rather than
parsing base32) and putPath ignored the store directory and the hash
part.

Much of the code that depended on these functions was actually
correct, but ultimately did the wrong thing. We can resurrect those
from git once the primitives are correctly implemented.
2019-03-22 08:38:09 -04:00
Shea Levy
13e0724344
Remote: Remove unimplemented ops.
We can add implementations later.
2019-03-22 08:38:09 -04:00
Shea Levy
e63bcd61dd
Remove hnix-store-temporary-live-test.
We should use repl modules or proper test suites for things like
this.
2019-03-22 08:38:09 -04:00
Shea Levy
91105c05c6
Lorri + direnv. 2019-03-19 20:52:25 -04:00
Shea Levy
0f50f40ffb
Hackage-safe 2019-03-18 17:20:31 -04:00
Shea Levy
a8aaa9b534
Rename HasDigest to ValidAlgo. 2019-03-11 03:14:34 -04:00
Shea Levy
3ad41dc6f6
Remove value-level hash algorithms.
We can use NamedHashAlgorithm to get a name where relevant, and soon
the pair of (recursive, Proxy) :: (Bool, Proxy algo) will be replaced
with a separate type which will let us drop the proxies.

Also, we drop logic from addToStore in the remote impl that was copied
from C++ compatibility code for very old daemon versions.
2019-03-10 19:07:17 -04:00
John Ericson
3fde7c1580 Merge remote-tracking branch 'origin/master' into add-to-store 2019-03-10 13:21:18 -04:00
Greg Hale
cf9fbf06c8 Fix addToStore message encoding and do some cleanup 2019-03-10 10:29:17 -04:00
Shea Levy
0367156509
Local shell.nixes to make flycheck happy. 2019-03-09 19:04:11 -05:00
Shea Levy
440dfebc28
Build expressions. 2019-03-09 18:32:01 -05:00
Greg Hale
b8568a4549 Merge branch 'add-to-store' of github.com:haskell-nix/hnix-store into add-to-store 2019-03-09 11:39:59 -05:00
Greg Hale
547165d22e Add useful garbage 2019-03-09 11:32:23 -05:00
Greg Hale
759abd9f94 nareffetsio for addToStore in hnix-store-remote 2018-12-28 19:28:11 -05:00
Greg Hale
4c650ca750 WIP addToStore protocol implementation 2018-12-28 19:28:11 -05:00
Greg Hale
a7120f60cc Reflect type level hash algo to value 2018-12-28 19:28:11 -05:00
Greg Hale
7bd991a52e add nix expressions for building hnix-store-* 2018-12-28 11:00:31 -05:00
Greg Hale
34f2ad0287 nareffetsio for addToStore in hnix-store-remote 2018-11-18 14:29:10 -05:00
Greg Hale
7bd82c9ce9 WIP addToStore protocol implementation 2018-11-18 14:27:23 -05:00
Greg Hale
6f1626a0ef Reflect type level hash algo to value 2018-11-18 12:05:44 -05:00
Greg Hale
966aa4a782 Remove cryptonite, foundation, basement and memory from all packages 2018-09-30 19:05:10 -04:00
Greg Hale
d6fa9a1044 Update name of Derivation type to synchronize -core and -remote libraries 2018-09-11 23:33:11 -04:00