Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Last active February 22, 2019 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/e21c0cecb25954f100a1116d045b6721 to your computer and use it in GitHub Desktop.
Save cleverca22/e21c0cecb25954f100a1116d045b6721 to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> {};
in pkgs.pkgsCross.avr.stdenv.mkDerivation {
name = "firmware";
src = ./.;
installPhase = ''
mkdir $out
cp avr.bin $out/
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment