1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-16 14:21:03 +02:00

feat(nix): use lib.fileset for src

- Filters out more unnecessary files (like `nix` ones)
This commit is contained in:
reo101 2025-05-04 13:30:24 +03:00 committed by 74k1
parent d97d07e98e
commit 89073dc0cf

View file

@ -37,9 +37,25 @@
pname = "ironbar";
src = builtins.path {
name = "ironbar";
path = lib.cleanSource ../.;
src = let
fs = lib.fileset;
root = ../.;
nixRelated = fs.fileFilter (file: file.hasExt "nix" || file.name == "flake.lock") root;
cicdRelated = fs.unions [
(lib.path.append root "Dockerfile")
(lib.path.append root ".github")
];
ideRelated = fs.unions [
(lib.path.append root ".idea")
];
in fs.toSource {
inherit root;
# NOTE: can possibly filter out more
fileset = fs.difference root (fs.unions [
nixRelated
cicdRelated
ideRelated
]);
};
nativeBuildInputs = [