From 94a3a5e00a6986d2520dee972c3235fc0d51f028 Mon Sep 17 00:00:00 2001 From: Jack Cummings Date: Sun, 24 Mar 2013 22:08:09 -0700 Subject: [PATCH 1/3] shntool-3.0.10 --- pkgs/applications/audio/shntool/default.nix | 20 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/applications/audio/shntool/default.nix diff --git a/pkgs/applications/audio/shntool/default.nix b/pkgs/applications/audio/shntool/default.nix new file mode 100644 index 00000000000..68fb8bfb142 --- /dev/null +++ b/pkgs/applications/audio/shntool/default.nix @@ -0,0 +1,20 @@ +{ stdenv, fetchurl, flac }: + +stdenv.mkDerivation rec { + version = "3.0.10"; + name = "shntool-${version}"; + + src = fetchurl { + url = http://www.etree.org/shnutils/shntool/dist/src/shntool-3.0.10.tar.gz; + sha256 = "00i1rbjaaws3drkhiczaign3lnbhr161b7rbnjr8z83w8yn2wc3l"; + }; + + buildInputs = [ flac ]; + + meta = { + description = "multi-purpose WAVE data processing and reporting utility"; + homepage = http://www.etree.org/shnutils/shntool/; + license = "GPLv2+"; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1e269b6f97d..bb35ee95dd6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7762,6 +7762,8 @@ let guile = guile_1_8; }; + shntool = callPackage ../applications/audio/shntool { }; + sonic_visualiser = callPackage ../applications/audio/sonic-visualiser { inherit (pkgs.vamp) vampSDK; inherit (pkgs.xlibs) libX11; From 4a9c724377cf5ea5fc8dab9af351cc2def02aa1a Mon Sep 17 00:00:00 2001 From: Jack Cummings Date: Sun, 31 Mar 2013 21:45:40 -0700 Subject: [PATCH 2/3] shntool metadata: license, maintainer, platform --- pkgs/applications/audio/shntool/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/shntool/default.nix b/pkgs/applications/audio/shntool/default.nix index 68fb8bfb142..476f1a3bd63 100644 --- a/pkgs/applications/audio/shntool/default.nix +++ b/pkgs/applications/audio/shntool/default.nix @@ -14,7 +14,8 @@ stdenv.mkDerivation rec { meta = { description = "multi-purpose WAVE data processing and reporting utility"; homepage = http://www.etree.org/shnutils/shntool/; - license = "GPLv2+"; - platforms = with stdenv.lib.platforms; linux; + license = stdenv.lib.licenses.gpl2Plus; + platforms = stdenv.lib.platforms.all + maintainers = with stdenv.lib.maintainers; [ jcumming ]; }; } From 1993c185465c91cb84039a2752394a7895dd66ec Mon Sep 17 00:00:00 2001 From: Jack Cummings Date: Sun, 31 Mar 2013 22:09:17 -0700 Subject: [PATCH 3/3] missing semicolon. --- pkgs/applications/audio/shntool/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/audio/shntool/default.nix b/pkgs/applications/audio/shntool/default.nix index 476f1a3bd63..12ef79d746e 100644 --- a/pkgs/applications/audio/shntool/default.nix +++ b/pkgs/applications/audio/shntool/default.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { description = "multi-purpose WAVE data processing and reporting utility"; homepage = http://www.etree.org/shnutils/shntool/; license = stdenv.lib.licenses.gpl2Plus; - platforms = stdenv.lib.platforms.all + platforms = stdenv.lib.platforms.all; maintainers = with stdenv.lib.maintainers; [ jcumming ]; }; }