diff options
author | seth <getchoo@tuta.io> | 2023-09-09 15:10:15 -0400 |
---|---|---|
committer | seth <getchoo@tuta.io> | 2023-09-09 15:25:41 -0400 |
commit | 10192c540b85999c9a5cd075d695d1a4298ff9e5 (patch) | |
tree | 96049becf8a26cc4efbb8d37af1fb22aadd73300 /nix/distribution.nix | |
parent | 6aa821df9c5cb2cd79e03ddad043ab49acfdd5a3 (diff) | |
download | PrismLauncher-10192c540b85999c9a5cd075d695d1a4298ff9e5.tar.gz PrismLauncher-10192c540b85999c9a5cd075d695d1a4298ff9e5.tar.bz2 PrismLauncher-10192c540b85999c9a5cd075d695d1a4298ff9e5.zip |
feat(nix): add source filtering
this - along with garnix - should mostly eliminate unneeded (re)builds
Signed-off-by: seth <getchoo@tuta.io>
Diffstat (limited to 'nix/distribution.nix')
-rw-r--r-- | nix/distribution.nix | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/nix/distribution.nix b/nix/distribution.nix index c8fa01c5..ca9999dc 100644 --- a/nix/distribution.nix +++ b/nix/distribution.nix @@ -26,11 +26,27 @@ overlays.default = final: prev: let version = builtins.substring 0 8 self.lastModifiedDate or "dirty"; + filteredSelf = inputs.nix-filter.lib.filter { + root = ../.; + include = [ + "buildconfig" + "cmake" + "launcher" + "libraries" + "program_info" + "tests" + ../COPYING.md + ../CMakeLists.txt + ]; + }; + # common args for prismlauncher evaluations unwrappedArgs = { + self = filteredSelf; + inherit (inputs) libnbtplusplus; inherit ((final.darwin or prev.darwin).apple_sdk.frameworks) Cocoa; - inherit self version; + inherit version; }; in { prismlauncher-qt5-unwrapped = prev.libsForQt5.callPackage ./pkg unwrappedArgs; |