Skip to content

nix: add flake with auto-update on release - #25

Open
MirzaAyBaig12 wants to merge 3 commits into
Netflate:mainfrom
MirzaAyBaig12:nix-flake
Open

MirzaAyBaig12 wants to merge 3 commits into
Netflate:mainfrom
MirzaAyBaig12:nix-flake

Conversation

@MirzaAyBaig12

@MirzaAyBaig12 MirzaAyBaig12 commented Oct 23, 2026 •

Copy link
Copy Markdown

Added a Nix flake so NixOS users can run LumineCapture without waiting for it to land in nixpkgs.

You can run it directly with nix run github:Netflate/LumineCapture or add it as a flake input.

  • Added flake.nix with the package, a default package, and an overlay for x86_64-linux.
  • Added packaging/nix/package.nix, which uses the prebuilt .deb from GitHub releases, so there's no need to compile the app from source.
  • Fixed the .desktop file to use an absolute store path for Exec=, since KWin doesn't resolve bare executable names through PATH.
  • Added scripts/update-nix.sh to update the package version and hash.
  • Added a GitHub Actions workflow to update the package and lockfile on new releases, build it, and push the changes to main.

Tested: The package builds successfully, nix flake check passes, there are no unsatisfied dependencies, and the binary starts with --help. The desktop entry also has the correct absolute path, and the update script passes a round-trip test.

Screen capture tested on Niri, works

AI disclosure: Claude was used to add the absolute path to the flake (im lazy mb)

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