2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config
|
2019-11-10 16:44:34 +00:00
|
|
|
, lv2, libGLU, libGL, gtk2, cairo, pango, fftwFloat, libjack2 }:
|
2014-12-06 19:20:24 +00:00
|
|
|
|
|
|
|
let
|
2019-04-04 02:21:55 +01:00
|
|
|
version = "0.9.10";
|
2014-12-06 19:20:24 +00:00
|
|
|
name = "meters.lv2-${version}";
|
|
|
|
|
|
|
|
# robtk submodule is pegged to this version
|
2019-04-04 02:21:55 +01:00
|
|
|
robtkVersion = "0.6.2";
|
2014-12-06 19:20:24 +00:00
|
|
|
robtkName = "robtk-${robtkVersion}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "${name}.tar.gz";
|
|
|
|
url = "https://github.com/x42/meters.lv2/archive/v${version}.tar.gz";
|
2019-04-04 02:21:55 +01:00
|
|
|
sha256 = "0yfyn7j8g50w671b1z7ph4ppjx8ddj5c6nx53syp5y5mfr1b94nx";
|
2014-12-06 19:20:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
robtkSrc = fetchurl {
|
|
|
|
name = "${robtkName}.tar.gz";
|
|
|
|
url = "https://github.com/x42/robtk/archive/v${robtkVersion}.tar.gz";
|
2019-04-04 02:21:55 +01:00
|
|
|
sha256 = "1v79xys1k2923wpivdjd44vand6c4agwvnrqi4c8kdv9r07b559v";
|
2014-12-06 19:20:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
|
|
|
|
2021-01-19 06:50:56 +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
|
|
|
|
|
|
|
srcs = [ src robtkSrc ];
|
|
|
|
sourceRoot = name;
|
|
|
|
|
|
|
|
postUnpack = "mv ${robtkName}/* ${name}/robtk"; # */
|
|
|
|
|
|
|
|
preConfigure = "makeFlagsArray=( PREFIX=$out )";
|
|
|
|
meter_VERSION = version;
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
meta = with lib;
|
2014-12-06 19:20:24 +00:00
|
|
|
{ description = "Collection of audio level meters with GUI in LV2 plugin format";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://x42.github.io/meters.lv2/";
|
2015-12-05 21:41:25 +00:00
|
|
|
maintainers = with maintainers; [ ehmry ];
|
2014-12-06 19:20:24 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|