summary refs log tree commit diff
path: root/pkgs/applications/emulators/maiko/default.nix
blob: e78b680d617a824f420e46d9aa98f7a986e693f1 (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
{ lib, stdenv, fetchFromGitHub, cmake, libX11 }:

stdenv.mkDerivation rec {
  pname = "maiko";
  version = "2021-04-14";
  src = fetchFromGitHub {
    owner = "Interlisp";
    repo = "maiko";
    rev = "91fe7d51f9d607bcedde0e78e435ee188a8c84c0";
    hash = "sha256-Y+ngep/xHw6RCU8XVRYSWH6S+9hJ74z50pGpIqS2CjM=";
  };
  nativeBuildInputs = [ cmake ];
  buildInputs = [ libX11 ];
  installPhase = ''
    runHook preInstall
    find . -maxdepth 1 -executable -type f -exec install -Dt $out/bin '{}' \;
    runHook postInstall
  '';
  meta = with lib; {
    description = "Medley Interlisp virtual machine";
    homepage = "https://interlisp.org/";
    license = licenses.mit;
    maintainers = with maintainers; [ ehmry ];
    inherit (libX11.meta) platforms;
  };
}