lol

abootimg: init at 0.6

+45
+43
pkgs/development/mobile/abootimg/default.nix
··· 1 + { stdenv, fetchFromGitHub, coreutils, cpio, findutils, gzip, makeWrapper, utillinux }: 2 + 3 + let 4 + version = "0.6"; 5 + in 6 + stdenv.mkDerivation { 7 + name = "abootimg-${version}"; 8 + 9 + src = fetchFromGitHub { 10 + owner = "ggrandou"; 11 + repo = "abootimg"; 12 + rev = "7e127fee6a3981f6b0a50ce9910267cd501e09d4"; 13 + sha256 = "1qgx9fxwhylgnixzkz2mzv2707f65qq7rar2rsqak536vhig1z9a"; 14 + }; 15 + 16 + nativeBuildInputs = [ makeWrapper utillinux ]; 17 + 18 + postPatch = '' 19 + cat <<EOF > version.h 20 + #define VERSION_STR "${version}" 21 + EOF 22 + ''; 23 + 24 + installPhase = '' 25 + mkdir -p $out/bin 26 + install -D -m 755 abootimg $out/bin 27 + install -D -m444 ./debian/abootimg.1 $out/share/man/man1/abootimg.1; 28 + 29 + install -D -m 755 abootimg-pack-initrd $out/bin 30 + wrapProgram $out/bin/abootimg-pack-initrd --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils cpio findutils gzip ]} 31 + 32 + install -D -m 755 abootimg-unpack-initrd $out/bin 33 + wrapProgram $out/bin/abootimg-unpack-initrd --prefix PATH : ${stdenv.lib.makeBinPath [ cpio gzip ]} 34 + ''; 35 + 36 + meta = with stdenv.lib; { 37 + homepage = https://github.com/ggrandou/abootimg; 38 + description = "Manipulate Android Boot Images"; 39 + license = licenses.gpl2; 40 + platforms = platforms.linux; 41 + maintainers = [ maintainers.flokli ]; 42 + }; 43 + }
+2
pkgs/top-level/all-packages.nix
··· 688 688 pkgs_i686 = pkgsi686Linux; 689 689 }; 690 690 691 + abootimg = callPackage ../development/mobile/abootimg {}; 692 + 691 693 adbfs-rootless = callPackage ../development/mobile/adbfs-rootless { 692 694 adb = androidenv.platformTools; 693 695 };