2024-10-11 05:15:48 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
libbsd,
|
|
|
|
libuuid,
|
|
|
|
openssl,
|
|
|
|
}:
|
2023-08-22 20:05:09 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "hfsprogs";
|
2024-10-11 05:15:48 +00:00
|
|
|
version = "627.40.1-linux";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "glaubitz";
|
|
|
|
repo = "hfs";
|
|
|
|
rev = "a9496556b0a5fa805139ea20b44081d48aae912a";
|
|
|
|
hash = "sha256-i6fXPWHU03ErUN2irP2cLJbpqi1OrTtcQE+ohAz+Eio=";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
buildInputs = [
|
|
|
|
libbsd
|
|
|
|
libuuid
|
|
|
|
openssl
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
# Copy executables
|
2024-10-11 05:15:48 +00:00
|
|
|
install -Dm 555 "newfs_hfs/newfs_hfs" "$out/bin/mkfs.hfsplus"
|
|
|
|
install -Dm 555 "fsck_hfs/fsck_hfs" "$out/bin/fsck.hfsplus"
|
2020-04-24 23:36:52 +00:00
|
|
|
# Copy man pages
|
2024-10-11 05:15:48 +00:00
|
|
|
install -Dm 444 "newfs_hfs/newfs_hfs.8" "$out/share/man/man8/mkfs.hfsplus.8"
|
|
|
|
install -Dm 444 "fsck_hfs/fsck_hfs.8" "$out/share/man/man8/fsck.hfsplus.8"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "HFS/HFS+ user space utils";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = lib.licenses.apple-psl20;
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|