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
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, libtsm
|
|
, systemd
|
|
, libxkbcommon
|
|
, libdrm
|
|
, libGLU, libGL
|
|
, pango
|
|
, pixman
|
|
, pkgconfig
|
|
, docbook_xsl
|
|
, libxslt
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kmscon";
|
|
version = "unstable-2018-09-07";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Aetf";
|
|
repo = "kmscon";
|
|
rev = "01dd0a231e2125a40ceba5f59fd945ff29bf2cdc";
|
|
sha256 = "0q62kjsvy2iwy8adfiygx2bfwlh83rphgxbis95ycspqidg9py87";
|
|
};
|
|
|
|
buildInputs = [
|
|
libGLU libGL
|
|
libdrm
|
|
libtsm
|
|
libxkbcommon
|
|
libxslt
|
|
pango
|
|
pixman
|
|
systemd
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
docbook_xsl
|
|
pkgconfig
|
|
];
|
|
|
|
configureFlags = [
|
|
"--enable-multi-seat"
|
|
"--disable-debug"
|
|
"--enable-optimizations"
|
|
"--with-renderers=bbulk,gltex,pixman"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "KMS/DRM based System Console";
|
|
homepage = "http://www.freedesktop.org/wiki/Software/kmscon/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ omasanori ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|