depot/third_party/nixpkgs/pkgs/development/libraries/tremor/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

32 lines
911 B
Nix

{ lib, stdenv, fetchFromGitLab, autoreconfHook, pkg-config, libogg }:
stdenv.mkDerivation {
pname = "tremor";
version = "unstable-2018-03-16";
src = fetchFromGitLab {
owner = "xiph";
repo = "tremor";
domain = "gitlab.xiph.org";
rev = "562307a4a7082e24553f3d2c55dab397a17c4b4f";
sha256 = "0m07gq4zfgigsiz8b518xyb19v7qqp76qmp7lb262825vkqzl3zq";
};
outputs = [ "out" "dev" ];
configureFlags = lib.optional (stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17") "LDFLAGS=-Wl,--undefined-version";
nativeBuildInputs = [ autoreconfHook pkg-config ];
propagatedBuildInputs = [ libogg ];
preConfigure = ''
sed -i /XIPH_PATH_OGG/d configure
'';
meta = {
homepage = "https://xiph.org/tremor/";
description = "Fixed-point version of the Ogg Vorbis decoder";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
};
}