better src separation in flake, for fewer rebuilds

This commit is contained in:
778a69cd 2023-08-10 20:43:08 +02:00
parent e6c6e0c0e2
commit 1f9ebc8f14
2 changed files with 7 additions and 2 deletions

View file

@ -13,6 +13,7 @@
, cmake , cmake
, nixosTests , nixosTests
, src , src
, src-config
, mobilizon-js , mobilizon-js
}: }:
@ -41,7 +42,7 @@ mixRelease rec {
overrides = (final: prev: overrides = (final: prev:
(lib.mapAttrs (lib.mapAttrs
(_: value: value.override { (_: value: value.override {
appConfigPath = src + "/config"; appConfigPath = src-config;
}) })
prev) // { prev) // {
fast_html = prev.fast_html.override { fast_html = prev.fast_html.override {

View file

@ -18,8 +18,12 @@
mobilizon = pkgs.callPackage ./. { mobilizon = pkgs.callPackage ./. {
src = filter { src = filter {
root = ./.; root = ./.;
exclude = [ (filter.matchExt "nix") ]; exclude = [
(filter.matchExt "nix")
"js"
];
}; };
src-config = ./config;
mobilizon-js = self.packages.x86_64-linux.mobilizon-frontend; mobilizon-js = self.packages.x86_64-linux.mobilizon-frontend;
}; };