fb4a93a913
fetchzip is more efficient, because it doesn't do a full git clone, so it should be preferred where possible. Where hashes have not been changed, I have verified that they don't need to be. Where hashes have changed, in all cases this is because of .gitattributes files that exclude certain files from the tarball, and in these cases I have verified that the packages still build. sbsigntool still uses fetchgit because it has a submodule, and ell and iwd still use fetchgit because git.kernel.org does not provide snapshot links for them. Apparently this is intentional.
24 lines
803 B
Nix
24 lines
803 B
Nix
{ lib, stdenv, fetchzip, 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 ];
|
|
|
|
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.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ ehmry jagajaga ];
|
|
};
|
|
}
|