From 04876b794132015ef67a2764863b9281d29c2e40 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Mon, 27 Mar 2023 07:21:19 -0600 Subject: [PATCH] pkgs/femtolisp: init at 52b98fac634a4bdd7cbc0154dcfad639013ed198 --- flake.nix | 1 + pkgs/femtolisp.nix | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/femtolisp.nix diff --git a/flake.nix b/flake.nix index 5a2d0cb..b0a9f4e 100644 --- a/flake.nix +++ b/flake.nix @@ -234,6 +234,7 @@ inherit pkgs; isUnstable = true; }; + femtolisp = pkgs.callPackage ./pkgs/femtolisp.nix { }; kurinto = pkgs.callPackage ./pkgs/kurinto.nix { }; mcchunkie = pkgs.callPackage ./pkgs/mcchunkie.nix { inherit pkgs; }; yaegi = pkgs.callPackage ./pkgs/yaegi.nix { inherit pkgs; }; diff --git a/pkgs/femtolisp.nix b/pkgs/femtolisp.nix new file mode 100644 index 0000000..47868e4 --- /dev/null +++ b/pkgs/femtolisp.nix @@ -0,0 +1,33 @@ +{ + stdenv + , lib + , fetchgit + , gnumake +}: + +stdenv.mkDerivation { + pname = "femtolisp"; + version = "2023-03-27"; + + src = fetchgit { + url = "https://git.sr.ht/~ft/femtolisp"; + rev = "52b98fac634a4bdd7cbc0154dcfad639013ed198"; + hash = "sha256-mh7upbCmWXLhudtaaebBf1XTIv4nYPSh0OAJDOqaQnk="; + }; + + buildInputs = [ + gnumake + ]; + + installPhase = '' + mkdir -p $out/bin + cp flisp $out/bin + ''; + + meta = { + description = "A compact interpreter for a minimal lisp/scheme dialect."; + homepage = "https://git.sr.ht/~ft/femtolisp"; + license = lib.licenses.bsd3; + maintainer = with lib.maintainers; [ qbit ]; + }; +}