Coder Social home page Coder Social logo

headcounter / shabitica Goto Github PK

View Code? Open in Web Editor NEW
145.0 12.0 15.0 1.81 MB

Run your own self-hosted Habitica instance

License: GNU General Public License v3.0

Nix 77.94% Python 9.36% Shell 1.19% Haskell 10.51% Mustache 1.00%
nix nixos nixos-service habitica self-hosted

shabitica's Issues

What about docker ?

I appreciate the idea and good luck with that !
But with a docker image, it will be so much better. ;)
You probably have your reasons to stick with nix, but it makes this project quite difficult to get into.

Errors when running nixos-rebuild switch

Hello,

I'm super sorry if it turns out to be noob-ness. I'm trying to run up a shabitica instance and am having all kinds of issues. Important note is that I've never used NixOS before last night so have been limping along based on hours of Google searches and blind luck.

NixOS Version: 18.09
Host: Hyper-V on Server 2019 - Gen-2 UEFI

Installed NixOS based on the instructions here

Added the hydra channels by running the 2 commands in the readme.
Originally it was failing to get something (sorry didn't take note of it, it was failing to get something from the hydra server). But after finding and running the nix-env -u '*' command in the hydra repo, it doesn't show the error anymore (don't know if it's related).

Using the configuration.nix file here

Took me forever to get the configuration file not to instantly fail. Had no idea if the code from the readme should be the total config or if it needed to be merged with the default. This config was the closest I've gotten.

Now when I run it, it runs for a while and then hits a ton of errors:

fixed-output derivation produced path '/nix/store/zl42hmz2y3xk29iryp96z2zvwya0ykx4-google-fonts-apidoc' with sha256 hash '02y4i0f8xdv5bqzlymir2dqihlf578474453sdrhrw4sijyljp3v' instead of the expected hash '1x0z8r8nb5pj073dyx66b25w9hxs33k07bhbj5cbgf5pyx3589x1'

building '/nix/store/cakyj1q3rnss28mqz0zan47a0jirf0m8-habitica-source-4.92.3.drv'...

cannot build derivation '/nix/store/m90vfamzav4013zhkbi8i7ia71kj1hx0-node-apidoc-0.17.7.drv': 1 dependencies couldn't be built

building '/nix/store/3rxc3wlyq8cyl6vw81yy0j1pqpilqmxb-query-db-version.drv'...

cannot build derivation '/nix/store/4vrjs69kj4z4qfj161zvf2a7g29vz6ny-shabitica-apidoc-4.92.3.drv': 1 dependencies couldn't be built

cannot build derivation '/nix/store/anw1v8h9cj9l90viirfasqlhhqn2lqbf-shabitica-client-4.92.3.drv': 1 dependencies couldn't be built

cannot build derivation '/nix/store/ki19p4aym1rsq20hf7sgywkwbyciy4q3-shabitica-migrator-4.92.3.drv': 1 dependencies couldn't be built

cannot build derivation '/nix/store/58gz8zfaqnysgmrmip6bwhb4rz3i4pfn-shabitica-server-4.92.3.drv': 1 dependencies couldn't be built

cannot build derivation '/nix/store/kjjs3pd2875c4jz54wkq6ziif8zk4byc-closure-info.drv': 1 dependencies couldn't be built

cannot build derivation '/nix/store/94j9jlskbbyjr5981388kl2r1v1kj5jw-nginx.conf.drv': 1 dependencies couldn't be built

cannot build derivation '/nix/store/kmcba83zd91xhpfg2gh2qq5s374wvpc6-unit-script-shabitica-db-update-start.drv': 1 dependencies couldn't be built

cannot build derivation '/nix/store/d7ywbj0qf5q5k71n10h9jnzf2pdf6lff-unit-shabitica.service.drv': 1 dependencies couldn't be built

building '/nix/store/dqsly1xgmvsnpm70h2f2d8k5js9gsj3n-remove-references-to.drv'...

cannot build derivation '/nix/store/w65hmalhwwx1ifwakk017w68yqri9iq5-shabitica-sandbox-paths.drv': 1 dependencies couldn't be built

cannot build derivation '/nix/store/4chz21mp8j7crra28qbrmkzagdy78y7y-system-units.drv': 1 dependencies couldn't be built

cannot build derivation '/nix/store/rygfcxkv2bln3irdlabqwmh8yh5idad0-etc.drv': 1 dependencies couldn't be built

cannot build derivation '/nix/store/n2ais7in5xxki403ac545pizcamcdwsr-nixos-system-habitica-01-18.09.2505.46d3867a08a.drv': 1 dependencies couldn't be built

error: build of '/nix/store/n2ais7in5xxki403ac545pizcamcdwsr-nixos-system-habitica-01-18.09.2505.46d3867a08a.drv' failed

Would be happy to write out a "for dummies by a dummy" guide to help others if this is something silly simple?

git:// not working anymore, can't change git:// to https://

Hello,

it would be a lot of fun to have my own shabitica running.

When I try to build shabitica on NixOS 21.05, then the build is stopping:

exporting git://github.com/habitrpg/vuejs-datepicker.git (rev 5d237615463a84a23dd6f3f77c6ab577d68593ec) into /nix/store/fxnrc3799iylgkmrc469w2gffhwg97iw-vuejs-datepicker-5d23761
Initialized empty Git repository in /nix/store/fxnrc3799iylgkmrc469w2gffhwg97iw-vuejs-datepicker-5d23761/.git/
fatal: unable to connect to github.com:
github.com[0: 140.82.121.3]: errno=Connection timed out

The git:// is not working anymore.

Normally I would change the git:// to https:// with e. g. "git config --global url.https://.insteadOf git://"
or change it /etc/gitconfig to

[url "https://"]
insteadOf = git://

But since the buildscript is running as nixosbld1, it does ignore the git:// to https:// changes in the /etc/gitconfig".

Do you maybe have a workaround for this?

Best regards, Frank

Is anyone still working on this?

Hello,
last commit is over a year ago, is this project abandoned or will it be picked up again?
And would this still work or would there be problems installing because it tried to pull a version that is too old of habitica?

Adding shabitica channel makes `nix-env` stop working

This might be expected, and it's not a big deal because I don't do imperative package management on the server that runs my instance of shabitica, but if I add the shabitica channel like:

nix-channel --add https://headcounter.org/hydra/channel/custom/shabitica/nixos-18.09/shabitica shabitica

and do a nix-channel --update, then calling nix-env -qa as a root user gives:

error: cannot auto-call a function that has an argument without a default value ('config')

This error stops as soon as I remove the shabitica channel.

Is this something that's expected and I just should either not be adding shabitica as a channel or not mixing it with imperative package management?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.