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

nix-appimage does not use follow for nixpkgs, causing two versions of nixpkgs #37

Open
ericukk opened this issue Jan 31, 2025 · 4 comments
Labels

Comments

@ericukk
Copy link

ericukk commented Jan 31, 2025

First of all, thank you for all the work you’ve put into this project! It’s greatly appreciated.

I noticed that when pinning nixpkgs, two different versions are required because nix-appimage does not use follow. This can lead to increased closure sizes.

Is there a particular reason why nix-appimage does not use follow? I tested locally by binding its nixpkgs to follow, and everything seems to work fine. If there are no known issues, would it be possible to update nix-appimage to follow the pinned nixpkgs version to avoid duplication?

https://github.com/ericukk/isd/blob/main/flake.nix#L32-L34

nix flake metadata
...
Inputs:
├───nix-appimage: github:ralismark/nix-appimage/fc1192dbec82f5857f86ccc6dfdf2ad97bc9c62a?narHash=sha256-MhBOJHYhIJ30TNVrm7wX8B3x%2BMecMCdaBc94g4HXkPs%3D (2024-09-08 01:16:15)
│   ├───flake-compat: github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33?narHash=sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U%3D (2023-10-04 13:37:54)
│   ├───flake-utils: github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a?narHash=sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ%3D (2024-03-11 08:33:50)
│   │   └───systems: github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e?narHash=sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768%3D (2023-04-09 08:27:08)
│   └───nixpkgs: github:nixos/nixpkgs/12228ff1752d7b7624a54e9c1af4b222b3c1073b?narHash=sha256-Ym04C5%2BqovuQDYL/rKWSR%2BWESseQBbNAe5DsXNx5trY%3D (2024-08-31 11:19:22)
├───nixpkgs: github:NixOS/nixpkgs/6df24922a1400241dae323af55f30e4318a6ca65?narHash=sha256-dklw3AXr3OGO4/XT1Tu3Xz9n/we8GctZZ75ZWVqAVhk%3D (2025-01-02 16:11:48)
...
Copy link

welcome bot commented Jan 31, 2025

Thanks for opening your first issue here! 💖

@isd-project
Copy link
Owner

Yeah, it broke in the past at some point and has since then been fixed.
I am a bit on the fence about changing it, especially since I am currently using unstable.

Actually, nah. You are right. The CI should catch build failures, and then it should be easy enough to split it up again.

I am currently rewriting the entire packaging system (currently the closure also includes the docs for example).
So expect this bug to be fixed in approximately 1 week 👍

@ericukk
Copy link
Author

ericukk commented Jan 31, 2025

Thanks for the quick response. No worries at all, it's just a minor issue, take your time.

isd-project added a commit that referenced this issue Feb 1, 2025
This release mainly focuses on improving the packaging side.
`isd` now provides a desktop file and uses a standard size for the icon (fixes #29).

This release will also be available on PyPI. The main reason for publishing
to PyPI is to better support packaging for distros as mentioned in #18.
Due to a naming clash on PyPI, the Python project has been renamed
to `isd-tui`. However, the project will continue to be named `isd`
and the executable will continue to be called `isd`!

The Python wheel only includes the necessary files, including
the `.desktop` file and icon.
The `nix` derivation propagates the `.desktop` file and the icon and makes them
available for Desktops of `nix` users.
Due to a bug in `isd-appimage`, identical `nixpkgs` pins cannot be used for `isd`
(#37 is blocked).

This release also introduces _EXPERIMENTAL_ arm support!
I do _not_ have access to an arm-based machine, and as such, I cannot actually
test the arm-based `AppImage`. The `AppImage` was created by cross-compiling. 
However, I cannot run a cross-platform `AppImage` (should fix #36).
Please let me know if it works for you or not 🙏

At least the arm-based `nix` derivation can be run with QEMU, and it seems to work.

PS: This release also includes a workaround for a `Zellij` bug (fixes #34).
Though upstream already has a bug-fix available until a new version has
been published, `isd` will work around the Zellij issue.
@isd-project
Copy link
Owner

As mentioned in the release notes, I cannot combine the locks, atm :/
I am subscribed to the upstream issue and will merge them once it is possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants