Files
nixpkgs/pkgs/by-name/li/libvpl/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
826 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
cmake,
pkg-config,
replaceVars,
addDriverRunpath,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libvpl";
version = "2.15.0";
src = fetchFromGitHub {
owner = "intel";
repo = "libvpl";
rev = "v${finalAttrs.version}";
hash = "sha256-aCoyIHgX3ftlk0CKg/cXNAVjuGI8GMT358GoiyaNjnI=";
};
nativeBuildInputs = [
cmake
pkg-config
];
cmakeFlags = [
(lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck)
];
patches = [
(replaceVars ./opengl-driver-lib.patch {
inherit (addDriverRunpath) driverLink;
})
];
doCheck = true;
meta = with lib; {
description = "Intel Video Processing Library";
homepage = "https://intel.github.io/libvpl/";
license = licenses.mit;
platforms = platforms.linux;
};
})