flake: add overlay output

This commit is contained in:
seth
2024-09-30 19:16:13 -04:00
committed by Ivan Molodetskikh
parent b3d4d4eacc
commit 1b44e0cd20
+26 -22
View File
@@ -81,10 +81,33 @@
packages = forAllSystems (
system:
let
inherit (self.packages.${system}) niri;
inherit (self.overlays.default nixpkgsFor.${system} null) niri;
in
{
niri = nixpkgsFor.${system}.callPackage (
inherit niri;
# NOTE: This is for development purposes only
#
# It is primarily to help with quickly iterating on
# changes made to the above expression - though it is
# also not stripped in order to better debug niri itself
niri-debug = niri.overrideAttrs (
newAttrs: oldAttrs: {
pname = oldAttrs.pname + "-debug";
cargoBuildType = "debug";
cargoCheckType = newAttrs.cargoBuildType;
dontStrip = true;
}
);
default = niri;
}
);
overlays.default = final: _: {
niri = final.callPackage (
{
cairo,
clang,
@@ -207,25 +230,6 @@
};
}
) { };
# NOTE: This is for development purposes only
#
# It is primarily to help with quickly iterating on
# changes made to the above expression - though it is
# also not stripped in order to better debug niri itself
niri-debug = niri.overrideAttrs (
newAttrs: oldAttrs: {
pname = oldAttrs.pname + "-debug";
cargoBuildType = "debug";
cargoCheckType = newAttrs.cargoBuildType;
dontStrip = true;
}
);
default = niri;
}
);
};
};
}