Anton-Latukha
99da38fa83
treewide: use withFile
2021-08-06 19:29:01 +03:00
Anton-Latukha
c1d54c8886
treewide: use toLText
2021-08-06 19:29:01 +03:00
Anton-Latukha
5d22b9450a
treewide: use pass
2021-08-06 19:29:01 +03:00
Anton-Latukha
c00dedcd3a
treewide: use toText
2021-08-06 19:29:01 +03:00
Anton-Latukha
80f27bb836
Core: Derivation: refactor
2021-08-06 19:29:01 +03:00
Anton-Latukha
e350ee4f60
Core: tests: NarFormat: (data -> newtype) Nar
2021-08-06 19:29:01 +03:00
Anton-Latukha
c4183d22d2
treewide: (LANGUAGE -> language)
2021-08-06 19:29:01 +03:00
Anton-Latukha
8e3955f6a1
Core: cabal: declare default-extensions
2021-08-06 19:29:01 +03:00
Anton-Latukha
f555947627
Remote: use relude as Prelude
2021-08-06 19:28:56 +03:00
Anton-Latukha
3abca41eed
Remote: cabal: declare default-extensions
2021-08-06 17:55:36 +03:00
Anton-Latukha
ef6343be35
Core: use relude as Prelude
2021-08-06 17:55:32 +03:00
Anton-Latukha
eb550bd615
Remote: tests: NixDaemon: refactor
2021-08-06 17:43:23 +03:00
Anton-Latukha
39b55ad645
Core: tests: treewide refactor
2021-08-06 17:43:23 +03:00
Anton-Latukha
9f459aca05
Remote: treewide refactor
2021-08-06 17:43:23 +03:00
Anton-Latukha
b816f41170
treewide: clean-up language extensions
2021-08-06 17:43:23 +03:00
Anton-Latukha
3f5d9092df
{Code, Remote}: require base >=4.12 (GHC 8.6)
2021-08-06 17:43:22 +03:00
Anton-Latukha
21bce33202
CI: GHC (9.0 - 8.6)
2021-08-06 17:43:22 +03:00
Anton-Latukha
bca4094003
Remote: proclaim 0.5.0.0
2021-06-11 01:42:19 +03:00
Anton-Latukha
5a0171daa3
Remote: ChangeLog: prepare to 0.5
2021-06-11 01:42:19 +03:00
Anton Latukha
3b948d112a
Remote: port to Core (0.5) migration to cryptonite ( #161 )
...
Core migrated from `cryptohash` to `cryptonite`, interfaces changed, therefore
the update.
2021-06-10 21:09:11 +03:00
Anton-Latukha
98da3481db
Core: proclaim 0.5
2021-06-10 17:23:23 +03:00
Anton-Latukha
8c67482a67
Core: prepare ChangeLog for 0.5.0.0 release
2021-06-10 17:23:23 +03:00
Anton Latukha
ad4642bf4b
Merge #157 : migration (cryptohash-* -> cryptonite)
2021-06-10 15:27:16 +03:00
Anton-Latukha
e4948a9fe1
Core: upd ChangeLog after migration to cryptonite
2021-06-10 15:24:29 +03:00
Anton-Latukha
97146b41cc
treewide: migrate crypto(hash-* -> nite)
...
Reference:
Main cause:
https://github.com/haskell-hvr/cryptohash-sha512/issues/7
The whole `cryptohash-*` package family is abandoned, there is no
signs of maintainer activity there, so it stopped following Haskell ecosystem &
`base` releases. Knowing the human history & situation around it - it would not
be reviwed, which gives experience to not hardcode on the (specifically when
emotional) dependency.
Experience I drawn from this story is to keep things simplier when possible &
have more flexible systems as a result code.
It was "a bit too much" for what hashing is, for the code to have 2 hashing type
systems (external & internal) & reinventment of `HashAlgorithm` type duplicate.
The whole code was really rigid with a lot of type applicating the data kinds,
those are dependent type features & should be used cautiously, since interface
became rigid to changes, so afterwards it is easier & effective to dismantle
and recreate the subsystem then to evolve it.
Previous hashing history:
https://github.com/haskell-nix/hnix-store/issues/156
https://github.com/haskell-nix/hnix-store/issues/142
https://github.com/haskell-nix/hnix-store/pull/93
https://github.com/haskell-nix/hnix-store/issues/92
https://github.com/haskell-nix/hnix-store/issues/90
https://github.com/haskell-nix/hnix-store/issues/83
https://github.com/haskell-nix/hnix-store/pull/64
https://github.com/haskell-nix/hnix-store/pull/38
https://github.com/haskell-nix/hnix-store/pull/32
https://github.com/haskell-nix/hnix-store/pull/31
https://github.com/haskell-nix/hnix-store/pull/28
https://github.com/haskell-nix/hnix-store/pull/27
https://github.com/haskell-nix/hnix-store/pull/25
https://github.com/haskell-nix/hnix-store/issues/18
https://github.com/haskell-nix/hnix-store/pull/14
2021-06-10 15:17:40 +03:00
Anton-Latukha
3ecbb2f5a5
Core: tests: NarFormat: m clean-up
2021-06-10 13:18:41 +03:00
Anton-Latukha
f395a0aba0
Core: Internal.Nar.Streamer: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
8c7dc152d9
Core: Internal.Nar.Parser: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
1200a4839f
Core: Internal.Truncation: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
d196ba5448
Core: Internal.StorePath: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
099d02dba3
Core: Internal.Signature: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
a2798b034a
Core: Internal.Hash: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
ef8a2c044c
Core: Internal.Base32: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
d0b58e9e3d
Core: Internal.Base: explicit export list
2021-06-10 13:18:41 +03:00
Anton-Latukha
2af74986de
Core: Internal.Hash: take-out Truncated from HashAlgorythm & treewide change
...
M hnix-store-core/src/System/Nix/Hash.hs
M hnix-store-core/src/System/Nix/Internal/Hash.hs
M hnix-store-core/src/System/Nix/Internal/StorePath.hs
M hnix-store-core/src/System/Nix/ReadonlyStore.hs
M hnix-store-core/src/System/Nix/StorePath.hs
M hnix-store-core/tests/Arbitrary.hs
M hnix-store-core/tests/Hash.hs
2021-06-10 13:18:41 +03:00
Anton-Latukha
978aeb09ba
Core: Internal.Base: m import clean-up
2021-06-10 13:18:41 +03:00
Anton-Latukha
8ddca09609
Core: Internal: add module Truncation
2021-06-10 13:18:41 +03:00
Anton-Latukha
449ba89a90
Core: Internal: Hash: truncateDigest(->InNixWay)
...
Please, see the notes in the code.
2021-06-10 13:18:40 +03:00
Anton-Latukha
d8b1498957
Core: Internal: Hash: truncateDigest: refactor
2021-06-10 13:18:40 +03:00
Anton-Latukha
49699e9ce3
Core: Internal: mv Base dec -> Base, Hash.decode(Base->DigestWith)
2021-06-10 13:18:40 +03:00
Anton-Latukha
f5ba0fcfa4
Core: Internal: mv Base enc -> Base, Hash.encode(InBase->DigestWith)
2021-06-10 13:18:40 +03:00
Anton-Latukha
d0295a1613
Core: treewide: m clean-up
2021-06-10 13:18:40 +03:00
Anton-Latukha
bdeeede9ae
Core: Internal: Base: (-> Nix)Base32
...
To name it honestly. It is not a standard Base32 encoding.
NixBase32 needs specific treatment over the stack (now & in the future), so it
is better to distinquish it from default encoding.
2021-06-10 13:18:40 +03:00
Anton-Latukha
2ae2b49a0b
Core: Internal: Base32: decode: Left: name honestly
2021-06-10 13:18:40 +03:00
Anton-Latukha
0343740efb
Core: Internal: Base32: m refactor
2021-06-10 13:18:40 +03:00
Anton-Latukha
79b461962f
Core: Internal: form Base
...
It is tiny, but it is a start of separation of the Base encodings from hashing subsystem.
2021-06-10 13:18:40 +03:00
Anton-Latukha
145e7de63f
Core: Internal.Hash: qualify GHC.TypeList as Kind
...
A preparation for further work.
2021-06-10 13:18:40 +03:00
Anton-Latukha
35da3c9ae1
overlay.nix: stop loading Core from master for Remote
2021-06-10 13:16:54 +03:00
Anton-Latukha
d390fcda7d
shell.nix: layouting
2021-06-10 13:16:54 +03:00
Anton Latukha
0eb0e023c9
{Core, Remote}: proclaim 0.4.3.1 ( #155 )
2021-05-30 21:06:23 +03:00