depot/third_party/nixpkgs/pkgs/tools/filesystems/f2fs-tools/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

34 lines
1.1 KiB
Nix

{ lib, stdenv, fetchzip, fetchpatch
, autoreconfHook, libselinux, libuuid, pkg-config
}:
stdenv.mkDerivation rec {
pname = "f2fs-tools";
version = "1.16.0";
src = fetchzip {
url = "https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/f2fs-tools-v${version}.tar.gz";
sha256 = "sha256-zNG1F//+BTBzlEc6qNVixyuCB6PMZD5Kf8pVK0ePYiA=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ libselinux libuuid ];
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=";
})
];
meta = with lib; {
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/";
description = "Userland tools for the f2fs filesystem";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = with maintainers; [ ehmry jagajaga ];
};
}