2017-12-21 16:16:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkgconfig
|
2015-10-24 00:32:20 +01:00
|
|
|
, wayland, fontconfig, pixman, freetype, libdrm
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "wld-${version}";
|
2017-12-21 16:16:19 +00:00
|
|
|
version = "git-2017-10-31";
|
2015-10-24 00:32:20 +01:00
|
|
|
|
2017-12-21 16:16:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michaelforney";
|
|
|
|
repo = "wld";
|
|
|
|
rev = "b4e902bbecb678c45485b52c3aa183cbc932c595";
|
|
|
|
sha256 = "0j2n776flnzyw3vhxl0r8h1c48wrihi4g6bs2z8j4hbw5pnwq1k6";
|
2015-10-24 00:32:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ wayland fontconfig pixman freetype libdrm ];
|
|
|
|
|
|
|
|
makeFlags = "PREFIX=$(out)";
|
|
|
|
installPhase = "PREFIX=$out make install";
|
|
|
|
|
2017-12-21 16:16:19 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-10-24 00:32:20 +01:00
|
|
|
meta = {
|
|
|
|
description = "A primitive drawing library targeted at Wayland";
|
2017-12-21 16:16:19 +00:00
|
|
|
homepage = src.meta.homepage;
|
2015-10-24 00:32:20 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|