2023-03-03 19:41:10 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, ffmpeg_4, libebur128
|
2022-09-25 17:46:37 +02:00
|
|
|
, libresample, taglib, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "loudgain";
|
|
|
|
version = "0.6.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Moonbase59";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-XLj+n0GlY/GAkJlW2JVMd0jxMzgdv/YeSTuF6QUIGwU=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2023-03-03 19:41:10 +01:00
|
|
|
buildInputs = [ ffmpeg_4 libebur128 libresample taglib zlib ];
|
2022-09-25 17:46:37 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed -e "1aPATH=$out/bin:\$PATH" -i "$out/bin/rgbpm"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = src.meta // {
|
|
|
|
license = lib.licenses.free;
|
|
|
|
maintainers = with lib.maintainers; [ ehmry ];
|
|
|
|
};
|
|
|
|
}
|