summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-12-24 02:03:15 +0100
committerRory& <root@rory.gay>2024-12-24 02:03:15 +0100
commitbe614554dc44dc0bd8713b1bc8ea189c24bdb27d (patch)
treef4ae362c7acf01641667958f65fed4e700c3d33f
parentActually import ooye (diff)
downloadRory-Open-Architecture-master.tar.xz
Add nbtexplorer (test) HEAD master
-rwxr-xr-xflake.nix1
-rw-r--r--modules/packages/nbtexplorer.nix40
2 files changed, 41 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 75c8882..785b28b 100755
--- a/flake.nix
+++ b/flake.nix
@@ -282,6 +282,7 @@
         );
 
         packages.mtxclient-git = (pkgs.callPackage ./modules/packages/mtxclient-git.nix { inherit mtxclientSrc; });
+        packages.nbtexplorer = pkgs.callPackage ./modules/packages/nbtexplorer.nix {};
 
         # untested
         packages.draupnir-main = pkgs.draupnir.overrideAttrs (oldAttrs: {
diff --git a/modules/packages/nbtexplorer.nix b/modules/packages/nbtexplorer.nix
new file mode 100644
index 0000000..abe495d
--- /dev/null
+++ b/modules/packages/nbtexplorer.nix
@@ -0,0 +1,40 @@
+{
+  lib,
+  stdenvNoCC,
+  fetchFromGitHub,
+  dotnetPackages,
+  msbuild,
+  makeWrapper,
+  mono,
+  libGL,
+  gtk2,
+}:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "nbt-explorer";
+  version = "2.8.0-win";
+
+  src = fetchFromGitHub {
+    owner = "jaquadro";
+    repo = "NBTExplorer";
+    rev = "v${version}";
+    hash = "sha256-uOoELun0keFYN1N2/a1IkCP1AZQvfDLiUdrLxxrhE/A=";
+  #buildCommand = ''
+  #  touch $out
+  #'';
+  };
+
+
+  buildCommand = ''
+    touch $out
+  '';
+
+  meta = with lib; {
+    description = "A graphical NBT editor for all Minecraft NBT data sources";
+    homepage = "https://github.com/jaquadro/NBTExplorer.git";
+    license = licenses.mit;
+    maintainers = with maintainers; [ ];
+    mainProgram = "nbt-explorer";
+    platforms = platforms.all;
+  };
+}