Installation
System wide:
{
environment.systemPackages = with nix-casks.packages.${system}; [
lapce # Lapce
];
}
Home Manager:
{
home.packages = with nix-casks.packages.${system}; [
lapce # Lapce
];
}
Package Definition
{
"pname": "lapce",
"version": "0.4.2",
"src": {
"url": "https://github.com/lapce/lapce/releases/download/v0.4.2/Lapce-macos.dmg",
"sha256": "6df0b260d80d00e88155ee669509bc61afab1d2490c846f70d1d537952b1a011"
},
"installPhase": [
"mkdir -p \"$out/Applications/Lapce.app\" && cp -r \"Lapce.app\" \"$out/Applications\"",
"mkdir -p \"$out/bin\" && ln -s \"$out/Applications/Lapce.app/Contents/MacOS/lapce\" \"$out/bin/lapce\""
],
"meta": {
"description": "Open source code editor written in Rust",
"homepage": "https://lapce.dev/"
}
}