Installation
System wide:
{
environment.systemPackages = with nix-casks.packages.${system}; [
json-viewer # JSON Viewer
];
}
Home Manager:
{
home.packages = with nix-casks.packages.${system}; [
json-viewer # JSON Viewer
];
}
Package Definition
{
"pname": "json-viewer",
"version": "1.2.2",
"src": {
"url": "https://jsonviewer.app/JSON-Viewer-1.2.2.dmg",
"sha256": "eeb39692b214f3604e7fc344ec7b822c7934897050cc7bbd1bedb7287c259670"
},
"installPhase": [
"mkdir -p \"$out/Applications/JSON Viewer.app\" && cp -r \"JSON Viewer.app\" \"$out/Applications\""
],
"meta": {
"description": "App to visualise, validate and format JSON datasets",
"homepage": "https://jsonviewer.app/"
}
}