Commit 5414e217 authored by Justin Chen's avatar Justin Chen
Browse files

shntool: format and remove `rec`

parent b712e01f
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
  flac,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  version = "3.0.10+git20130108.4ca41f4-1";
  pname = "shntool";

@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
    domain = "salsa.debian.org";
    owner = "debian";
    repo = "shntool";
    rev = "debian/${version}";
    rev = "debian/${finalAttrs.version}";
    sha256 = "sha256-Qn4LwVx34EhypiZDIxuveNhePigkuiICn1nBukoQf5Y=";
  };

@@ -24,13 +24,15 @@ stdenv.mkDerivation rec {
    ./function-pointer-type.patch
  ];

  buildInputs = [ flac ];

  prePatch = ''
    additional_patches=$(grep -v '#' ./debian/patches/series | while read patch; do echo "./debian/patches/$patch"; done | tr '\n' ' ')
    patches="$patches $additional_patches"
  '';

  buildInputs = [
    flac
  ];

  meta = {
    description = "Multi-purpose WAVE data processing and reporting utility";
    homepage = "https://packages.qa.debian.org/s/shntool.html";
@@ -38,4 +40,4 @@ stdenv.mkDerivation rec {
    platforms = lib.platforms.all;
    maintainers = with lib.maintainers; [ jcumming ];
  };
}
})