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 a Nix Flake #11

Merged
merged 3 commits into from
Oct 19, 2023
Merged

Add a Nix Flake #11

merged 3 commits into from
Oct 19, 2023

Conversation

dpc
Copy link
Contributor

@dpc dpc commented Oct 19, 2023

Hi,

I'd like to use presenterm and I am a Nix&NixOS user.

I've added a simple Nix Flake, based on Flakebox.

In a nutshell, once it lands Nix users can very easily run presenterm with:

nix run github:mfontanini/presenterm -- <args>

and also include it in their system configurations etc.

Under the hood it has support for other stuff as well, like cross-compilation:

nix build -L .#aarch64-android.release.presenterm
# ...
> file result/bin/presenterm
result/bin/presenterm: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, with debug_info, not stripped

fancy dev shells, etc. But that's a rabbit hole.

I'm planning to try out presenterm in a near future and maybe in the future submit it to nixpkgs (an official repository for Nix packages).

Feel free to close if supporting Nix Flakes is not on your radar.

@mfontanini
Copy link
Owner

This now has a conflict, can you rebase? Thanks!

@dpc
Copy link
Contributor Author

dpc commented Oct 19, 2023

@mfontanini Done.

@@ -28,7 +28,7 @@ fn main() -> io::Result<()> {
output_file.write_all(format!("(\"{theme_name}\", {contents:?}.as_slice()),\n").as_bytes())?;

// Rebuild if this theme changes.
println!("cargo:rerun-if-changed={path:?}");
println!("cargo:rerun-if-changed={}", path.display());
Copy link
Owner

Choose a reason for hiding this comment

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

Thanks for this nice bonus!

@mfontanini mfontanini merged commit 0a7d3d6 into mfontanini:master Oct 19, 2023
3 checks passed
@MikaelFangel
Copy link
Contributor

@mfontanini - Saw the release note and thought I would mention that this is also packaged and available as a NixOS package. (I'm currently the maintainer)

https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=Presenterm

@mfontanini
Copy link
Owner

Awesome! I'll update that. Would you mind bumping that to 0.3.0?

@MikaelFangel
Copy link
Contributor

Bumping it here:

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.

3 participants