Skip to content

wip: Attempting to also build lix with nix-ninja#8

Draft
elpdt852 wants to merge 1 commit intomainfrom
feature/example-lix
Draft

wip: Attempting to also build lix with nix-ninja#8
elpdt852 wants to merge 1 commit intomainfrom
feature/example-lix

Conversation

@elpdt852
Copy link
Copy Markdown
Contributor

@elpdt852 elpdt852 commented Apr 1, 2025

Not working yet, but there's also some bug fixes here that should be refactored out.

@elpdt852
Copy link
Copy Markdown
Contributor Author

elpdt852 commented Apr 1, 2025

Refactored non-lix related changes to: #8

@elpdt852
Copy link
Copy Markdown
Contributor Author

Refactored example/nix/default.nix to: #29

let mut path = relative_path.to_string_lossy().into_owned();
canon::canonicalize_path(&mut path);

let canonical_path = fs::canonicalize(&path)?;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have 2 canonicalization calls here. Mind adding a comment to the code explaining why this is necessary?

Comment thread examples/nix/default.nix
@@ -0,0 +1,98 @@
{ inputs
Copy link
Copy Markdown
Contributor

@mupdt mupdt Aug 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use nix-src rather than the whole inputs attrset (the same for lix)?

Suggested change
{ inputs
{ nix-src

Comment thread examples/lix/default.nix
Copy link
Copy Markdown
Contributor

@mupdt mupdt Aug 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a postInstall step that verifies lix --help works, or something like that. Same for the nix example.

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.

2 participants