1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 04:51:31 +03:00
mobile-nixos/overlay/mkbootimg/default.nix
Samuel Dionne-Riel 5b5cf641f8 mkbootimg: 2019.04.13 -> 2020.05.18
This is needed to produce boot images that will not brick some MTK
devices, namely xiaomi-begonia.
2020-06-26 01:17:41 -04:00

23 lines
478 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation rec {
pname = "mkbootimg";
version = "2020.05.18";
src = fetchurl {
url = "https://github.com/osm0sis/mkbootimg/archive/${version}.tar.gz";
sha256 = "1zz06x31rak9sv5v01kj3cvqvzh5qvq34p00paw5p3jl0lxvnvwc";
};
installPhase = ''
mkdir -p $out/bin
cp -v mkbootimg $out/bin/
cp -v unpackbootimg $out/bin/
chmod +x $out/bin/*
'';
NIX_CFLAGS_COMPILE = [
"-Wno-error=address-of-packed-member"
];
}