cabal-club / cabal-desktop

Desktop client for Cabal, the p2p/decentralized/local-first chat platform.
https://cabal.chat
GNU Affero General Public License v3.0
843 stars 77 forks source link

Add NixOS development tip #313

Closed cryptix closed 3 years ago

cryptix commented 3 years ago

This creates a FHS chroot inside which you can run stuff just like on any other linux/unix system without having to package everything for nixos specificly.

It's not as nice as packaging for nixpkgs and there might be a bit too much stuff in the cabalEnv but it get's the job done.

How to use this:

put the shell.nix inside your checkout of cabal-desktop, run nix-shell and start hacking, aka:

cd repo/of/cabal-desktop
wget https://gist.githubusercontent.com/cryptix/9dc8806fe44f266d47f550b23b703ff8/raw/feb8886a6099a501a2ffc9e0574e818947695dca/shell.nix
nix-shell
npm i
npm start

Open to suggestions how to phrase this better on the readme :sweat_smile:

cryptix commented 3 years ago

Packaging electron bundles is sadly not something nix community is stoked about.. https://discourse.nixos.org/t/rfc-electron-app-built-from-source/936

cblgh commented 3 years ago

thanks @cryptix 🖤