-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Henner Zeller <[email protected]>
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ lib, stdenv | ||
, fetchurl | ||
, libedit | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "funlisp"; | ||
version = "1.2.0"; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/brenns10/funlisp/releases/download/v${version}/funlisp-${version}.tar.gz"; | ||
hash = "sha256-sO9XbGUZOCVfY0IsJLieLspPs+pVruveFNOxYNQJmf0="; | ||
}; | ||
|
||
enableParallelBuilding = true; | ||
|
||
buildInputs = [ libedit ]; | ||
|
||
installPhase = '' | ||
# Install library | ||
make PREFIX=$out install | ||
# Default install only includes the library and manpage, so install | ||
# useful repl binary manually. | ||
install -d $out/bin | ||
install bin/funlisp $out/bin | ||
''; | ||
|
||
doCheck = true; | ||
checkPhase = '' | ||
# Simple smoke test | ||
test $(bin/funlisp <(echo "(print (* 2 21))")) -eq 42 | ||
''; | ||
|
||
meta = with lib; { | ||
description = "Simple, embeddable lisp interpreter"; | ||
homepage = "https://github.com/brenns10/funlisp"; | ||
license = licenses.bsd3; | ||
platforms = platforms.all; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters