Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add derivation to build lightswitch with nix #33

Merged
merged 1 commit into from
May 7, 2024
Merged

Conversation

javierhonduco
Copy link
Owner

As well as a container image. This is mostly experimental and won't be adding CI for it as of now.

Also add a rust-gdb env variable to use the nix provided gdb binary rather than the system's as this might happen when running under the root user.

Test Plan

CI to ensure nothing is broken and

(nix:nix-shell-env) [javierhonduco@fedora lightswitch]$ nix build .#container
(nix:nix-shell-env) [javierhonduco@fedora lightswitch]$ docker load < result
(nix:nix-shell-env) [javierhonduco@fedora lightswitch]$ docker run -it --privileged --pid host -v /sys/:/sys/ lightswitch:xq7qmc7br6nxn5gd5064z4mns96q4kjf

As well as a container image. This is mostly experimental and won't be
adding CI for it as of now.

Also add a rust-gdb env variable to use the nix provided gdb binary
rather than the system's as this might happen when running under the
root user.

Test Plan
=========

CI to ensure nothing is broken and

```
(nix:nix-shell-env) [javierhonduco@fedora lightswitch]$ nix build .#container
(nix:nix-shell-env) [javierhonduco@fedora lightswitch]$ docker load < result
(nix:nix-shell-env) [javierhonduco@fedora lightswitch]$ docker run -it --privileged --pid host -v /sys/:/sys/ lightswitch:xq7qmc7br6nxn5gd5064z4mns96q4kjf
```
@javierhonduco javierhonduco merged commit b49f76d into main May 7, 2024
6 checks passed
@javierhonduco javierhonduco deleted the build-with-nix branch May 7, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant