plugin-foreign-env
anarki
plugin-foreign-env | anarki | |
---|---|---|
5 | 22 | |
212 | 1,161 | |
0.9% | 0.0% | |
2.2 | 4.6 | |
9 months ago | 11 months ago | |
Shell | Arc | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
plugin-foreign-env
-
Unable to setup GUIX_PROFILE with Fish
I am not using Guix's Fish because right I just installed it and was hoping to kinda get my packages up to snuff for what I keep on my desktop. Though I was about to install foreign-env via omf and that seems to work! I am super new to Guix so I still gotta read up on Guix Home. I literally have only installed like 6 packages right now haha.
-
Our Roadmap for Nix
The official installer leverages an initialization script, to be sourced at shell init time, which is written in POSIX shell. Fish can't just source it because it's not compatible with POSIX shell.
> I then searched the Internet and found a very "creative" workaround for Arch users that didn't work either.
Arch users shouldn't need anything special here.
You can use fenv¹ to source it, you can translate it to bash using babelfish, or you can exec into fish after running bash to log in (make sure to set $SHELL after if you choose that option). Just make sure you do it as early as possible if you want to use things installed by Nix in your other Fish config snippets.
I think Home Manager will also take care of this for you. (The other module systems, Nix-Darwin and NixOS, both do.)
If you wanna do it like NixOS does, you can install Fish via Nix and then create your own preinit environment script in /etc/fish. This has the advantage of setting up your Nix environment variables before any other config is sourced. You can take a look at it here, which also explains some of the Fish initialization process: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/p...
and here's where the hooks go in the Fish package, where the comments describe the Fish initialization process in detail as well as why things are done this way on NixOS: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/p...
—
1: https://github.com/oh-my-fish/plugin-foreign-env
2: https://github.com/bouk/babelfish
-
Why not fish
That's just not true, most stuff already has a fish equivalent, and for the minority which doesn't there are plugins like foreign-env
- Nsh: A fish/bash-like Posix shell in Rust
-
Trouble with fish shell setting environment variables at login
I'm also interested in the correct way of doing this. Right now, I cheat by using the fenv plugin to source a bash ~/.profile file:
anarki
- Gerbil Scheme – A Lisp for the 21st Century
-
Ask HN: Does Cloudflare block HN comments if you have code blocks in a reply?
It still is a single single-core server, dang references it frequently when there's unusually high traffic [0]. And the language you're referring to is Arc [1]. They do have caching for not-logged-in users, historically done through nginx [2]. From other comments in this thread, it sounds like they just temporarily put Cloudflare in front of that single server to block a DDoS.
[0] https://news.ycombinator.com/item?id=38310213
[1] https://arclanguage.github.io/
[2] https://news.ycombinator.com/item?id=26473226
-
Ask HN: Why isn't HN libre/FOSS?
Slashdot, reddit, and HN are similar in that the source code was available. For HN, as part of arc under the Artistic license. All 3 abandoned public source code releases.
https://sourceforge.net/projects/slashcode/
https://github.com/arclanguage/anarki
https://github.com/reddit-archive/reddit
-
Ask HN: What would it take for HN to become ActivityPub compatible?
>Where is the HN source code right now? Free and Open?
Yes and no.
HN itself is running a proprietary fork of Arc Lisp, which you can find here[0]. The Arc maintainters don't take public PRs or feature requests, and HN itself has numerous changes to the codebase which aren't public for business reasons.
There is a public fork of Arc called Anarki[1] which has no direct connection to HN or Arc Lisp, and for which the community and development is... well... anarchic.
And given the general culture here around minimalism and stasis (not wanting to introduce new features for fear of entropy that would negatively affect the signal to noise ratio and push the site towards Eternal September) chances are it's not likely to happen.
But dang's email is at the bottom of the page if you want to ask him.
[0]http://arclanguage.org/
[1]https://github.com/arclanguage/anarki
-
Ask HN: Dang, could the login page get a title?
The original version was open sourced (Perl artistic License) http://arclanguage.org/ There is an active fork in https://github.com/arclanguage/anarki but it's totally independent and the current conde in HN can be (very) different.
My guess is that it's very difficult to keep all the details of the secret sauce hidden. They change the details very often. For example the front page is ordered by points/time^1.6, but the 1.6 changes from time to time without notice (I think it was 1.8 for some time, perhaps it's 1.8 or something else now. Some people have analyzed the front page and got compatible results, but I don't remember the exponent they found and I'm too lazy to try).
-
Ask HN: Is there an open-source HN forum clone?
You might find something useful here:
https://github.com/arclanguage/anarki/tree/master/apps/news
-
Show HN: Hacker News Without News
It was published in the public version of 2009 https://github.com/arclanguage/anarki/blob/9f2e1dd53b5b66bb4... Look for "contro-factor" (i.e. controversial-factor).
This is old code, and the mods make tweaks here and there without warning, so the details may have changed. (I'm not sure if gravity changed from 1.8 to 1.6 (???).)
I didn't test it personally, but it feels like HN is using something very similar. And there are a few black box analysis of the sorting of the front page that got similar results. Also, minimaxir is the kind of person that is probably running an script to use the HN API to verify the claims.
-
Racket v. Anarki for greenfield web project?
Absolutely. It's basically the "community version" of Paul Graham's Arc.
-
RacketCon 2022
Not to mention arc/anarki (hn is/was written in arc - anarki comes with a "news" example app/forum):
https://github.com/arclanguage/anarki/tree/HEAD#readme
-
Ask HN: Any tool to look C++ interpretation template form syntax to substitution
arc [1] / racket implimentation of demystifycpp might be able to provide something 'usable' at the command line / straight up web browser html file.
[1] : https://arclanguage.github.io/
What are some alternatives?
babelfish - Translate bash scripts to fish
perfect-arrows - Draw perfect arrows between points and shapes.
nushell - A new type of shell
hackernews - Hacker News web site source code mirror.
fish-shell - The user-friendly command line shell.
renegade-way - Option Trading Application
flake-utils - Pure Nix flake utility functions [maintainer=@zimbatm]
arc - Arc is an opinionated framework for defining data pipelines which are predictable, repeatable and manageable.
oursh - Your comrade through the perilous world of UNIX.
nix-doc - An interactive Nix documentation tool providing a CLI for function search, a Nix plugin for docs in the REPL, and a ctags implementation for Nix script
hnrss - Custom, realtime RSS feeds for Hacker News