Skip to content

Commit

Permalink
nix: qmk/vial: fix sandboxed builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rgoulter committed Jun 10, 2024
1 parent 095876b commit 02bb16f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion nix/pkgs/qmk/compile.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,15 @@ stdenv.mkDerivation rec {

patchPhase = ''
cp -r ${extra_files}/* .
patchShebangs util/uf2conv.py
'';

buildInputs = [qmk];

buildPhase = let
envArg = lib.strings.concatMapStrings (e: " --env " + e) env;
in ''
${qmk}/bin/qmk compile --keyboard ${keyboard} --keymap ${keymap} ${envArg}
qmk compile --keyboard ${keyboard} --keymap ${keymap} ${envArg}
'';

installPhase = ''
Expand Down
5 changes: 4 additions & 1 deletion nix/pkgs/qmk/vial.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,15 @@ stdenv.mkDerivation rec {
for extra in ${lib.strings.concatStringsSep " " extra_files}; do
${rsync}/bin/rsync --recursive $extra/ .
done
patchShebangs util/uf2conv.py
'';

buildInputs = [qmk];

buildPhase = let
envArg = lib.strings.concatMapStrings (e: " --env " + e) env;
in ''
${qmk}/bin/qmk compile --keyboard ${keyboard} --keymap ${keymap} ${envArg}
qmk compile --keyboard ${keyboard} --keymap ${keymap} ${envArg}
'';

installPhase = ''
Expand Down

0 comments on commit 02bb16f

Please sign in to comment.