Merge pull request #335929 from jmbaur/erofs-utils-1.8

Re-upgrade erofs-utils to 1.8
This commit is contained in:
nikstur
2024-08-22 11:52:25 +02:00
committed by GitHub
2 changed files with 43 additions and 17 deletions
+1
View File
@@ -143,6 +143,7 @@ let
--transform 'flags=rSh;s|/nix/store/||' \
--files-from ${hostPkgs.closureInfo { rootPaths = [ config.system.build.toplevel regInfo ]; }}/store-paths \
| ${hostPkgs.erofs-utils}/bin/mkfs.erofs \
--quiet \
--force-uid=0 \
--force-gid=0 \
-L ${nixStoreFilesystemLabel} \
+42 -17
View File
@@ -1,29 +1,50 @@
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, fuse, util-linux, lz4, xz, zlib, libselinux
, fuseSupport ? stdenv.isLinux
, selinuxSupport ? false
, lzmaSupport ? false
{
lib,
stdenv,
fetchurl,
autoreconfHook,
pkg-config,
fuse,
util-linux,
lz4,
xz,
zlib,
libselinux,
fuseSupport ? stdenv.isLinux,
selinuxSupport ? false,
lzmaSupport ? false,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "erofs-utils";
version = "1.7.1";
outputs = [ "out" "man" ];
version = "1.8.1";
outputs = [
"out"
"man"
];
src = fetchurl {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/erofs-utils-${version}.tar.gz";
hash = "sha256-GWCD1j5eIx+1eZ586GqUS7ylZNqrzj3pIlqKyp3K/xU=";
url = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/erofs-utils-${finalAttrs.version}.tar.gz";
hash = "sha256-Xb97SS92gkYrl6dxIdQ8p2Cc2Q5l+MlpMa78ggpvDaM=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ util-linux lz4 zlib ]
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs =
[
util-linux
lz4
zlib
]
++ lib.optionals fuseSupport [ fuse ]
++ lib.optionals selinuxSupport [ libselinux ]
++ lib.optionals lzmaSupport [ xz ];
configureFlags = [
"MAX_BLOCK_SIZE=4096"
] ++ lib.optional fuseSupport "--enable-fuse"
configureFlags =
[ "MAX_BLOCK_SIZE=4096" ]
++ lib.optional fuseSupport "--enable-fuse"
++ lib.optional selinuxSupport "--with-selinux"
++ lib.optional lzmaSupport "--enable-lzma";
@@ -32,7 +53,11 @@ stdenv.mkDerivation rec {
description = "Userspace utilities for linux-erofs file system";
changelog = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/tree/ChangeLog?h=v${version}";
license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [ ehmry nikstur ];
maintainers = with maintainers; [
ehmry
nikstur
jmbaur
];
platforms = platforms.unix;
};
}
})