about summary refs log tree commit diff
path: root/pkgs/development/interpreters/femtolisp
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2023-07-12 17:32:00 -0500
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-07-14 01:13:52 -0300
commitbec99c5ae490d47b817c8b0c81246ad045a797d0 (patch)
tree8785b6be49efdd1e787ac5657fe7c03df46a97a1 /pkgs/development/interpreters/femtolisp
parentf0d806cbda482f984cec37c0495eb7b8a7374686 (diff)
femtolisp: init at 2023-07-12
Diffstat (limited to 'pkgs/development/interpreters/femtolisp')
-rw-r--r--pkgs/development/interpreters/femtolisp/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/femtolisp/default.nix b/pkgs/development/interpreters/femtolisp/default.nix
new file mode 100644
index 0000000000000..06a4f635b3a6b
--- /dev/null
+++ b/pkgs/development/interpreters/femtolisp/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, stdenv
+, fetchFromSourcehut
+, unstableGitUpdater
+}:
+
+stdenv.mkDerivation {
+  pname = "femtolisp";
+  version = "unstable-2023-07-12";
+
+  src = fetchFromSourcehut {
+    owner = "~ft";
+    repo = "femtolisp";
+    rev = "b3a21a0ff408e559639f6c31e1a2ab970787567f";
+    hash = "sha256-PE/xYhfhn0xv/kJWsS07fOF2n5sXP666vy7OVaNxc7Y=";
+  };
+
+  strictDeps = true;
+
+  enableParallelBuilding = true;
+
+  installPhase = ''
+    runHook preInstall
+
+    install -Dm755 -t $out/bin/ flisp
+
+    runHook postInstall
+  '';
+
+  passthru.updateScript = unstableGitUpdater { };
+
+  meta = {
+    description = "A compact interpreter for a minimal lisp/scheme dialect";
+    homepage = "https://git.sr.ht/~ft/femtolisp";
+    license = with lib.licenses; [ mit bsd3 ];
+    maintainers = with lib.maintainers; [ moody ];
+    broken = stdenv.isDarwin;
+    platforms = lib.platforms.unix;
+  };
+}