mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 19:23:01 +03:00
56458a477c
This is more specifically for msm devices. Let's hope it won't cause issues down the line, otherwise we'll have to make it configurable.
34 lines
616 B
Nix
34 lines
616 B
Nix
{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";
|
|
};
|
|
|
|
patches = [
|
|
./99_additional_debug.diff
|
|
./99_msm-fb.diff
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkgconfig
|
|
];
|
|
buildInputs = [
|
|
libpng
|
|
libdrm
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -v src/ply-image $out/bin/
|
|
'';
|
|
}
|