diff options
-rw-r--r-- | hosts/wsl/default.nix | 1 | ||||
-rw-r--r-- | pkgs/arcanist/default.nix | 35 | ||||
-rw-r--r-- | pkgs/default.nix | 1 |
3 files changed, 37 insertions, 0 deletions
diff --git a/hosts/wsl/default.nix b/hosts/wsl/default.nix index 9ccfc31..55feeb2 100644 --- a/hosts/wsl/default.nix +++ b/hosts/wsl/default.nix @@ -14,5 +14,6 @@ # packages environment.systemPackages = with pkgs; [ sphinx + inputs.self.packages.${system}.arcanist ]; } 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; } |