Mirror of @tangled.org/core. Running on a Raspberry Pi Zero 2 (Please be gentle).
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

nix: introduce sqlite-lib package

this is a helper derivation to speed up go builds, it builds sqlite
shared objects and header files which are then passed into
buildGoModule.

Signed-off-by: oppiliappan <me@oppi.li>

authored by

oppiliappan and committed by
Tangled
bced74bc 17fd34fa

+26
flake.lock

This is a binary file and will not be displayed.

+8
flake.nix
··· 23 23 url = "https://github.com/IBM/plex/releases/download/%40ibm%2Fplex-mono%401.1.0/ibm-plex-mono.zip"; 24 24 flake = false; 25 25 }; 26 + sqlite-lib-src = { 27 + url = "https://sqlite.org/2024/sqlite-amalgamation-3450100.zip"; 28 + flake = false; 29 + }; 26 30 gitignore = { 27 31 url = "github:hercules-ci/gitignore.nix"; 28 32 inputs.nixpkgs.follows = "nixpkgs"; ··· 41 37 lucide-src, 42 38 gitignore, 43 39 inter-fonts-src, 40 + sqlite-lib-src, 44 41 ibm-plex-mono-src, 45 42 }: let 46 43 supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"]; ··· 88 83 }; 89 84 in { 90 85 lexgen = final.callPackage ./nix/pkgs/lexgen.nix {inherit indigo;}; 86 + sqlite-lib = final.pkgsStatic.callPackage ./nix/pkgs/sqlite-lib.nix { 87 + inherit (final.pkgsStatic) gcc; 88 + inherit sqlite-lib-src; 91 89 }; 92 90 93 91 # appview packages
+18
nix/pkgs/sqlite-lib.nix
··· 1 + { 2 + gcc, 3 + stdenv, 4 + sqlite-lib-src, 5 + }: 6 + stdenv.mkDerivation { 7 + name = "sqlite-lib"; 8 + src = sqlite-lib-src; 9 + nativeBuildInputs = [gcc]; 10 + buildPhase = '' 11 + gcc -c sqlite3.c 12 + ar rcs libsqlite3.a sqlite3.o 13 + ranlib libsqlite3.a 14 + mkdir -p $out/include $out/lib 15 + cp *.h $out/include 16 + cp libsqlite3.a $out/lib 17 + ''; 18 + }