about summary refs log tree commit diff
path: root/pkgs/development/interpreters/femtolisp/default.nix
blob: ecd3bc1f8fd72028a66f78efc4b2dbb2f95d9c1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ 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;
    mainProgram = "flisp";
  };
}