Commit Graph

51 Commits

Author SHA1 Message Date
Greg Hale
067feafb74 Drop memory and the dependencies of cryptonite 2018-09-13 09:44:12 -04:00
Greg Hale
3795617fa1 Merge branch 'cryptohash-sha256' into fewer-dependencies 2018-09-12 10:33:47 -04:00
Greg Hale
63b0c6cee1
Merge pull request #23 from haskell-nix/conditional-memory-tests
Put bounded-memory NAR format tests behind a cabal flag
2018-09-12 08:49:57 -04:00
Greg Hale
d6fa9a1044 Update name of Derivation type to synchronize -core and -remote libraries 2018-09-11 23:33:11 -04:00
Greg Hale
d23195c710 Fix haddock formatting 2018-09-11 23:29:42 -04:00
Greg Hale
6734486e06 Put bounded-memory NAR format tests behind a cabal flag deaulting to False
The test suite fails when run naively, due to the use of haskell code that
uses gc statistics, and requires `+RTS -T` flags be passed to the testsuite.

We opt in to this flag for CI and for any default.nix that packages
hnix-store-core.
2018-09-11 23:09:00 -04:00
Greg Hale
5de9fb6744 add base32 hashing tests - currently failing 2018-09-11 22:44:58 -04:00
Greg Hale
73070f3865 debugging base32 hash 2018-09-11 22:41:25 -04:00
Doug Beardsley
ec29e02e2b
Merge pull request #17 from haskell-nix/derivation-restructuring
Expand Derivation data type
2018-08-05 14:52:38 -04:00
Greg Hale
4541415868 Move StorePathHash constructor in the export list to indicate Inernal-ness 2018-08-05 14:52:11 -04:00
Greg Hale
36c40405ab Add ability to create and render store path hashes 2018-08-05 14:45:43 -04:00
Doug Beardsley
007a2107d6 Delete old comment 2018-08-05 14:39:59 -04:00
Doug Beardsley
bc946a40b1 Expand Derivation data type 2018-08-05 12:16:29 -04:00
Greg Hale
6ee50db030 Drop Crypto module 2018-08-05 11:22:41 -04:00
Greg Hale
a7a41f375c Merge branch 'master' into cryptohash-sha256
Cleanup haddock parse errors
2018-08-05 11:18:23 -04:00
Greg Hale
05a1b896e8 Add function to convert bytestring to nix-style base32 strings 2018-08-05 11:02:29 -04:00
Shea Levy
7a9fcdb22f
Duplicate information to appease bad tooling 2018-08-05 10:58:17 -04:00
Greg Hale
7ecef6616f
Merge pull request #13 from sorki/remote
WIP: Remote store
2018-08-04 18:36:02 -04:00
Richard Marko
d5eb32e5d9 squash! hnix-store-remote prototype
drop ExceptT todo
2018-07-17 11:21:50 +02:00
Richard Marko
cf51ba3b39 temp: add hnix-store-temporary-live-test 2018-07-17 11:15:21 +02:00
Richard Marko
b8354d8b42 squash! hnix-store-remote prototype
use ExceptT, concat logs, utility log functions
2018-07-17 10:05:17 +02:00
Richard Marko
a01bff9eb8 squash! hnix-store-remote prototype
add missing Util
2018-07-17 10:03:08 +02:00
Richard Marko
be8311f4b9 add cabal.project 2018-07-16 09:12:34 +02:00
Richard Marko
d8828913ec hnix-store-remote prototype 2018-07-16 09:12:23 +02:00
Richard Marko
c37c3017e5 Extend core types 2018-07-16 09:09:23 +02:00
Greg Hale
2075aae5ac
Merge pull request #7 from imalsogreg/master
NAR parser/generator
2018-05-15 11:11:39 -04:00
Greg Hale
7f1928edcb Add NAR parser-generator and tests 2018-05-15 11:09:20 -04:00
Shea Levy
262cdc7f58
README: Elaborate on project goals and layout.
Fixes #9.
2018-05-13 21:18:49 -04:00
Greg Hale
9b673371a6 Merge branch 'master' of github.com:haskell-nix/hnix-store 2018-04-30 03:06:07 -07:00
Greg Hale
2ba0a4bea0 Add provisional NAR parser and generator 2018-04-30 03:01:14 -07:00
Shea Levy
da0f19a65f
Merge branch 'addFile' of git://github.com/rpglover64/hnix-store 2018-04-29 15:34:03 -07:00
Alex Rozenshteyn
2cde70f249 Make the bytestring lazy 2018-04-29 15:29:47 -07:00
Alex Rozenshteyn
cf214ad2c3 Add effect for adding file to store 2018-04-29 13:55:48 -07:00
Gabriel Gonzalez
e750f60609 Permit validPaths to use effects
According to @shlevy, whether or not a rooted path is a valid path is
not an intrinsic property of the rooted path and requires a side effect
to determine, so this change modifies the `StoreEffects` record to
reflect that.
2018-04-29 13:44:35 -07:00
Shea Levy
972e2c706f
StoreEffects: Add pathFromHashPart. 2018-04-28 03:44:26 -07:00
Shea Levy
49c1017f0e
StoreEffects: Add derivationOutputNames. 2018-04-28 03:41:48 -07:00
Shea Levy
c7d367f54c
StoreEffects: Add derivationOutputs 2018-04-28 03:39:51 -07:00
Shea Levy
ad6f613c6c
Add validDerivers 2018-04-28 03:37:31 -07:00
Shea Levy
12a75f5c47
validPath -> validPaths.
We don't need both.
2018-04-27 19:50:03 -07:00
Shea Levy
3c23fed2ac
ReadonlyStoreEffects -> StoreEffects.
We can break out into readonly or binary cache or whatever later if need be.
2018-04-27 19:49:38 -07:00
Shea Levy
561fda594b
ReadonlyStoreEffects: Add subtistutable path info query 2018-04-27 05:49:42 -07:00
Shea Levy
ead433277e
ReadonlyStoreEffects: Add rootedPath operation. 2018-04-27 05:37:49 -07:00
Shea Levy
f21f036d7e
ReadonlyStoreEffects: Add a referrers query. 2018-04-27 05:12:41 -07:00
Shea Levy
f086a5c5a9
isValidPath -> validPath 2018-04-27 04:51:35 -07:00
Shea Levy
02e1adf263
ReadonlyStoreEffects: Operate over rooted and valid paths. 2018-04-27 04:48:29 -07:00
Shea Levy
f26c6edd26
Truncated hash: Remove bogus Coercible constraint.
We can never satisfy it because Digest's constructor isn't exported.
2018-04-27 04:37:02 -07:00
Shea Levy
5629a13b1e
Add isValidPath effect. 2018-04-26 21:42:56 -07:00
Shea Levy
8b7a367021
Add store path type. 2018-04-26 21:33:06 -07:00
Shea Levy
d0fd35ba81
Formatting tweak 2018-04-26 08:37:20 -07:00
Shea Levy
d1e08a7a48
Truncated cryptographic hashes implementation. 2018-04-26 08:17:03 -07:00