diff --git a/configurations/servivi/modules/minecraft/default.nix b/configurations/servivi/modules/minecraft/default.nix index 43be23b4..700e8546 100644 --- a/configurations/servivi/modules/minecraft/default.nix +++ b/configurations/servivi/modules/minecraft/default.nix @@ -10,6 +10,7 @@ environment.systemPackages = [ pkgs.curseforge-server-downloader + pkgs.selfPackages.nbted ]; services = { diff --git a/packages/README.md b/packages/README.md index 1cc75b1b..5b70fe4e 100644 --- a/packages/README.md +++ b/packages/README.md @@ -13,6 +13,7 @@ This directory contains every derivations for packages exposed by this flake. | `jmusicbot` | Discord music bot that's easy to set up and run yourself | https://github.com/jagrosh/MusicBot | | `libratbag` | Configuration library for gaming mice | https://github.com/libratbag/libratbag | | `librespot-auth` | A simple program for populating a credentials.json via Spotify's zeroconf authentication. | https://github.com/dspearson/librespot-auth | +| `nbted` | Command-line NBT editor written in Rust. It does precisely one thing: convert NBT files to a pretty text format, and reverse the pretty text format back into NBT. | https://github.com/C4K3/nbted | | `pam-fprint-grosshack` | This is a fork of the pam module which implements the simultaneous password and fingerprint behaviour present in pam_thinkfinger. | https://gitlab.com/mishakmak/pam-fprint-grosshack | | `piper` | GTK frontend for ratbagd mouse config daemon | https://github.com/libratbag/piper | | `pokemon-colorscripts` | A script to print out images of pokemon to the terminal. | https://gitlab.com/phoneybadger/pokemon-colorscripts | diff --git a/packages/default.nix b/packages/default.nix index e4aadb10..0e957bad 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -23,6 +23,8 @@ librespot-auth = final.callPackage ./librespot-auth {}; + nbted = final.callPackage ./nbted {}; + pam-fprint-grosshack = final.callPackage ./pam-fprint-grosshack {}; piper = final.callPackage ./piper { diff --git a/packages/nbted/default.nix b/packages/nbted/default.nix new file mode 100644 index 00000000..7b5f23ce --- /dev/null +++ b/packages/nbted/default.nix @@ -0,0 +1,39 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + ... +}: +rustPlatform.buildRustPackage rec { + pname = "nbted"; + version = "1.5.0"; + + src = fetchFromGitHub { + owner = "C4K3"; + repo = pname; + tag = version; + hash = "sha256-5gCxTFjI3WDC9+F9i4I2g17+wHWnQHjC4Hurj5CMhB4="; + }; + + cargoLock.lockFile = "${src}/Cargo.lock"; + + env.OUT_DIR = "$out"; + + patchPhase = '' + export OUT_DIR=$(mktemp -d) + + rm ./build.rs + echo '"${version}"' > $OUT_DIR/git-revision.txt + substituteInPlace ./Cargo.toml --replace-fail "build = \"build.rs\"" "" + ''; + + meta = { + mainProgram = pname; + license = lib.licenses.cc0; + homepage = "https://github.com/C4K3/nbted"; + description = '' + Command-line NBT editor written in Rust. It does precisely one thing: convert NBT files to + a pretty text format, and reverse the pretty text format back into NBT. + ''; + }; +} diff --git a/scopedPackages/README.md b/scopedPackages/README.md index 51c21397..c1b35456 100644 --- a/scopedPackages/README.md +++ b/scopedPackages/README.md @@ -31,7 +31,7 @@ Every extensions I use in my firefox module. | `frankerfacez` | The Twitch Enhancement Suite - Get custom emotes and tons of new features you'll never want to go without. | https://www.frankerfacez.com | | `google-container` | THIS IS NOT AN OFFICIAL ADDON FROM MOZILLA! It is a fork of the Facebook Container addon. Prevent Google from tracking you around the web. The Google Container extension helps you take control and isolate your web activity from Google. | https://github.com/containers-everywhere/contain-google | | `image-search-options` | A customizable reverse image search tool that conveniently presents a variety of top image search engines. | http://saucenao.com/ | -| `istilldontcareaboutcookies` | Community version of the popular extension "I don't care about cookies" ``{=html}https://github.com/OhMyGuus/I-Dont-Care-About-Cookies``{=html} | https://github.com/OhMyGuus/I-Dont-Care-About-Cookies | +| `istilldontcareaboutcookies` | Community version of the popular extension "I don't care about cookies" https://github.com/OhMyGuus/I-Dont-Care-About-Cookies | https://github.com/OhMyGuus/I-Dont-Care-About-Cookies | | `opera-gx-witchcraft-purple` | inspired by Opera GX | | | `return-youtube-dislikes` | Returns ability to see dislike statistics on youtube | | | `seventv` | The Twitch Enhancement Suite. Get custom emotes and tons of new features you'll never want to go without. | https://www.frankerfacez.com/ |