Skip to content

Commit

Permalink
rpiboot-unstable: init at 2018-03-27
Browse files Browse the repository at this point in the history
  • Loading branch information
cartr authored and dezgeg committed Apr 5, 2018
1 parent bea1f22 commit 7f92e3b
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,11 @@
github = "carlsverre";
name = "Carl Sverre";
};
cartr = {
email = "carter.sande@duodecima.technology";
github = "cartr";
name = "Carter Sande";
};
casey = {
email = "casey@rodarmor.net";
github = "casey";
Expand Down
36 changes: 36 additions & 0 deletions pkgs/development/misc/rpiboot/unstable.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ stdenv, fetchFromGitHub, libusb1 }:

let
version = "2018-03-27";
name = "rpiboot-unstable-${version}";
in stdenv.mkDerivation {
inherit name;

src = fetchFromGitHub {
owner = "raspberrypi";
repo = "usbboot";
rev = "fb86716935f2e820333b037a2ff93a338ad9b695";
sha256 = "163g7iw7kf6ra71adx6lf1xzf3kv20bppva15ljwn54jlah5mv98";
};

nativeBuildInputs = [ libusb1 ];

patchPhase = ''
sed -i "s@/usr/@$out/@g" main.c
'';

installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share/rpiboot
cp rpiboot $out/bin
cp -r msd $out/share/rpiboot
'';

meta = {
homepage = https://github.com/raspberrypi/usbboot;
description = "Utility to boot a Raspberry Pi CM/CM3/Zero over USB";
maintainers = [ stdenv.lib.maintainers.cartr ];
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.unix;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4649,6 +4649,8 @@ with pkgs;

rpPPPoE = callPackage ../tools/networking/rp-pppoe { };

rpiboot-unstable = callPackage ../development/misc/rpiboot/unstable.nix { };

rpm = callPackage ../tools/package-management/rpm { };

rpm-ostree = callPackage ../tools/misc/rpm-ostree {
Expand Down

0 comments on commit 7f92e3b

Please sign in to comment.