Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 59edce641426
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 714aff4004cb
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on May 13, 2018

  1. Copy the full SHA
    261bc1d View commit details
  2. Copy the full SHA
    714aff4 View commit details
Showing with 9 additions and 12 deletions.
  1. +9 −12 pkgs/development/tools/sunxi-tools/default.nix
21 changes: 9 additions & 12 deletions pkgs/development/tools/sunxi-tools/default.nix
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
{ stdenv, fetchFromGitHub, pkgconfig, libusb }:
{ stdenv, fetchFromGitHub, pkgconfig, libusb, zlib }:

stdenv.mkDerivation {
name = "sunxi-tools-1.3";
name = "sunxi-tools-20171130";

src = fetchFromGitHub {
owner = "linux-sunxi";
repo = "sunxi-tools";
rev = "be1b4c7400161b90437432076360c1f99970f54f";
sha256 = "02pqaaahra4wbv325264qh5i17mxwicmjx9nm33nw2dpmfmg9xhr";
rev = "5c1971040c6c44caefb98e371bfca9e18d511da9";
sha256 = "0qzm515i3dfn82a6sf7372080zb02d365z52bh0b1q711r4dvjgp";
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libusb ];
buildInputs = [ libusb zlib ];

buildPhase = ''
make all misc
'';
makeFlags = [ "PREFIX=$(out)" ];

installPhase = ''
mkdir -p $out/bin
cp bin2fex fex2bin phoenix_info sunxi-bootinfo sunxi-fel sunxi-fexc sunxi-nand-part sunxi-pio $out/bin
'';
buildFlags = [ "tools" "misc" ];

installTargets = [ "install-tools" "install-misc" ];

meta = with stdenv.lib; {
description = "Tools for Allwinner A10 devices";