b531c19806
Changes: * https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/tree/doc/RelNotes/v1.44.6.txt?h=v1.44.6 * https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/tree/doc/RelNotes/v1.45.0.txt?h=v1.45.0 Also: * remove 'hack' for installing pc files * fixup location of `e2scrub_all_cron` to avoid reference cycle in outputs, promote to $bin/bin for now.
54 lines
1.8 KiB
Nix
54 lines
1.8 KiB
Nix
{ stdenv, buildPackages, fetchurl, fetchpatch, pkgconfig, libuuid, gettext, texinfo, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "e2fsprogs";
|
|
version = "1.45.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
|
|
sha256 = "1sgcjarfksa8bkx81q5cd6rzqvhzgs28a0ljwyr4ggqpfx7d18vk";
|
|
};
|
|
|
|
outputs = [ "bin" "dev" "out" "man" "info" ];
|
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
|
nativeBuildInputs = [ pkgconfig texinfo ];
|
|
buildInputs = [ libuuid gettext ];
|
|
|
|
# Only use glibc's __GNUC_PREREQ(X,Y) (checks if compiler is gcc version >= X.Y) when using glibc
|
|
patches = if stdenv.hostPlatform.libc == "glibc" then null
|
|
else [
|
|
(fetchpatch {
|
|
url = "https://raw.githubusercontent.com/void-linux/void-packages/9583597eb3e6e6b33f61dbc615d511ce030bc443/srcpkgs/e2fsprogs/patches/fix-glibcism.patch";
|
|
sha256 = "1fyml1iwrs412xn2w36ra28am3sq4klrrj60lnf7rysyw069nxk3";
|
|
extraPrefix = "";
|
|
})
|
|
];
|
|
|
|
configureFlags =
|
|
if stdenv.isLinux then [
|
|
"--enable-elf-shlibs" "--enable-symlink-install" "--enable-relative-symlinks"
|
|
# libuuid, libblkid, uuidd and fsck are in util-linux-ng (the "libuuid" dependency).
|
|
"--disable-libuuid" "--disable-uuidd" "--disable-libblkid" "--disable-fsck"
|
|
] else [
|
|
"--enable-libuuid --disable-e2initrd-helper"
|
|
];
|
|
|
|
checkInputs = [ perl ];
|
|
doCheck = false; # fails
|
|
|
|
postInstall = ''
|
|
# avoid cycle between outputs
|
|
mv $out/lib/${pname}/e2scrub_all_cron $bin/bin/
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://e2fsprogs.sourceforge.net/;
|
|
description = "Tools for creating and checking ext2/ext3/ext4 filesystems";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.eelco ];
|
|
};
|
|
}
|