wrapped versions of niri and noctalia
This commit is contained in:
@@ -1,10 +1,29 @@
|
||||
{ self, inputs, ... }: {
|
||||
perSystem = { pkgs, ... }: {
|
||||
packages.myNoctalia = inputs.wrapper-modules.wrappers.noctalia-shell.wrap {
|
||||
inherit pkgs; # THIS PART IS VERY IMPORTAINT, I FORGOT IT IN THE VIDEO!!!
|
||||
settings =
|
||||
(builtins.fromJSON
|
||||
(builtins.readFile ./noctalia.json)).settings;
|
||||
perSystem = { pkgs, lib, ... }:
|
||||
let
|
||||
nixGLPackage = inputs.nixgl.packages.${pkgs.stdenv.hostPlatform.system}.nixGLIntel;
|
||||
myNoctaliaUnwrapped = inputs.wrapper-modules.wrappers.noctalia-shell.wrap {
|
||||
inherit pkgs;
|
||||
# settings =
|
||||
# (builtins.fromJSON
|
||||
# (builtins.readFile ./noctalia.json)).settings;
|
||||
};
|
||||
in {
|
||||
packages.myNoctalia = pkgs.symlinkJoin {
|
||||
name = "my-noctalia-nixgl";
|
||||
paths = [ myNoctaliaUnwrapped ];
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
meta.mainProgram = "noctalia-shell";
|
||||
postBuild = ''
|
||||
for exe in "$out"/bin/*; do
|
||||
if [[ -f "$exe" ]]; then
|
||||
base="$(basename "$exe")"
|
||||
mv "$exe" "$out/bin/.''${base}-real"
|
||||
makeWrapper ${lib.getExe nixGLPackage} "$exe" \
|
||||
--add-flags "$out/bin/.''${base}-real"
|
||||
fi
|
||||
done
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user