depot/third_party/nixpkgs/pkgs/os-specific/linux/firmware/ipu6-camera-bins/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

58 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, autoPatchelfHook
, expat
, zlib
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ipu6-camera-bins";
version = "unstable-2023-10-26";
src = fetchFromGitHub {
owner = "intel";
repo = "ipu6-camera-bins";
rev = "af5ba0cb4a763569ac7514635013e9d870040bcf";
hash = "sha256-y0pT5M7AKACbquQWLZPYpTPXRC5hipLNL61nhs+cst4=";
};
nativeBuildInputs = [
autoPatchelfHook
stdenv.cc.cc.lib
expat
zlib
];
installPhase = ''
runHook preInstall
mkdir -p $out
cp --no-preserve=mode --recursive \
lib \
include \
$out/
install -m 0644 -D LICENSE $out/share/doc/LICENSE
runHook postInstall
'';
postFixup = ''
for pcfile in $out/lib/*/pkgconfig/*.pc; do
substituteInPlace $pcfile \
--replace 'prefix=/usr' "prefix=$out"
done
'';
meta = with lib; {
description = "IPU firmware and proprietary image processing libraries";
homepage = "https://github.com/intel/ipu6-camera-bins";
license = licenses.issl;
sourceProvenance = with sourceTypes; [
binaryFirmware
];
maintainers = with maintainers; [ ];
platforms = [ "x86_64-linux" ];
};
})