about summary refs log tree commit diff
path: root/pkgs/development/interpreters/bqn/cbqn/replxx.nix
blob: 2074111d45f53b51e79f1c01ed7aef30f25033db (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
{ lib
, fetchFromGitHub
, stdenvNoCC
}:

stdenvNoCC.mkDerivation {
  pname = "replxx";
  version = "unstable-2023-02-26";

  src = fetchFromGitHub {
    owner = "dzaima";
    repo = "replxx";
    rev = "1da4681a8814366ec51e7630b76558e53be0997d";
    hash = "sha256-Zs7ItuK31n0VSxwOsPUdZZLr68PypitZqcydACrx90Q=";
  };

  dontConfigure = true;
  # The CBQN derivation will build replxx, here we just provide the source files.
  dontBuild = true;

  installPhase = ''
    runHook preInstall

    mkdir -p $out/dev
    cp -r $src $out/dev

    runHook postInstall
  '';

  meta = with lib; {
    homepage = "https://github.com/dzaima/replxx";
    description = "A replxx fork for CBQN";
    license = licenses.free;
    maintainers = with maintainers; [ AndersonTorres sternenseemann synthetica shnarazk detegr ];
    platforms = platforms.all;
  };
}