Loading pkgs/by-name/dw/dwl/package.nix +45 −38 Original line number Diff line number Diff line { 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: { Loading @@ -37,7 +38,8 @@ stdenv.mkDerivation (finalAttrs: { wayland-scanner ]; buildInputs = [ buildInputs = [ libinput libxcb libxkbcommon Loading @@ -45,20 +47,25 @@ stdenv.mkDerivation (finalAttrs: { wayland wayland-protocols wlroots ] ++ lib.optionals enableXWayland [ ] ++ 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" Loading Loading
pkgs/by-name/dw/dwl/package.nix +45 −38 Original line number Diff line number Diff line { 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: { Loading @@ -37,7 +38,8 @@ stdenv.mkDerivation (finalAttrs: { wayland-scanner ]; buildInputs = [ buildInputs = [ libinput libxcb libxkbcommon Loading @@ -45,20 +47,25 @@ stdenv.mkDerivation (finalAttrs: { wayland wayland-protocols wlroots ] ++ lib.optionals enableXWayland [ ] ++ 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" Loading