Installation
System wide:
{
environment.systemPackages = with nix-casks.packages.${system}; [
airtrash # airtrash
];
} Home Manager:
{
home.packages = with nix-casks.packages.${system}; [
airtrash # airtrash
];
} Package Definition
{
"pname": "airtrash",
"version": "1.0.0",
"src": {
"url": "https://github.com/maciejczyzewski/airtrash/releases/download/1.0.0/airtrash-1.0.0.dmg",
"sha256": "9ce83fef421654b4ca39550255dd09e0b2281da5fe3dbd9e8e23e58640912606"
},
"installPhase": [
"mkdir -p \"$out/Applications/Airtrash.app\" && cp -r \"Airtrash.app\" \"$out/Applications\""
],
"meta": {
"description": "Clone of Apple's Airdrop - easy P2P file transfer",
"homepage": "https://github.com/maciejczyzewski/airtrash/"
}
}