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
, nixosTests
, src
, src-config
, mobilizon-js
}:
@ -41,7 +42,7 @@ mixRelease rec {
overrides = (final: prev:
(lib.mapAttrs
(_: value: value.override {
appConfigPath = src + "/config";
appConfigPath = src-config;
})
prev) // {
fast_html = prev.fast_html.override {

View file

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