diff options
Diffstat (limited to 'pkgs/development/libraries/wlroots/default.nix')
-rw-r--r-- | pkgs/development/libraries/wlroots/default.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/development/libraries/wlroots/default.nix b/pkgs/development/libraries/wlroots/default.nix index 8e0ebab220af..dbb2fa03d4e5 100644 --- a/pkgs/development/libraries/wlroots/default.nix +++ b/pkgs/development/libraries/wlroots/default.nix @@ -28,15 +28,17 @@ let generic = { version, hash, extraBuildInputs ? [ ], extraNativeBuildInputs ? [ ], extraPatch ? "" }: - stdenv.mkDerivation rec { + stdenv.mkDerivation (finalAttrs: { pname = "wlroots"; inherit version; + inherit enableXWayland; + src = fetchFromGitLab { domain = "gitlab.freedesktop.org"; owner = "wlroots"; repo = "wlroots"; - rev = version; + rev = finalAttrs.version; inherit hash; }; @@ -70,11 +72,11 @@ let xorg.xcbutilrenderutil xorg.xcbutilwm ] - ++ lib.optional enableXWayland xwayland + ++ lib.optional finalAttrs.enableXWayland xwayland ++ extraBuildInputs; mesonFlags = - lib.optional (!enableXWayland) "-Dxwayland=disabled" + lib.optional (!finalAttrs.enableXWayland) "-Dxwayland=disabled" ; postFixup = '' @@ -98,13 +100,13 @@ let Pluggable, composable, unopinionated modules for building a Wayland compositor; or about 50,000 lines of code you were going to write anyway. ''; - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; changelog = "https://gitlab.freedesktop.org/wlroots/wlroots/-/tags/${version}"; license = licenses.mit; platforms = platforms.linux; maintainers = with maintainers; [ primeos synthetica ]; }; - }; + }); in rec { |