nixos/hosts/fw/pkgs/foundry-vtt/default.nix

28 lines
589 B
Nix

{ stdenv, lib, fetchurl, unzip }:
stdenv.mkDerivation rec {
pname = "foundry-vtt";
version = "13.350";
src = fetchurl {
url = "https://feeds.cloonar.com/FoundryVTT-Node-${version}.zip";
hash = "sha256-r7tUdUNd2SneqqLJYgiElnnZJm94fhKcAQPVyo2zc8o=";
};
nativeBuildInputs = [ unzip ];
unpackPhase = ''
unzip $src
'';
installPhase = ''
mkdir -p $out/share/foundry-vtt
cp -r . $out/share/foundry-vtt
'';
meta = with lib; {
description = "Tabletop simulator";
license = licenses.mit; # Adjust as needed
platforms = platforms.all;
};
}