mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
31 lines
882 B
Nix
31 lines
882 B
Nix
{ lib, stdenv, fetchgit, autoreconfHook, xorgproto, libX11, libXext
|
|
, pixman, pkgconfig, utilmacros, xorgserver
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "xf86-video-nested-2017-06-12";
|
|
|
|
src = fetchgit {
|
|
url = "git://anongit.freedesktop.org/xorg/driver/xf86-video-nested";
|
|
rev = "6a48b385c41ea89354d0b2ee7f4649a1d1d9ec70";
|
|
sha256 = "133rd2kvr2q2wmwpx82bb93qbi8wm8qp1vlmbhgc7aslz0j4cqqv";
|
|
};
|
|
|
|
buildInputs =
|
|
[ autoreconfHook xorgproto libX11 libXext pixman
|
|
pkgconfig utilmacros xorgserver
|
|
];
|
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
CFLAGS = "-I${pixman}/include/pixman-1";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://cgit.freedesktop.org/xorg/driver/xf86-video-nested";
|
|
description = "A driver to run Xorg on top of Xorg or something else";
|
|
maintainers = [ maintainers.goibhniu ];
|
|
platforms = platforms.linux;
|
|
license = licenses.mit;
|
|
};
|
|
}
|