shntool: format and remove rec

This commit is contained in:
Justin Chen
2026-01-02 15:30:10 +08:00
parent b712e01f6f
commit 5414e217fd
+7 -5
View File
@@ -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 ];
};
}
})