mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
64 lines
1.5 KiB
Nix
64 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
fuse,
|
|
util-linux,
|
|
lz4,
|
|
xz,
|
|
zlib,
|
|
libselinux,
|
|
fuseSupport ? stdenv.hostPlatform.isLinux,
|
|
selinuxSupport ? false,
|
|
lzmaSupport ? false,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "erofs-utils";
|
|
version = "1.8.2";
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
src = fetchurl {
|
|
url = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/erofs-utils-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-ZLb/fomfYkgCg87mN4fzfw+cS+emvHoj1zSqqHOmz/Q=";
|
|
};
|
|
|
|
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"
|
|
++ lib.optional selinuxSupport "--with-selinux"
|
|
++ lib.optional lzmaSupport "--enable-lzma";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/about/";
|
|
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
|
|
jmbaur
|
|
];
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|