From 541ac07607ae16d6c401ff8d6d7f948306c6340e Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sat, 6 Dec 2014 14:20:24 -0500 Subject: [PATCH] meters.lv2: initial package at 0.8.1 --- .../applications/audio/meters_lv2/default.nix | 47 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/applications/audio/meters_lv2/default.nix diff --git a/pkgs/applications/audio/meters_lv2/default.nix b/pkgs/applications/audio/meters_lv2/default.nix new file mode 100644 index 000000000000..3b7a5bc685c1 --- /dev/null +++ b/pkgs/applications/audio/meters_lv2/default.nix @@ -0,0 +1,47 @@ +{ stdenv, fetchurl, pkgconfig +, lv2, mesa, gtk2, cairo, pango, fftw }: + +let + version = "0.8.1"; + name = "meters.lv2-${version}"; + + # robtk submodule is pegged to this version + robtkVersion = "0.3.0"; + robtkName = "robtk-${robtkVersion}"; + + src = fetchurl { + name = "${name}.tar.gz"; + url = "https://github.com/x42/meters.lv2/archive/v${version}.tar.gz"; + sha256 = "142dg0j34mv5b0agajj2x1n9kgsmkfh08n1cjzk0j8n4xk2wb6ri"; + }; + + robtkSrc = fetchurl { + name = "${robtkName}.tar.gz"; + url = "https://github.com/x42/robtk/archive/v${robtkVersion}.tar.gz"; + sha256 = "1ny89i2sgga56k7fxskp9y8sb7pfhp6wgw5mni842p19z6q7h8rq"; + }; + +in +stdenv.mkDerivation { + inherit name; + + buildInputs = [ pkgconfig lv2 mesa gtk2 cairo pango fftw ]; + + srcs = [ src robtkSrc ]; + sourceRoot = name; + + postUnpack = "mv ${robtkName}/* ${name}/robtk"; # */ + + postPatch = "sed -i 's/fftw3f/fftw3/' Makefile"; + + preConfigure = "makeFlagsArray=( PREFIX=$out )"; + meter_VERSION = version; + + meta = with stdenv.lib; + { description = "Collection of audio level meters with GUI in LV2 plugin format"; + homepage = http://x42.github.io/meters.lv2/; + maintainers = with maintainers; [ emery ]; + license = licenses.gpl2; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 292c87404e18..d24ed182412f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10163,6 +10163,8 @@ let meshlab = callPackage ../applications/graphics/meshlab { }; + metersLv2 = callPackage ../applications/audio/meters_lv2 { }; + mhwaveedit = callPackage ../applications/audio/mhwaveedit {}; mid2key = callPackage ../applications/audio/mid2key { };