![]() ![]() Now it’s a quick and dirty hack, but I hope to improve it. If you’re interested, the project is here: GitHub - jacekszymanski/nixcasks: Homebrew casks, nixified That’s not much, given that there are 2845 maybe-installable packages started and opened some file/page - MPV, LibreOffice, Tor Browser and Pinta. Obviously there’s much more work to do but even as this is now, it seems usable for programs which are “normally” installed by “dragging icon to /Applications”. Lrwxr-xr-x 1 root wheel 75 'Applications/Home Manager Apps/mpv.app' -> /nix/store/a4bx75r4sl3hh0b0qjvg16fd2qbqrsqx-mpv-0.36.0/Applications/mpv.appĪs Homebrew Cask is now a plain Nix store entry, an “upgrade” does not remove the application from the store, only updates the links. # After nix flake lock -update-input nixcasks & home-manager switch Lrwxr-xr-x 1 root wheel 75 'Applications/Home Manager Apps/mpv.app' -> /nix/store/4kddwv6zhxcbgnw3djmj68lp0d1dyn6w-mpv-0.35.1/Applications/mpv.app Lrwxr-xr-x 1 root wheel 88 'Applications/Home Manager Apps/mpv.app' -> /nix/store/w8gpl79980ip3kypsvlgq9gph9v039js-mpv-with-scripts-0.35.1/Applications/mpv.app ✦ > ls -l Applications/Home\ Manager\ Apps/mpv.app ![]() I have been able to install several packages this way already, and I was lucky enough that between the start of this project and first barely usable version MPV’s cask was updated by the Homebrew folks, so I can show a little how it works: # Installed via Nixpkgs I’m using Homebrew Casks JSON file as the source of package data (versions, URLs, checksums) which is then used in mkDerivation to download binaries and install them into the Nix Store. The idea is to use Homebrew Cask definitions to declaratively manage macOS applications, many of which (among them Firefox, VLC, LibreOffice…) are not supported in Nixpkgs. I didn’t find anything like that so I decided to try it myself, and after a little hacking I am happy to anounce a new project: nixcasks. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |