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: use filesets instead of gitignore.nix

This allows us to easily do things like ignoring Nix source files within our
source tree (also done in this commit), which prevents unnecessary rebuilds.

Signed-off-by: Winter <winter@winter.cafe>

authored by

Winter and committed by
Tangled
3c8332c6 a73e3189

+15 -18
flake.lock

This is a binary file and will not be displayed.

+7 -6
flake.nix
··· 37 37 url = "https://sqlite.org/2024/sqlite-amalgamation-3450100.zip"; 38 38 flake = false; 39 39 }; 40 - gitignore = { 41 - url = "github:hercules-ci/gitignore.nix"; 42 - inputs.nixpkgs.follows = "nixpkgs"; 43 - }; 44 40 }; 45 41 46 42 outputs = { ··· 47 51 htmx-src, 48 52 htmx-ws-src, 49 53 lucide-src, 50 - gitignore, 51 54 inter-fonts-src, 52 55 sqlite-lib-src, 53 56 ibm-plex-mono-src, ··· 57 62 58 63 mkPackageSet = pkgs: 59 64 pkgs.lib.makeScope pkgs.newScope (self: { 60 - inherit (gitignore.lib) gitignoreSource; 65 + src = let 66 + fs = pkgs.lib.fileset; 67 + in 68 + fs.toSource { 69 + root = ./.; 70 + fileset = fs.difference (fs.intersection (fs.gitTracked ./.) (fs.fileFilter (file: !(file.hasExt "nix")) ./.)) (fs.maybeMissing ./.jj); 71 + }; 61 72 buildGoApplication = 62 73 (self.callPackage "${gomod2nix}/builder" { 63 74 gomod2nix = gomod2nix.legacyPackages.${pkgs.system}.gomod2nix;
+2 -3
nix/pkgs/appview.nix
··· 8 8 ibm-plex-mono-src, 9 9 tailwindcss, 10 10 sqlite-lib, 11 - gitignoreSource, 11 + src, 12 12 }: 13 13 buildGoApplication { 14 14 pname = "appview"; 15 15 version = "0.1.0"; 16 - src = gitignoreSource ../..; 17 - inherit modules; 16 + inherit src modules; 18 17 19 18 postUnpack = '' 20 19 pushd source
+2 -3
nix/pkgs/genjwks.nix
··· 1 1 { 2 - gitignoreSource, 2 + src, 3 3 buildGoApplication, 4 4 modules, 5 5 }: 6 6 buildGoApplication { 7 7 pname = "genjwks"; 8 8 version = "0.1.0"; 9 - src = gitignoreSource ../..; 10 - inherit modules; 9 + inherit src modules; 11 10 subPackages = ["cmd/genjwks"]; 12 11 doCheck = false; 13 12 CGO_ENABLED = 0;
+2 -3
nix/pkgs/knot-unwrapped.nix
··· 2 2 buildGoApplication, 3 3 modules, 4 4 sqlite-lib, 5 - gitignoreSource, 5 + src, 6 6 }: 7 7 buildGoApplication { 8 8 pname = "knot"; 9 9 version = "0.1.0"; 10 - src = gitignoreSource ../..; 11 - inherit modules; 10 + inherit src modules; 12 11 13 12 doCheck = false; 14 13
+2 -3
nix/pkgs/spindle.nix
··· 2 2 buildGoApplication, 3 3 modules, 4 4 sqlite-lib, 5 - gitignoreSource, 5 + src, 6 6 }: 7 7 buildGoApplication { 8 8 pname = "spindle"; 9 9 version = "0.1.0"; 10 - src = gitignoreSource ../..; 11 - inherit modules; 10 + inherit src modules; 12 11 13 12 doCheck = false; 14 13