blob: a647a51f4a81a0a3e48b1a914b613b8c7490e892 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
autoreconfHook,
pkg-config,
libiconv,
gettext,
xxd,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dosfstools";
version = "4.2";
src = fetchFromGitHub {
owner = "dosfstools";
repo = "dosfstools";
rev = "v${finalAttrs.version}";
sha256 = "sha256-2gxB0lQixiHOHw8uTetHekaM57fvUd9zOzSxWnvUz/c=";
};
patches = [
# macOS and FreeBSD build fixes backported from master
# TODO: remove on the next release
(fetchpatch {
url = "https://github.com/dosfstools/dosfstools/commit/77ffb87e8272760b3bb2dec8f722103b0effb801.patch";
sha256 = "sha256-xHxIs3faHK/sK3vAVoG8JcTe4zAV+ZtkozWIIFBvPWI=";
})
(fetchpatch {
url = "https://github.com/dosfstools/dosfstools/commit/2d3125c4a74895eae1f66b93287031d340324524.patch";
sha256 = "nlIuRDsNjk23MKZL9cZ05odOfTXvsyQaKcv/xEr4c+U=";
})
# reproducible builds fix backported from master
# (respect SOURCE_DATE_EPOCH)
# TODO: remove on the next release
(fetchpatch {
url = "https://github.com/dosfstools/dosfstools/commit/8da7bc93315cb0c32ad868f17808468b81fa76ec.patch";
sha256 = "sha256-Quegj5uYZgACgjSZef6cjrWQ64SToGQxbxyqCdl8C7o=";
})
./gettext-0.25.patch
];
nativeBuildInputs = [
autoreconfHook
gettext
pkg-config
]
++ lib.optional stdenv.hostPlatform.isDarwin libiconv;
configureFlags = [ "--enable-compat-symlinks" ];
outputs = [
"out"
"doc"
"man"
];
nativeCheckInputs = [ xxd ];
doCheck = true;
meta = {
description = "Utilities for creating and checking FAT and VFAT file systems";
homepage = "https://github.com/dosfstools/dosfstools";
platforms = lib.platforms.unix;
license = lib.licenses.gpl3;
};
})
|