2024-10-07 10:31:48 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "kamp";
|
2024-11-03 15:14:09 +00:00
|
|
|
version = "0.2.2";
|
2024-10-07 10:31:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vbauerster";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-11-03 15:14:09 +00:00
|
|
|
hash = "sha256-JZe8z6OYJ+I0+dcq+sCoQPzlz6eB4z98jWj8MDXdODY=";
|
2024-10-07 10:31:48 +00:00
|
|
|
};
|
|
|
|
|
2024-11-03 15:14:09 +00:00
|
|
|
cargoHash = "sha256-+NiDSg7FJrtcNm/V0kn2kNQMJqOamE7Yl0sK/FSUYgA=";
|
2024-10-07 10:31:48 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install scripts/* -Dt $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tool to control Kakoune editor from the command line";
|
|
|
|
homepage = "https://github.com/vbauerster/kamp";
|
|
|
|
license = lib.licenses.unlicense;
|
|
|
|
maintainers = with lib.maintainers; [ erikeah ];
|
|
|
|
mainProgram = "kamp";
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|