lots of stuff

This commit is contained in:
xunuwu 2024-02-23 05:34:33 +01:00
parent 926f8b190b
commit 6bae0fa254
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
42 changed files with 1109 additions and 73 deletions

3
pkgs/default.nix Normal file
View file

@ -0,0 +1,3 @@
{pkgs, ...}: {
jdnbtexplorer = pkgs.qt6Packages.callPackage ./jdnbtexplorer {};
}

View file

@ -0,0 +1,55 @@
{
lib,
python3,
which,
qttools,
}: let
myPython = python3.withPackages (pkgs:
with pkgs; [
pyqt6
pyside6
(myPython.pkgs.buildPythonPackage rec {
pname = "NBT";
version = "1.5.1";
src = myPython.pkgs.fetchPypi {
inherit pname version;
hash = "sha256-2juyE3YFy53+dEbxPxmzrn+vkg1DCjh/t4794n9mNsU=";
};
})
]);
in
myPython.pkgs.buildPythonPackage rec {
pname = "jdNBTExplorer";
version = "2.0";
format = "pyproject";
src = builtins.fetchGit {
url = "https://codeberg.org/JakobDev/jdNBTExplorer";
rev = "e70c9b030f88340b565c22759b6efd97172be551";
};
nativeBuildInputs = [
myPython
which
qttools
];
propagatedBuildInputs = [
myPython
];
dontWrapQtApps = true;
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
# You can manually patch scripts using: wrapQtApp "$out/bin/myapp". TODO: check when it's required.
'';
meta = with lib; {
changelog = "https://codeberg.org/JakobDev/jdNBTExplorer/releases/tag/${version}";
description = "An Editor for Minecraft NBT files";
homepage = "https://codeberg.org/JakobDev/jdNBTExplorer";
license = licenses.gpl3Only;
};
}