2018-06-10 22:35:53 +03:00
|
|
|
{stdenv, fetchgit, libpng, libdrm, pkgconfig}:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "2016-01-11";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit version;
|
|
|
|
name = "ply-image";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = https://chromium.googlesource.com/chromiumos/third_party/ply-image;
|
|
|
|
rev = "6cf4e4cd968bb72ade54e423e2b97eb3a80c6de9";
|
|
|
|
sha256 = "152hh9r04hjqrpfqskqh876vlf5dfqiwx719nyjq1y2qr8a9akm7";
|
|
|
|
};
|
|
|
|
|
2018-07-05 03:20:02 +03:00
|
|
|
patches = [
|
|
|
|
./99_additional_debug.diff
|
2018-07-05 22:08:57 +03:00
|
|
|
./99_msm-fb.diff
|
2018-07-05 03:20:02 +03:00
|
|
|
];
|
|
|
|
|
2018-06-10 22:35:53 +03:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
libpng
|
|
|
|
libdrm
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -v src/ply-image $out/bin/
|
|
|
|
'';
|
|
|
|
}
|