571c71e6f7
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.
31 lines
847 B
Nix
31 lines
847 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, speexdsp, pkg-config }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.2.6";
|
|
pname = "libebur128";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jiixyj";
|
|
repo = "libebur128";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-UKO2k+kKH/dwt2xfaYMrH/GXjEkIrnxh1kGG/3P5d3Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ speexdsp ];
|
|
|
|
# https://github.com/jiixyj/libebur128/issues/121
|
|
postPatch = ''
|
|
substituteInPlace ebur128/libebur128.pc.cmake \
|
|
--replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Implementation of the EBU R128 loudness standard";
|
|
homepage = "https://github.com/jiixyj/libebur128";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.andrewrk ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|