Skip to content

Instantly share code, notes, and snippets.

@betawaffle
Created December 14, 2019 20:03
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 betawaffle/59cf0e335d7a618ba7295736619cbba8 to your computer and use it in GitHub Desktop.
Save betawaffle/59cf0e335d7a618ba7295736619cbba8 to your computer and use it in GitHub Desktop.
with (import <nixpkgs> {});
stdenv.mkDerivation rec {
pname = "coreboot-pce-apu2";
version = "4.11.0.1";
src = fetchFromGitHub {
name = "coreboot";
owner = "pcengines";
repo = "coreboot";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "1fgri5gslzb8xkmj9lwv8mirccvlzznvrglkv9wcjqm740h6k09h";
};
configurePhase = ''
cp configs/config.pcengines_apu2 .config
make olddefconfig
'';
installPhase = ''
cp build/coreboot.rom $out/coreboot.rom
'';
# Is this necessary, or is the generic fixup safe to do?
dontFixup = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment