support for nix language
nixinator opened this issue · comments
Is there anything stopping this project adding nix language support?
There is a container that supports https://hub.docker.com/r/nixos/nix
and seem to work well.
I see that your using nix to build the https://github.com/glotcode/glot-www
be really nice to have nix pastebin!
Yeah, that would be cool.
It seems like nix-instantiate --eval main.nix
can be used to output stuff to stdout.
I added a basic version: https://glot.io/new/nix
Let me know if you had something else in mind.
Cool!
Is there anyway that the networking can be enabled in the container for trusted users, so something like this will run. Obviously this makes it way more fun :-)
import (builtins.fetchTarball {
# Descriptive name to make the store path easier to identify
name = "nixos-unstable-2018-09-12";
# Commit hash for nixos-unstable as of 2018-09-12
url = "https://github.com/nixos/nixpkgs/archive/ca2ba44cab47767c8127d1c8633e2b581644eb8f.tar.gz";
# Hash obtained using `nix-prefetch-url --unpack <url>`
sha256 = "1jg7g6cfpw8qvma0y19kwyp549k1qyf11a5sg6hvn6awvmkny47v";
}) {}
error: unable to download 'https://github.com/nixos/nixpkgs/archive/ca2ba44cab47767c8127d1c8633e2b581644eb8f.tar.gz': Couldn't resolve host name (6)
This would allow a fully functional nix environment... :-) ...
Is there anyway that the networking can be enabled in the container for trusted users
I'm not sure how to identify trusted users. I have considered adding paid accounts that would have networking enabled though.