Commit Graph

497 Commits

Author SHA1 Message Date
Richard Marko
747225cb1a core: StorePath add HasStoreDir, getStoreDir 2023-11-18 18:44:44 +01:00
Richard Marko
6160cfd523 core: StorePathMetadata -> StorePath.Metadata 2023-11-18 18:44:44 +01:00
Richard Marko
ac02887e5b where right after brace 2023-11-18 18:44:44 +01:00
Richard Marko
019d1af51e core: ReadOnlyStore - explicit exports, neaten 2023-11-18 18:44:44 +01:00
Richard Marko
a4618cc95c core: note about Metadata corresponding to ValidPathInfo
I'm not going to rename this one for now.
2023-11-18 18:44:44 +01:00
Richard Marko
83ea6487fd core: move StorePathTrust before Metadata, expand comment mentioning ultimate 2023-11-18 18:44:44 +01:00
Richard Marko
acf8935771 CI: enable GHC8107 as well 2023-11-18 18:44:44 +01:00
Richard Marko
7a5ec09e4a overlay.nix: add some 1.0.6 2023-11-18 18:44:44 +01:00
John Ericson
7186850478 core: System.Nix.Hash add HashAlgo
prereq for replacing SomeNamedDigest
with (DSum HashAlgo Digest)
2023-11-18 13:02:55 +01:00
Richard Marko
fc0133f5a1 core: add System.Nix.StorePath.parsePathFromText 2023-11-18 11:19:07 +01:00
Richard Marko
ca472249f9 base 4.18 re-exports all of Applicative 2023-11-18 11:19:07 +01:00
Richard Marko
4e96479f7f core: neaten StorePath 2023-11-18 11:19:07 +01:00
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