Installation
System wide:
{
environment.systemPackages = with nix-casks.packages.${system}; [
webtorrent # WebTorrent Desktop
];
}
Home Manager:
{
home.packages = with nix-casks.packages.${system}; [
webtorrent # WebTorrent Desktop
];
}
Package Definition
{
"pname": "webtorrent",
"version": "0.24.0",
"src": {
"url": "https://github.com/webtorrent/webtorrent-desktop/releases/download/v0.24.0/WebTorrent-v0.24.0.dmg",
"sha256": "9cf28d0f0ef74d793cca5a0fee0d7195a11c055b4a6c118cea295c308a3bfd9d"
},
"installPhase": [
"mkdir -p \"$out/Applications/WebTorrent.app\" && cp -r \"WebTorrent.app\" \"$out/Applications\""
],
"meta": {
"description": "Torrent streaming application",
"homepage": "https://webtorrent.io/desktop/"
}
}