1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 13:10:29 +03:00
mobile-nixos/overlay/mkbootimg/default.nix

23 lines
478 B
Nix
Raw Normal View History

2018-06-12 02:24:02 +03:00
{stdenv, fetchurl}:
2018-06-10 03:57:12 +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";
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/*
'';
NIX_CFLAGS_COMPILE = [
"-Wno-error=address-of-packed-member"
];
2018-06-10 03:57:12 +03:00
}