Files
nixpkgs/pkgs/by-name/bl/blobtools/package.nix
David Wronek 93f78aa8e5 blobtools: fix cross compile
Fixes building with `pkgsCross`.

Signed-off-by: David Wronek <david.wronek@mainlining.org>
2026-09-12 11:19:07 +02:00

38 lines
863 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation {
pname = "blobtools";
version = "0-unstable-2012-10-24";
src = fetchFromGitHub {
owner = "AndroidRoot";
repo = "BlobTools";
rev = "6186e33baa10ce6f1c738d7b91eb5153743105af";
hash = "sha256-zg0A5Dm3255jqcioK45P2uzDnaaSAUkl4WtCJh77IuQ=";
};
strictDeps = true;
postPatch = ''
substituteInPlace Makefile \
--replace-fail "CC=g++" "CC=${stdenv.cc.targetPrefix}c++"
'';
installPhase = ''
runHook preInstall
install -Dm555 {blobpack,blobunpack} -t $out/bin
runHook postInstall
'';
meta = {
homepage = "https://github.com/AndroidRoot/BlobTools";
description = "Tools for modifying ASUS Transformer firmware";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ungeskriptet ];
mainProgram = "blobpack";
};
}