mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-19 14:33:16 -04:00
nix: ignore local build artifacts in flake source
This commit is contained in:
parent
31f417db39
commit
2f733c9802
1 changed files with 8 additions and 3 deletions
|
|
@ -26,9 +26,14 @@ stdenv.mkDerivation {
|
||||||
pname = "mango";
|
pname = "mango";
|
||||||
version = "nightly";
|
version = "nightly";
|
||||||
|
|
||||||
src = builtins.path {
|
src = lib.cleanSourceWith {
|
||||||
path = ../.;
|
src = ../.;
|
||||||
name = "source";
|
filter =
|
||||||
|
path: type:
|
||||||
|
let
|
||||||
|
relPath = lib.removePrefix ((toString ../.) + "/") (toString path);
|
||||||
|
in
|
||||||
|
!(relPath == ".git" || lib.hasPrefix ".git/" relPath || relPath == "build" || lib.hasPrefix "build/" relPath);
|
||||||
};
|
};
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue