Skip to content

Commit

Permalink
3cpio: init at 0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbaur committed Jan 18, 2025
1 parent 9596c76 commit f130ec7
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/by-name/_3/_3cpio/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
fetchFromGitHub,
lib,
lz4,
lzop,
nix-update-script,
rustPlatform,
}:

rustPlatform.buildRustPackage rec {
pname = "3cpio";
version = "0.3.2";

src = fetchFromGitHub {
owner = "bdrung";
repo = "3cpio";
tag = version;
hash = "sha256-FuxnzRGhunLM90RuwCVVuRtNmjV2jS0e8BxwrOxLM8Q=";
};

useFetchCargoVendor = true;
cargoHash = "sha256-m559ykuXYqvLkzwBx3Ndji98b33uhcVLn7/wtCWvpEQ=";

nativeCheckInputs = [
lz4
lzop
];

cargoTestFlags = [ "-- --skip=test_write_directory_with_setuid" ];

strictDeps = true;

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";
};
}

0 comments on commit f130ec7

Please sign in to comment.