better src separation in flake, for fewer rebuilds
This commit is contained in:
parent
e6c6e0c0e2
commit
1f9ebc8f14
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue