nixpkgs/pkgs/applications/audio/meters_lv2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.2 KiB
Nix
Raw Normal View History

2022-01-06 13:58:57 +00:00
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, lv2
, libGLU
, libGL
, gtk2
, cairo
, pango
, fftwFloat
, libjack2
}:
stdenv.mkDerivation rec {
pname = "meters.lv2";
2022-05-20 17:25:26 +00:00
version = "0.9.20";
robtkVersion = "0.7.5";
2014-12-06 19:20:24 +00:00
nativeBuildInputs = [ pkg-config ];
2019-11-10 16:44:34 +00:00
buildInputs = [ lv2 libGLU libGL gtk2 cairo pango fftwFloat libjack2 ];
2014-12-06 19:20:24 +00:00
2022-01-06 13:58:57 +00:00
src = fetchFromGitHub {
owner = "x42";
repo = "meters.lv2";
rev = "v${version}";
2022-05-20 17:25:26 +00:00
sha256 = "sha256-eGXTbE83bJEDqTBltL6ZX9qa/OotCFmUxpE/aLqGELU=";
2022-01-06 13:58:57 +00:00
};
robtkSrc = fetchFromGitHub {
owner = "x42";
repo = "robtk";
rev = "v${robtkVersion}";
2022-05-20 17:25:26 +00:00
sha256 = "sha256-L1meipOco8esZl+Pgqgi/oYVbhimgh9n8p9Iqj3dZr0=";
2022-01-06 13:58:57 +00:00
};
2014-12-06 19:20:24 +00:00
2022-01-06 13:58:57 +00:00
postUnpack = ''
rm -rf $sourceRoot/robtk/
ln -s ${robtkSrc} $sourceRoot/robtk
'';
2014-12-06 19:20:24 +00:00
2022-05-20 17:25:26 +00:00
postPatch = ''
substituteInPlace Makefile --replace "-msse -msse2 -mfpmath=sse" ""
''; # remove x86-specific flags
2014-12-06 19:20:24 +00:00
meter_VERSION = version;
2022-01-06 13:58:57 +00:00
enableParallelBuilding = true;
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = with lib; {
description = "Collection of audio level meters with GUI in LV2 plugin format";
homepage = "https://x42.github.io/meters.lv2/";
maintainers = with maintainers; [ ehmry ];
license = licenses.gpl2;
platforms = platforms.linux;
};
2014-12-06 19:20:24 +00:00
}