forked from linuxboot/heads
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WiP: blunt CircleCI nix-shell build without gnat6/ada with all boards…
… configs without libgfxinit linuxboot#1269 Modified with limited understanding absolute local builds to reuse Nix cache of already confirmed reproducible stuff Removed gnat6/ada, added swtpm, texinfo and rsync for which otherwise there was local failings
- Loading branch information
Showing
4 changed files
with
147 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
description = "heads flake, mostly for devshell for now"; | ||
|
||
inputs = { | ||
nixpkgs.url = "nixpkgs/nixos-unstable"; | ||
gnat6nixpkgs.url = "nixpkgs/19cb612405c82c7f4fb3ce4497e24c1efa0b1935"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { | ||
self, | ||
flake-utils, | ||
nixpkgs, | ||
}: | ||
flake-utils.lib.eachDefaultSystem (system: let | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
in { | ||
devShell = | ||
(pkgs.buildFHSUserEnv { | ||
name = "heads-build-env"; | ||
targetPkgs = pkgs: (with pkgs; | ||
[ | ||
bison # Generate flashmap descriptor parser | ||
curl | ||
flex | ||
git | ||
gcc | ||
gnumake | ||
m4 | ||
ncurses # make menuconfig | ||
nss # ca-certs | ||
perl | ||
pkgconfig | ||
qemu # test the image | ||
wget | ||
which | ||
zlib.dev | ||
profile = '' | ||
''; | ||
}) | ||
.env; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
let | ||
_pkgs = import <nixpkgs> {}; | ||
in | ||
{ | ||
pkgs ? | ||
import (_pkgs.fetchFromGitHub { | ||
owner = "NixOS"; | ||
repo = "nixpkgs"; | ||
#branch@date: nixpkgs-unstable@2023-01-03 | ||
rev = "298add347c2bbce14020fcb54051f517c391196b"; | ||
sha256 = "0q0c6gf21rbfxvb9fvcmybvz9fxskbk324xbvqsh1dz2wzgylrja"; | ||
}) {}, | ||
}: | ||
(pkgs.buildFHSUserEnv { | ||
name = "heads-build-env"; | ||
targetPkgs = pkgs: (with pkgs; [ | ||
bison # Generate flashmap descriptor parser | ||
curl | ||
flex | ||
texinfo | ||
gcc | ||
git | ||
gnumake | ||
m4 | ||
ncurses # make menuconfig | ||
nss # ca-certs | ||
perl | ||
pkgconfig | ||
wget | ||
which | ||
rsync #needed by 5.x linux kernels | ||
qemu #test image | ||
swtpm #test image with qemu and BOARD=qemu-(fb)whiptail-tpm(1/2) targets | ||
zlib.dev | ||
]); | ||
profile = '' | ||
''; | ||
}) | ||
.env |