dwl: nixfmt-rfc-style

This commit is contained in:
Anderson Torres 2024-07-27 11:57:02 -03:00
parent b3d40c2a5d
commit cd9bb3a278

View File

@ -1,22 +1,23 @@
{ lib
, stdenv
, fetchFromGitea
, installShellFiles
, libX11
, libinput
, libxcb
, libxkbcommon
, pixman
, pkg-config
, wayland-scanner
, wayland
, wayland-protocols
, wlroots
, writeText
, xcbutilwm
, xwayland
, enableXWayland ? true
, conf ? null
{
lib,
stdenv,
fetchFromGitea,
installShellFiles,
libX11,
libinput,
libxcb,
libxkbcommon,
pixman,
pkg-config,
wayland-scanner,
wayland,
wayland-protocols,
wlroots,
writeText,
xcbutilwm,
xwayland,
enableXWayland ? true,
conf ? null,
}:
stdenv.mkDerivation (finalAttrs: {
@ -37,28 +38,34 @@ stdenv.mkDerivation (finalAttrs: {
wayland-scanner
];
buildInputs = [
libinput
libxcb
libxkbcommon
pixman
wayland
wayland-protocols
wlroots
] ++ lib.optionals enableXWayland [
libX11
xcbutilwm
xwayland
buildInputs =
[
libinput
libxcb
libxkbcommon
pixman
wayland
wayland-protocols
wlroots
]
++ lib.optionals enableXWayland [
libX11
xcbutilwm
xwayland
];
outputs = [
"out"
"man"
];
outputs = [ "out" "man" ];
# Allow users to set an alternative config.def.h
postPatch = let
configFile = if lib.isDerivation conf || builtins.isPath conf
then conf
else writeText "config.def.h" conf;
in lib.optionalString (conf != null) "cp ${configFile} config.def.h";
postPatch =
let
configFile =
if lib.isDerivation conf || builtins.isPath conf then conf else writeText "config.def.h" conf;
in
lib.optionalString (conf != null) "cp ${configFile} config.def.h";
makeFlags = [
"PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config"