summaryrefslogtreecommitdiff
path: root/pkgs/arcanist/default.nix
blob: 2660589c45ac280387b3c3072f34e53392658cf2 (plain)
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
{
  lib,
  pkgs,
}:
pkgs.stdenvNoCC.mkDerivation rec {
  pname = "arcanist";
  version = "2025.18";

  src = pkgs.fetchFromGitHub {
    owner = "phorgeit";
    repo = "arcanist";
    rev = version;
    hash = "sha256-yiHLMcgszV9jP/8qb9X/t9Vfm3Ad7DpU55cafWPPQHY=";
  };

  buildInputs = with pkgs; [
    php82
    python3
  ];

  propagatedInputs = with pkgs; [
    git
    diffutils
  ];

  installPhase = ''
    mkdir -p $out/share/php/${pname}
    mkdir -p $out/bin
    cp -a * $out/share/php/${pname}
    patchShebangs $out/share/php/${pname}
    ln -s $out/share/php/${pname}/bin/arc $out/bin/arc
    ln -sf ${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt $out/share/php/${pname}/resources/ssl/default.pem
  '';
}