2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, SDL2
|
|
|
|
, fftw
|
|
|
|
, gtest
|
|
|
|
, darwin
|
|
|
|
, eigen
|
|
|
|
, libepoxy
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "movit";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "1.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://movit.sesse.net/${pname}-${version}.tar.gz";
|
2023-08-04 22:07:22 +00:00
|
|
|
sha256 = "sha256-szBztwXwzLasSULPURUVFUB7QLtOmi3QIowcLLH7wRo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
GTEST_DIR = "${gtest.src}/googletest";
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
fftw
|
|
|
|
gtest
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2023-07-15 17:15:38 +00:00
|
|
|
darwin.apple_sdk.frameworks.OpenGL
|
|
|
|
darwin.libobjc
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
eigen
|
|
|
|
libepoxy
|
|
|
|
];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
2023-07-15 17:15:38 +00:00
|
|
|
NIX_LDFLAGS = "-framework OpenGL";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "High-performance, high-quality video filters for the GPU";
|
|
|
|
homepage = "https://movit.sesse.net";
|
|
|
|
license = licenses.gpl2Plus;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = [ ];
|
2023-07-15 17:15:38 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|