nixpkgs/pkgs/by-name/xf/xf86_video_nested/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

34 lines
914 B
Nix

{ lib, stdenv, fetchgit, autoreconfHook, xorgproto, libX11, libXext
, pixman, pkg-config, utilmacros, xorgserver
}:
stdenv.mkDerivation {
pname = "xf86-video-nested";
version = "unstable-2017-06-12";
src = fetchgit {
url = "git://anongit.freedesktop.org/xorg/driver/xf86-video-nested";
rev = "6a48b385c41ea89354d0b2ee7f4649a1d1d9ec70";
sha256 = "133rd2kvr2q2wmwpx82bb93qbi8wm8qp1vlmbhgc7aslz0j4cqqv";
};
nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs =
[ xorgproto libX11 libXext pixman
utilmacros xorgserver
];
hardeningDisable = [ "fortify" ];
CFLAGS = "-I${pixman}/include/pixman-1";
meta = with lib; {
homepage = "https://cgit.freedesktop.org/xorg/driver/xf86-video-nested";
description = "Driver to run Xorg on top of Xorg or something else";
maintainers = [ ];
platforms = platforms.linux;
license = licenses.mit;
};
}