Nix flake for xxd supporting wider columns
- 384
- 512
- 768
- 1024
[default]
Based on https://grail.eecs.csuohio.edu/~somos/xxd.c
{
inputs.nixpkgs.url = "github:nixos/nixpkgs";
inputs.xxd.url = "github:rupurt/xxd";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = {
self,
nixpkgs,
flake-utils,
xxd,
...
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
xxd.overlays.default
];
};
in
{
devShells.default = pkgs.mkShell {
packages = [
pkgs.xxd
];
};
}
);
}
The above config will add xxd
to your dev shell and also allow you to execute it
through the nix
CLI utilities.
# run from devshell
nix develop -c $SHELL
xxd --version
# run as application
nix run .#xxd -- --version
nix run github:rupurt/xxdnix -- --version
- Alex Kwiatkowski - [email protected]
xxdnix
is released under the MIT license