forked from
tangled.org/core
fork
Configure Feed
Select the types of activity you want to include in your feed.
Monorepo for Tangled
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 buildGoModule,
3 stdenv,
4 htmx-src,
5 lucide-src,
6 inter-fonts-src,
7 ibm-plex-mono-src,
8 tailwindcss,
9 sqlite-lib,
10 goModHash,
11 gitignoreSource,
12}:
13buildGoModule {
14 inherit stdenv;
15
16 pname = "appview";
17 version = "0.1.0";
18 src = gitignoreSource ../..;
19
20 postUnpack = ''
21 pushd source
22 mkdir -p appview/pages/static/{fonts,icons}
23 cp -f ${htmx-src} appview/pages/static/htmx.min.js
24 cp -rf ${lucide-src}/*.svg appview/pages/static/icons/
25 cp -f ${inter-fonts-src}/web/InterVariable*.woff2 appview/pages/static/fonts/
26 cp -f ${inter-fonts-src}/web/InterDisplay*.woff2 appview/pages/static/fonts/
27 cp -f ${ibm-plex-mono-src}/fonts/complete/woff2/IBMPlexMono-Regular.woff2 appview/pages/static/fonts/
28 ${tailwindcss}/bin/tailwindcss -i input.css -o appview/pages/static/tw.css
29 popd
30 '';
31
32 doCheck = false;
33 subPackages = ["cmd/appview"];
34 vendorHash = goModHash;
35
36 tags = "libsqlite3";
37 env.CGO_CFLAGS = "-I ${sqlite-lib}/include ";
38 env.CGO_LDFLAGS = "-L ${sqlite-lib}/lib";
39 env.CGO_ENABLED = 1;
40}