Installation
System wide:
{
environment.systemPackages = with nix-casks.packages.${system}; [
maestral # Maestral
];
} Home Manager:
{
home.packages = with nix-casks.packages.${system}; [
maestral # Maestral
];
} Package Definition
{
"pname": "maestral",
"version": "1.9.5",
"src": {
"url": "https://github.com/SamSchott/maestral/releases/download/v1.9.5/Maestral-1.9.5.dmg",
"sha256": "cd8f393abba8a70794e527ee30c4d3f11b5da6e935fb315fbe6ff00bf8f79e4c"
},
"installPhase": [
"mkdir -p \"$out/Applications/Maestral.app\" && cp -r \"Maestral.app\" \"$out/Applications\"",
"mkdir -p \"$out/bin\" && ln -s \"$out/Applications/Maestral.app/Contents/MacOS/maestral-cli\" \"$out/bin/maestral\""
],
"meta": {
"description": "Open-source Dropbox client",
"homepage": "https://maestral.app/"
}
}