Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
1003 B
Nix
50 lines
1003 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
lzfse,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "img4lib";
|
|
version = "0-unstable-2021-11-28";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xerub";
|
|
repo = "img4lib";
|
|
rev = "69772c72f3c08f021ec9fa4c386f2b3df60a38b7";
|
|
hash = "sha256-xCWovBJ9cxT17u1uo+aUQnxDoYFQXYy9Qer0mD45aOU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
lzfse
|
|
openssl
|
|
];
|
|
|
|
installPhase = "
|
|
runHook preInstall
|
|
|
|
install -Dm755 img4 $out/bin/img4
|
|
|
|
runHook postInstall
|
|
";
|
|
|
|
strictDeps = true;
|
|
|
|
meta = {
|
|
description = "Library and tool for parsing, manipulating, and patching Apple .img4 container files";
|
|
homepage = "https://github.com/xerub/img4lib";
|
|
# No licensing information available
|
|
# https://github.com/xerub/img4lib/issues/14
|
|
license = lib.licenses.unfree;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ onny ];
|
|
mainProgram = "img4";
|
|
};
|
|
})
|