mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-05 06:47:12 -04:00
there's currently an evaluation warning:
evaluation warning: The xorg package set has been deprecated, 'xorg.libxcb' has been renamed to 'libxcb'
evaluation warning: The xorg package set has been deprecated, 'xorg.xcbutilwm' has been renamed to 'libxcb-wm'
commit wlrfx/scenefx@6291016 updated some package names in line with
upstream changes, and bumping that flake will make the warning disappear.
Unfortunately this means we need to deal with a couple of breaking APIs
changes:
* the `enum corner_location` and `int corner_radius` pair has been
replaced with `struct fx_corner_radii`
* `wlr_scene_buffer_set_backdrop_blur()`, `_ignore_transparent()`, and
`_optimized()` have been removed, and blur is now managed at the scene
level via `wlr_scene_blur` nodes
moreover, it appears that wlrfx/scenefx@51d9081 introduced a regression
with how transparency is handled, so bump scenefx only to the commit
before that (wlrfx/scenefx@bdc3e64) rather than main.
Signed-off-by: Gilberto Bertin <me@jibi.io>
55 lines
1.4 KiB
Nix
55 lines
1.4 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
scenefx = {
|
|
url = "github:wlrfx/scenefx/bdc3e64ad91b71db725df42095dcc1ea9af49b05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
flake-parts,
|
|
...
|
|
} @ inputs:
|
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
|
imports = [
|
|
inputs.flake-parts.flakeModules.easyOverlay
|
|
];
|
|
|
|
flake = {
|
|
hmModules.mango = import ./nix/hm-modules.nix self;
|
|
nixosModules.mango = import ./nix/nixos-modules.nix self;
|
|
};
|
|
|
|
perSystem = {
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (pkgs) callPackage ;
|
|
mango = callPackage ./nix {
|
|
scenefx = inputs.scenefx.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
|
};
|
|
shellOverride = old: {
|
|
nativeBuildInputs = old.nativeBuildInputs ++ [];
|
|
buildInputs = old.buildInputs ++ [];
|
|
};
|
|
in {
|
|
packages.default = mango;
|
|
overlayAttrs = {
|
|
inherit (config.packages) mango;
|
|
};
|
|
packages = {
|
|
inherit mango;
|
|
};
|
|
devShells.default = mango.overrideAttrs shellOverride;
|
|
formatter = pkgs.alejandra;
|
|
};
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
};
|
|
}
|