Skip to content

Commit 7942fa1

Browse files
committed
Tidy up old notes
1 parent fbcfab3 commit 7942fa1

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

NOTES.md

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7,58 +7,10 @@ Does `cabal sdist` need `cabal.project`?
77
Perhaps using Distribution.Simple directly?
88
Idk, I don't understand sdists.
99

10-
## sources
11-
12-
supporting only tarballs now
13-
14-
- url: https://...
15-
16-
anything curl can handle will work here
17-
18-
- url: file://...
19-
20-
Different versions of the same package can co-exist. The tool will check for name and version collisions.
21-
2210
*Note:* perhaps include hash validation? this can be done later
2311

24-
## revisions?
25-
26-
Files in a special folder
27-
28-
revisions/bar-0.2.0.0.cabal
29-
30-
automatically become revisions for, e.g., package bar version 0.2.0.0
31-
32-
It can be done with hackage-repo-tool update
33-
34-
run_ "hackage-repo-tool" ["update", "--keys", toTextIgnore (_keys config), "--repo", "repo.tmp/", "--verbose"]
35-
36-
Obtaining a package name and version by filename is ok, see https://github.com/haskell/hackage-security/blob/9a5f2d16fc145cbd488c48ab9d177bc3192e303c/hackage-repo-tool/src/Main.hs#L575-L586
37-
38-
*Note:* one could rewrite https://github.com/haskell/hackage-security/blob/9a5f2d16fc145cbd488c48ab9d177bc3192e303c/hackage-repo-tool/src/Main.hs#L196 and do it in one go
39-
40-
## patches
41-
42-
I am not sure whether I want to support patches or not. Basically one could simply fork and point the repo to the new source.
43-
On the otherside, hackage-overlay-repo-tool is made especially for patches so there might be a real need for it.
44-
For the time being,I am not supporting patches.
45-
46-
## output
47-
48-
No more than a directory full of files.
49-
50-
- Can be served over HTTPS
51-
- Served on [ipfs](https://github.com/ipfs-shipyard/ipfs-deploy)
52-
- Committed to git
53-
- Can be tar'gzipped and moved
54-
- All of the above
55-
56-
+ nix-compatible hash of the whole thing
57-
5812
## usage
5913

60-
many ways to use this.
61-
6214
### quick and easy
6315

6416
served through https (nginx, s3, GitHub)

0 commit comments

Comments
 (0)