mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
90fbf71333
Inactive in Nixpkgs since 2018 (and a single PR in 2022). https://github.com/NixOS/nixpkgs/issues?q=author%3Acillianderoiste
58 lines
999 B
Nix
58 lines
999 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, pkg-config
|
|
, SDL2
|
|
, fftw
|
|
, gtest
|
|
, darwin
|
|
, eigen
|
|
, libepoxy
|
|
}:
|
|
|
|
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
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.OpenGL
|
|
darwin.libobjc
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
eigen
|
|
libepoxy
|
|
];
|
|
|
|
env = lib.optionalAttrs stdenv.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;
|
|
};
|
|
}
|