pmount: add debian patches; fix gcc-14 build

https://salsa.debian.org/debian/pmount/-/tree/debian/master/debian/patches
This commit is contained in:
Reno Dakota
2025-01-16 11:40:03 +00:00
parent 54c73edb52
commit 604fa77ed8
+30
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
fetchpatch,
intltool,
ntfs3g,
util-linux,
@@ -22,6 +23,35 @@ stdenv.mkDerivation rec {
sha256 = "db38fc290b710e8e9e9d442da2fb627d41e13b3ee80326c15cc2595ba00ea036";
};
patches =
let
# https://salsa.debian.org/debian/pmount/-/tree/debian/master/debian/patches
fetchDebPatch =
{ name, hash }:
fetchpatch {
inherit name hash;
url = "https://salsa.debian.org/debian/pmount/-/raw/ba05283d4a53aba5349d4397a98d9f45206fb29f/debian/patches/${name}";
};
in
map fetchDebPatch [
{
name = "10_fix-spelling-binary-errors.patch";
hash = "sha256-G4GsUe1ZdYB7Qv333X1hUjOELITR8A2pqyfEnMDTwHI=";
}
{
name = "20_fix-spelling-manpage-error.patch";
hash = "sha256-9phF8s7MFSjkhPP24cipeBUps5W1L7YmAE0B1QPx5jk=";
}
{
name = "fix-implicit-function-declaration.patch";
hash = "sha256-kdwdS9G1X5RtQFKzF6oMIUubGNP7n1ZQNHu8sN1oV4Q=";
}
{
name = "30_exfat-support.patch";
hash = "sha256-kg9gLhOtdrEDlZfUnT910xI5rNR1zgKKRx2kvFQjbi8=";
}
];
nativeBuildInputs = [
intltool
util-linux