porcelain-0.3.2 is not a library.
porcelain
cli dollcode encoder and decoder
example usage
encode
# ▖▖▘▘▌▘▌▌▘▘▘▌▌
# ▖▖▘▘▌▘▌▌▘▘▘▌▌
# ▖▖▘▘▌▘▌▌▘▘▘▌▌
# ▖▖▖▌▘▖▖▌▘▘▌▖▌▖▘▌▖▌▖▖▘▌▌▘▖
decode
# decimial: 893271, hexadecimal: DA157
# 893271
# DA157
# hello
packaged
crates.io
nix flake
run without installing
install onto nixos system (with flakes)
# flake.nix
{
inputs = {
# ...
porcelain = {
url = "https://codeberg.org/da157/porcelain/archive/main.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, ... }@inputs: {
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
modules = [ ./configuration.nix ];
specialArgs = { inherit inputs; };
};
}
}
# configuration.nix
{ pkgs, inputs, ... }:
{
environment.systemPackages = [
inputs.porcelain.packages.${pkgs.stdenv.hostPlatform.system}.porcelain
];
}