diff --git a/pkgs/by-name/sh/shntool/package.nix b/pkgs/by-name/sh/shntool/package.nix index b0fc9a6bb4f0..fdd6919eb0ef 100644 --- a/pkgs/by-name/sh/shntool/package.nix +++ b/pkgs/by-name/sh/shntool/package.nix @@ -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 ]; }; -} +})