From f7ca25b8cbf90243fdbf5685f78432bdd3ed2ca6 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 24 Jun 2025 11:14:25 -0400 Subject: arcanist: init at 2025.18 --- pkgs/arcanist/default.nix | 35 +++++++++++++++++++++++++++++++++++ pkgs/default.nix | 1 + 2 files changed, 36 insertions(+) create mode 100644 pkgs/arcanist/default.nix (limited to 'pkgs') diff --git a/pkgs/arcanist/default.nix b/pkgs/arcanist/default.nix new file mode 100644 index 0000000..12ca5a1 --- /dev/null +++ b/pkgs/arcanist/default.nix @@ -0,0 +1,35 @@ +{ + 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 + ''; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index a3b9d36..d4235ba 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -1,4 +1,5 @@ {pkgs, ...} @ inputs: { + arcanist = import ./arcanist inputs; astal = import ./astal inputs; unofficial-homestuck-collection = pkgs.callPackage ./unofficial-homestuck-collection inputs; } -- cgit v1.2.3-freya