Convert a Nix package to a deb package using other deb packages as dependencies.
In other words, like nix-bundle, but with its #93 fixed.
Generate a test deb package:
nix run github:jian-lin/nix2deb -- \
--nix-installable github:jian-lin/nix2deb#testExe \
--suite noble \
$(nix build github:jian-lin/nix2deb#testExe --print-out-paths --no-link)Optionally, inspect the generated deb package using dpkg-deb command:
dpkg-deb --info test-exe.deb
dpkg-deb --contents test-exe.debTest the generated package by copying it to Ubuntu and running these commands:
# install
sudo apt install ./test-exe.deb
# verify the installed binary works
test-exe
# optional: uninstall
sudo apt remove test-exe && sudo apt autoremoveRun nix2deb with --help to see the manual:
nix run github:jian-lin/nix2deb -- --helpEnter the development environment:
nix developMIT