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.5",
"src": {
"url": "https://github.com/lapce/lapce/releases/download/v0.4.5/Lapce-macos.dmg",
"sha256": "354e7e5b89e9f9eb1c08d32fa08906b9230b825c0dcc70624585c4e026fd13b8"
},
"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/"
}
}