feat(mc): add nbted package to edit NBT
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
c4a90a2212
commit
85035da7a1
5 changed files with 44 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
|||
|
||||
environment.systemPackages = [
|
||||
pkgs.curseforge-server-downloader
|
||||
pkgs.selfPackages.nbted
|
||||
];
|
||||
|
||||
services = {
|
||||
|
|
|
@ -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 |
|
||||
|
|
|
@ -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 {
|
||||
|
|
39
packages/nbted/default.nix
Normal file
39
packages/nbted/default.nix
Normal file
|
@ -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.
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -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" `<a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/d899243c3222e303a4ac90833f850da61cdf8f7779e2685f60f657254302216d/https%3A//github.com/OhMyGuus/I-Dont-Care-About-Cookies" rel="nofollow">`{=html}https://github.com/OhMyGuus/I-Dont-Care-About-Cookies`</a>`{=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/ |
|
||||
|
|
Loading…
Add table
Reference in a new issue