complete flake.nix + progress wlroots -> wlroots_0_19
This commit is contained in:
parent
af68b5e63c
commit
9b2fec0df1
2 changed files with 69 additions and 18 deletions
27
flake.lock
generated
Normal file
27
flake.lock
generated
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1755922037,
|
||||||
|
"narHash": "sha256-wY1+2JPH0ZZC4BQefoZw/k+3+DowFyfOxv17CN/idKs=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "b1b3291469652d5a2edb0becc4ef0246fff97a7c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-25.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
36
flake.nix
36
flake.nix
|
|
@ -7,14 +7,18 @@
|
||||||
|
|
||||||
outputs = {nixpkgs, ...}: let
|
outputs = {nixpkgs, ...}: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
enableXWayland = false;
|
||||||
in {
|
in {
|
||||||
devShells."${system}".default = let
|
devShells."${system}".default = let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
};
|
};
|
||||||
|
lib = nixpkgs.lib;
|
||||||
|
stdenv = pkgs.stdenv;
|
||||||
in
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs;
|
||||||
|
[
|
||||||
# NativeBuildInputs
|
# NativeBuildInputs
|
||||||
installShellFiles
|
installShellFiles
|
||||||
pkg-config
|
pkg-config
|
||||||
|
|
@ -22,18 +26,38 @@
|
||||||
|
|
||||||
# BuildInputs
|
# BuildInputs
|
||||||
libinput
|
libinput
|
||||||
libxcb
|
xorg.libxcb
|
||||||
libxkbcommon
|
libxkbcommon
|
||||||
pixman
|
pixman
|
||||||
wayland
|
wayland
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
wlroots
|
wlroots_0_19
|
||||||
|
]
|
||||||
|
++ lib.optionals enableXWayland
|
||||||
|
[
|
||||||
# XWayland
|
# XWayland
|
||||||
libX11
|
xorg.libX11
|
||||||
xcbutilwm
|
xorg.xcbutilwm
|
||||||
xwayland
|
xwayland
|
||||||
];
|
];
|
||||||
|
|
||||||
|
shellHook = let
|
||||||
|
makeFlags =
|
||||||
|
lib.strings.concatStringsSep " "
|
||||||
|
([
|
||||||
|
"PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config"
|
||||||
|
"WAYLAND_SCANNER=wayland-scanner"
|
||||||
|
# "PREFIX=$(out)"
|
||||||
|
# "MANDIR=$(man)/share/man"
|
||||||
|
]
|
||||||
|
++ lib.optionals enableXWayland [
|
||||||
|
''XWAYLAND="-DXWAYLAND"''
|
||||||
|
''XLIBS="xcb xcb-icccm"''
|
||||||
|
]);
|
||||||
|
in ''
|
||||||
|
TERM=xterm-256color
|
||||||
|
alias mk='${makeFlags} make'
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue