Skip to content

Commit

Permalink
nix: Add dummy libunwind expression
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Oct 24, 2024
1 parent e7033fd commit 0ed0d44
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hacking/nix/scope/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ superCallPackage ../rust-utils {} self //

muslForSeL4Raw = callPackage ./musl/raw.nix {};

dummyLibunwind = callPackage ./musl/dummy-libunwind.nix {};

### sel4test

mkSeL4Test = callPackage ./sel4test {};
Expand Down
13 changes: 13 additions & 0 deletions hacking/nix/scope/musl/dummy-libunwind.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# Copyright 2024, Colias Group, LLC
#
# SPDX-License-Identifier: BSD-2-Clause
#

{ runCommandCC }:

runCommandCC "dummy-libunwind" {} ''
mkdir -p $out/lib
touch empty.o
$AR r $out/lib/libunwind.a empty.o
''

0 comments on commit 0ed0d44

Please sign in to comment.