nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 libx11,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "maiko";
11 version = "250616-de1fafba";
12
13 src = fetchFromGitHub {
14 owner = "Interlisp";
15 repo = "maiko";
16 tag = "maiko-${finalAttrs.version}";
17 hash = "sha256-RYBV3gqcDPxRteCvUyqm8lKUpW4r0L7kJLlED8M72DI=";
18 };
19
20 nativeBuildInputs = [ cmake ];
21
22 buildInputs = [ libx11 ];
23
24 installPhase = ''
25 runHook preInstall
26 find . -maxdepth 1 -executable -type f -exec install -Dt $out/bin '{}' \;
27 runHook postInstall
28 '';
29
30 meta = {
31 description = "Medley Interlisp virtual machine";
32 homepage = "https://interlisp.org/";
33 changelog = "https://github.com/Interlisp/maiko/releases";
34 license = lib.licenses.mit;
35 inherit (libx11.meta) platforms;
36 };
37})