diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-01-13 10:51:28 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-01-13 10:51:28 -0500 |
| commit | d7294efec4c36dec527c24bdea3953fd67282ad4 (patch) | |
| tree | e03aaae17daba6e4fa0dd755239f28e83ef689de /pkgs | |
| parent | fix caelestia module (diff) | |
| download | dotfiles-nix-d7294efec4c36dec527c24bdea3953fd67282ad4.tar.gz dotfiles-nix-d7294efec4c36dec527c24bdea3953fd67282ad4.tar.bz2 dotfiles-nix-d7294efec4c36dec527c24bdea3953fd67282ad4.zip | |
actanist: 2025.18 -> 2025.51
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/arcanist/default.nix | 59 |
1 files changed, 44 insertions, 15 deletions
diff --git a/pkgs/arcanist/default.nix b/pkgs/arcanist/default.nix index 1ed7b50..9cdf8ed 100644 --- a/pkgs/arcanist/default.nix +++ b/pkgs/arcanist/default.nix @@ -1,31 +1,60 @@ -{pkgs}: -pkgs.stdenvNoCC.mkDerivation rec { +{ + lib, + stdenv, + fetchFromGitHub, + makeWrapper, + php82, + python3, + git, + diffutils, +}: +stdenv.mkDerivation rec { pname = "arcanist"; - version = "2025.18"; + version = "2025.51"; - src = pkgs.fetchFromGitHub { + src = fetchFromGitHub { owner = "phorgeit"; repo = "arcanist"; rev = version; - hash = "sha256-yiHLMcgszV9jP/8qb9X/t9Vfm3Ad7DpU55cafWPPQHY="; + hash = "sha256-muqNbQBLDOLhzVSF7vTckhb6ouIcj6tHR20CFsgv9bQ="; }; - buildInputs = with pkgs; [ + nativeBuildInputs = [makeWrapper]; + + dontBuild = true; + + buildInputs = [ php82 python3 - ]; - - propagatedInputs = with pkgs; [ git diffutils ]; + configurePhase = '' + runHook preConfigure + + patchShebangs . + + runHook postConfigure + ''; + 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 + runHook preInstall + mkdir -p $out/share/php/arcanist $out/bin + + cp --target-directory=$out/share/php/arcanist --recursive \ + bin externals resources scripts src support + + makeWrapper $out/share/php/arcanist/bin/arc $out/bin/arc \ + --inherit-argv0 \ + --chdir $out/share/php/arcanist \ + --prefix PATH : ${lib.makeBinPath buildInputs} + + makeWrapper $out/share/php/arcanist/bin/phage $out/bin/phage \ + --inherit-argv0 \ + --chdir $out/share/php/arcanist \ + --prefix PATH : ${lib.makeBinPath buildInputs} + + runHook postInstall ''; } |