-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagda.nix
28 lines (28 loc) · 817 Bytes
/
agda.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
pkgs,
inputs,
...
}: {
home.packages = with pkgs;
# make-agda-search = agda-lib:
# writeShellApplication {
# name = "agda-search-${agda-lib}";
# runtimeInputs = with pkgs; [fzf firefox sqlite];
# text = let
# docset = inputs.agda-docsets.packages.x86_64-linux."${agda-lib}-docset";
# in ''
# sqlite3 ${docset}/${agda-lib}.docset/Contents/Resources/docSet.dsidx "select * from searchIndex" \
# | fzf \
# | cut -d '|' -f 4 \
# | xargs -I % firefox --new-window file://${docset}/${agda-lib}.docset/Contents/Resources/Documents/%
# '';
# };
[
(agda.withPackages (p: [
p.cubical
p.standard-library
]))
# (make-agda-search "standard-library")
# (make-agda-search "cubical")
];
}