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
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
sfml_2,
|
|
libffcall,
|
|
libusb-compat-0_1,
|
|
libudev-zero,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "liblapin";
|
|
version = "0-unstable-2024-05-20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Damdoshi";
|
|
repo = "LibLapin";
|
|
rev = "27955d24f3efd10fe4f556a4f292d731813d3de3";
|
|
hash = "sha256-h8LuhTgFOFnyDeFeoEanD64/nmDyLeh6R9tw9X6GP8g=";
|
|
};
|
|
|
|
prePatch = ''
|
|
# camera module fails to build with opencv, due to missing V4L2 support
|
|
rm -rf src/camera
|
|
|
|
substituteInPlace Makefile \
|
|
--replace-fail "/bin/echo" "echo"
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 liblapin.a $out/lib/liblapin.a
|
|
|
|
rm -rf include/private
|
|
cp -r include $out
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
buildInputs = [
|
|
sfml_2
|
|
libffcall
|
|
libusb-compat-0_1
|
|
libudev-zero
|
|
];
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
meta = {
|
|
description = "Multimedia library for rookies and prototyping";
|
|
homepage = "https://liblapin.org?lan=en";
|
|
platforms = lib.platforms.unix;
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
};
|
|
}
|