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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NixOS development tip #313

Merged
merged 2 commits into from Apr 9, 2021
Merged

Add NixOS development tip #313

merged 2 commits into from Apr 9, 2021

Conversation

cryptix
Copy link
Contributor

@cryptix cryptix commented Apr 9, 2021

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 馃槄

@cryptix
Copy link
Contributor Author

cryptix commented Apr 9, 2021

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
Copy link
Member

cblgh commented Apr 9, 2021

thanks @cryptix 馃枻

@cblgh cblgh merged commit 44df54a into cabal-club:master Apr 9, 2021
@cryptix cryptix deleted the patch-1 branch April 9, 2021 09:43
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.

None yet

2 participants