blob: 2c3928b0bd02e0a07e74be38c83f4f26961015db [file] [log] [blame]
{
description = "A flake to build android's partition-tools package";
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-21.11;
inputs.src.url = github:AndroidDumps/Firmware_extractor;
inputs.src.flake = false;
outputs = { self, nixpkgs, src }: {
packages.x86_64-linux.partition-tools =
with import nixpkgs { system = "x86_64-linux"; };
stdenv.mkDerivation {
inherit src;
name = "partition-tools";
installPhase = "mkdir -p $out/bin && cp ${src}/tools/Linux/bin/* $out/bin && cp ${src}/tools/Linux/bin/bin/* $out/bin";
};
defaultPackage.x86_64-linux = self.packages.x86_64-linux.partition-tools;
};
}