mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
dri-pkgconfig-stub: init
This is a tiny stub that can be provided to things that just want to know where to find DRI drivers for whatever reason (looking at you, Chromium), so they don't have to pull in all of Mesa.
This commit is contained in:
20
pkgs/by-name/dr/dri-pkgconfig-stub/package.nix
Normal file
20
pkgs/by-name/dr/dri-pkgconfig-stub/package.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
lib,
|
||||
writeTextFile,
|
||||
mesa,
|
||||
}:
|
||||
writeTextFile {
|
||||
name = "dri-pkgconfig-stub";
|
||||
|
||||
text = ''
|
||||
dridriverdir=${mesa.driverLink}/lib/dri
|
||||
|
||||
Name: dri
|
||||
Version: ${mesa.version}
|
||||
Description: Nixpkgs graphics driver path stub
|
||||
'';
|
||||
|
||||
destination = "/lib/pkgconfig/dri.pc";
|
||||
|
||||
meta.badPlatforms = lib.platforms.darwin;
|
||||
}
|
||||
Reference in New Issue
Block a user