1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-14 18:21:41 +03:00
mobile-nixos/overlay/ply-image/default.nix

34 lines
616 B
Nix
Raw Normal View History

{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/
'';
}