Skip to content

Commit

Permalink
funlisp: init at 1.2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Henner Zeller <[email protected]>
  • Loading branch information
hzeller committed Mar 6, 2023
1 parent a1240f6 commit 0bd6b82
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pkgs/development/interpreters/funlisp/default.nix
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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16500,6 +16500,8 @@ with pkgs;

inherit (beam.packages.erlangR21) lfe lfe_1_3;

funlisp = callPackage ../development/interpreters/funlisp { };

gnudatalanguage = callPackage ../development/interpreters/gnudatalanguage {
inherit (llvmPackages) openmp;
inherit (darwin.apple_sdk.frameworks) Cocoa;
Expand Down

0 comments on commit 0bd6b82

Please sign in to comment.