nixpkgs/pkgs/by-name/mo/movit/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

58 lines
1.0 KiB
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.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.OpenGL
darwin.libobjc
];
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;
};
}