nixpkgs/pkgs/by-name/_3/_3cpio/package.nix

40 lines
887 B
Nix

{
fetchFromGitHub,
lib,
lz4,
lzop,
nix-update-script,
rustPlatform,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "3cpio";
version = "0.11.0";
src = fetchFromGitHub {
owner = "bdrung";
repo = "3cpio";
tag = version;
hash = "sha256-TZw9IixZxQ00uFZw6RtAY4zWV22zuuaP6dAB4vkXwaM=";
};
cargoHash = "sha256-2IT5zdgUvzeYt81iwYssR/xEp03Qz6+Ll5u02y+R3qo=";
# Tests attempt to access arbitrary filepaths
doCheck = false;
passthru.updateScript = nix-update-script { };
meta = {
description = "Manage initrd cpio archives";
homepage = "https://github.com/bdrung/3cpio";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.jmbaur ];
mainProgram = "3cpio";
# broken due to signature mismatch in libc crate on darwin:
# https://github.com/rust-lang/libc/issues/4360
broken = stdenv.isDarwin;
};
}