nixpkgs/pkgs/by-name/mo/movit/package.nix
Emily 954bb3bb03 treewide: remove references to deprecated darwin.libobjc stub
This was done with booxter’s fantastic [nix-clean-apple_sdk] tool,
simply modified to look for `libobjc` rather than the existing list he
already used in <https://github.com/NixOS/nixpkgs/pull/398707>. Some
manual work was applied, including cleaning up a string interpolation
in the terrifying MacVim derivation, stray comments, empty lists,
function parameters, and `inherit`s, including all of the references in
`all-packages.nix`.

[nix-clean-apple_sdk]: https://github.com/booxter/nix-clean-apple_sdk
2025-04-21 20:41:03 +01:00

62 lines
967 B
Nix

{
lib,
stdenv,
fetchurl,
pkg-config,
SDL2,
fftw,
gtest,
eigen,
libepoxy,
libGL,
libX11,
}:
stdenv.mkDerivation rec {
pname = "movit";
version = "1.7.1";
src = fetchurl {
url = "https://movit.sesse.net/${pname}-${version}.tar.gz";
sha256 = "sha256-szBztwXwzLasSULPURUVFUB7QLtOmi3QIowcLLH7wRo=";
};
outputs = [
"out"
"dev"
];
GTEST_DIR = "${gtest.src}/googletest";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
SDL2
fftw
gtest
libGL
libX11
];
propagatedBuildInputs = [
eigen
libepoxy
];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_LDFLAGS = "-framework OpenGL";
};
enableParallelBuilding = true;
meta = with lib; {
description = "High-performance, high-quality video filters for the GPU";
homepage = "https://movit.sesse.net";
license = licenses.gpl2Plus;
maintainers = [ ];
platforms = platforms.unix;
};
}