2018-06-12 02:24:02 +03:00
|
|
|
{stdenv, fetchurl}:
|
2018-06-10 03:57:12 +03:00
|
|
|
|
2020-06-26 07:52:30 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mkbootimg";
|
|
|
|
version = "2020.05.18";
|
2018-06-10 03:57:12 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/osm0sis/mkbootimg/archive/${version}.tar.gz";
|
2020-06-26 07:52:30 +03:00
|
|
|
sha256 = "1zz06x31rak9sv5v01kj3cvqvzh5qvq34p00paw5p3jl0lxvnvwc";
|
2018-06-10 03:57:12 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -v mkbootimg $out/bin/
|
|
|
|
cp -v unpackbootimg $out/bin/
|
|
|
|
chmod +x $out/bin/*
|
|
|
|
'';
|
|
|
|
|
2020-01-13 08:12:25 +03:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-Wno-error=address-of-packed-member"
|
|
|
|
];
|
2018-06-10 03:57:12 +03:00
|
|
|
}
|