Installation
System wide:
{
environment.systemPackages = with nix-casks.packages.${system}; [
firefox_cn # firefox-cn
];
}
Home Manager:
{
home.packages = with nix-casks.packages.${system}; [
firefox_cn # firefox-cn
];
}
Package Definition
{
"pname": "firefox_cn",
"version": "116.0",
"src": {
"url": "https://download-ssl.firefox.com.cn/releases/firefox/116.0/zh-CN/Firefox-latest.dmg",
"sha256": "no_check"
},
"installPhase": [
"mkdir -p \"$out/Applications\" && cp -r \"Firefox.app\" \"$out/Applications/Firefox.app\""
],
"meta": {
"description": "Chinese version of Firefox",
"homepage": "https://www.firefox.com.cn/"
}
}