diff options
author | K900 <me@0upti.me> | 2023-09-26 17:57:48 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2023-09-26 18:02:00 +0300 |
commit | c018561f5467bdbcae1364220000d69431771d68 (patch) | |
tree | 3f5e031312ccce91f8061b3663b44f3d4bae1a70 /pkgs/servers/x11 | |
parent | 7a7c1859cdb11ba331a75b9a4888e36f5ef17aca (diff) | |
download | nixlib-c018561f5467bdbcae1364220000d69431771d68.tar nixlib-c018561f5467bdbcae1364220000d69431771d68.tar.gz nixlib-c018561f5467bdbcae1364220000d69431771d68.tar.bz2 nixlib-c018561f5467bdbcae1364220000d69431771d68.tar.lz nixlib-c018561f5467bdbcae1364220000d69431771d68.tar.xz nixlib-c018561f5467bdbcae1364220000d69431771d68.tar.zst nixlib-c018561f5467bdbcae1364220000d69431771d68.zip |
nixos/amdgpu-pro: remove `nixpkgs.config` usage
A new X.org ABI is exceptionally unlikely at this point, and we can add an assertion if it ever happens.
Diffstat (limited to 'pkgs/servers/x11')
-rw-r--r-- | pkgs/servers/x11/xorg/overrides.nix | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index 2c168a659a89..a66cf9ce1335 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -1,5 +1,4 @@ -{ abiCompat ? null, - callPackage, +{ callPackage, lib, stdenv, makeWrapper, fetchurl, fetchpatch, fetchFromGitLab, buildPackages, automake, autoconf, libiconv, libtool, intltool, gettext, python3, perl, freetype, tradcpp, fontconfig, meson, ninja, ed, fontforge, @@ -738,24 +737,18 @@ self: super: }); xorgserver = with xorg; super.xorgserver.overrideAttrs (attrs_passed: - # exchange attrs if abiCompat is set let - version = lib.getVersion attrs_passed; - attrs = - if (abiCompat == null || lib.hasPrefix abiCompat version) then - attrs_passed // { - buildInputs = attrs_passed.buildInputs ++ - lib.optional (libdrm != null) libdrm.dev; - postPatch = '' - for i in dri3/*.c - do - sed -i -e "s|#include <drm_fourcc.h>|#include <libdrm/drm_fourcc.h>|" $i - done - ''; - meta = attrs_passed.meta // { mainProgram = "X"; }; - } - else throw "unsupported xorg abiCompat ${abiCompat} for ${attrs_passed.name}"; - + attrs = attrs_passed // { + buildInputs = attrs_passed.buildInputs ++ + lib.optional (libdrm != null) libdrm.dev; + postPatch = '' + for i in dri3/*.c + do + sed -i -e "s|#include <drm_fourcc.h>|#include <libdrm/drm_fourcc.h>|" $i + done + ''; + meta = attrs_passed.meta // { mainProgram = "X"; }; + }; in attrs // (let version = lib.getVersion attrs; |