-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lambda-lisp: init at 2022-08-18 #242101
lambda-lisp: init at 2022-08-18 #242101
Conversation
cb28997
to
5150e35
Compare
c693869
to
efcd11b
Compare
efcd11b
to
3a33038
Compare
1bac7aa
to
1d47a44
Compare
8448441
to
14317ea
Compare
install -D -t $out/bin lambda-lisp-blc | ||
runHook postInstall | ||
''; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to add some simple tests to installCheckPhase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added one that covers a few arithmetic operations https://github.com/NixOS/nixpkgs/compare/14317ea8bc1b3b97fac3e577852706cf23da6f02..52bdc84582b499de50f4f4af2035d9eb9bc5ba61
This adds lambda lisp, and the lambda-lisp-blc backend. Signed-off-by: Christina Sørensen <[email protected]>
14317ea
to
52bdc84
Compare
hash = "sha256-qt7vDtn9WvDoBaLESCyyscA0u74914e8ZKhLiUAN52A="; | ||
}; | ||
|
||
flatSrc = fetchurl { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make a issue upstream asking them to vendor the files from lambda/ or checking for their existence before wget
, that way the makefile targets(ex: interpreters
) could be used.
Or email justine to ask for the files to be put in a repo
|
||
let | ||
stdenv = gccStdenv; | ||
s = import ./sources.nix { inherit fetchurl fetchFromGitHub; }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mic92/nix-update#202 would make updating the fetchFromGitHub
sources faster to update
Description of changes
This adds lambda-lisp, and the lambda-lisp-blc backend. Lambda lisp has several backends, this only adds the blc backend for now, as I'm unsure what the best practice is for adding multiple backends for a package like this.
I added a sources file, which is a structure copied from the djgpp package. Ideally, there would be a lambda-lisp-blc, lambda-lisp-lazyk etc., this sets the package up for that. Also, currently, a user installing lambda-lisp will get lambda-lisp-blc, which should be the best choice, as it is the default backend.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)