2024-06-12 11:12:48 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchzip,
|
|
|
|
fetchpatch,
|
|
|
|
autoreconfHook,
|
|
|
|
libselinux,
|
|
|
|
libuuid,
|
|
|
|
pkg-config,
|
2024-06-12 11:13:35 +00:00
|
|
|
lz4,
|
|
|
|
lzo,
|
2024-03-02 19:37:29 +00:00
|
|
|
}:
|
2014-03-23 01:47:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "f2fs-tools";
|
2023-04-16 05:35:49 +00:00
|
|
|
version = "1.16.0";
|
2014-03-23 01:47:37 +00:00
|
|
|
|
2023-06-15 12:25:58 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/f2fs-tools-v${version}.tar.gz";
|
2024-09-14 21:47:11 +00:00
|
|
|
hash = "sha256-zNG1F//+BTBzlEc6qNVixyuCB6PMZD5Kf8pVK0ePYiA=";
|
2014-03-23 01:47:37 +00:00
|
|
|
};
|
|
|
|
|
2024-06-12 11:12:48 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
libselinux
|
|
|
|
libuuid
|
2024-06-12 11:13:35 +00:00
|
|
|
lz4
|
|
|
|
lzo
|
2024-06-12 11:12:48 +00:00
|
|
|
];
|
2014-03-23 01:47:37 +00:00
|
|
|
|
2024-03-02 19:37:29 +00:00
|
|
|
patches = [
|
|
|
|
./f2fs-tools-cross-fix.patch
|
|
|
|
|
|
|
|
(fetchpatch {
|
|
|
|
name = "lfs64.patch";
|
|
|
|
url = "https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/patch/?id=b15b6cc56ac7764be17acbdbf96448f388992adc";
|
|
|
|
hash = "sha256-9XrNf9MMMDGOsuP3DvUhm30Sa2xICDtXbUIvM/TP35o=";
|
|
|
|
})
|
|
|
|
];
|
2018-11-29 02:11:57 +00:00
|
|
|
|
2024-09-16 12:00:08 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2024-06-12 11:12:48 +00:00
|
|
|
meta = {
|
2022-06-05 15:36:26 +00:00
|
|
|
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/";
|
2014-03-23 01:47:37 +00:00
|
|
|
description = "Userland tools for the f2fs filesystem";
|
2024-06-12 11:12:48 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
ehmry
|
|
|
|
jagajaga
|
|
|
|
];
|
2014-03-23 01:47:37 +00:00
|
|
|
};
|
|
|
|
}
|