Usage in NixOS? #8302
Kreyren
started this conversation in
Ideas and feedback
Usage in NixOS?
#8302
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would characterize NixOS as scientific linux distribution focused on reproducibility which uses a custom data-driven functional programming language for it's workflow such as shown example hello-world package:
NOTE:
passthru.tests*
anddoCheck
should be ignored to keep the proof of concept simpleWhich generates a "derivation":
NOTE: The prefixes alike
/nix/store/abcdef...-PACKAGE-VERSION/
are functions within the nixlang, the example should probably use a placeholderWhich the nix package manager uses to declare the build environment (declaring variables and dependencies) to then realize the package.
This is basically the minimal example of how NixOS works which to me seems similar in nature to the enso example of processing the advertiser data in california shown in the project introduction (https://www.youtube.com/watch?v=fQvWMoOjmQk&ab_channel=Enso) as in both case we are basically just manipulating a JSON data.
Could Enso be used instead of nixlang to declare packages for nix and if so how could that be declared in Enso assuming that we are only providing the following inputs:
hello
2.12.5
mirror://gnu/hello/hello-2.12.5.tar.gz
sha256-jZkUKv2SV28wsM18tCqNxoCZmLxdYH2Idh9RLibH2yA=
https://www.gnu.org/software/hello/manual/
https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v2.12.5
GPL3+
eelco
platforms.all
A program that produces a familiar, friendly greeting
GNU Hello is a program that prints "Hello, world!" when you run it. It is fully customizable.
Additionally some packages require a special treatment which is often handled in nixlang by passing instructions to the Bash script interpretor e.g. gcc6 package https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/build-support/cc-wrapper/default.nix#L546 which then generates a derivation with
Could the same be handled in enso?
Beta Was this translation helpful? Give feedback.
All reactions