Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 30 lines 804 B view raw
1{ lib, stdenv, fetchFromGitHub, pkg-config, dtc, libusb1, zlib }: 2 3stdenv.mkDerivation rec { 4 pname = "sunxi-tools"; 5 version = "unstable-2021-08-29"; 6 7 src = fetchFromGitHub { 8 owner = "linux-sunxi"; 9 repo = "sunxi-tools"; 10 rev = "74273b671a3fc34048383c40c85c684423009fb9"; 11 sha256 = "1gwamb64vr45iy2ry7jp1k3zc03q5sydmdflrbwr892f0ijh2wjl"; 12 }; 13 14 nativeBuildInputs = [ pkg-config ]; 15 buildInputs = [ dtc libusb1 zlib ]; 16 17 makeFlags = [ "PREFIX=$(out)" ]; 18 19 buildFlags = [ "tools" "misc" ]; 20 21 installTargets = [ "install-tools" "install-misc" ]; 22 23 meta = with lib; { 24 description = "Tools for Allwinner SoC devices"; 25 homepage = "http://linux-sunxi.org/"; 26 license = licenses.gpl2Plus; 27 platforms = platforms.linux; 28 maintainers = with maintainers; [ elitak ]; 29 }; 30}