1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

ad: init at 0.1.3 (#355006)

This commit is contained in:
Pol Dellaiera 2024-11-11 20:43:19 +01:00 committed by GitHub
commit a59994b9f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,61 @@
{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "ad";
version = "0.1.3";
src = fetchFromGitHub {
owner = "sminez";
repo = "ad";
rev = "refs/tags/${version}";
hash = "sha256-l1SyrJW3lZIvoFZG57Bj134sUcoq60xfeXjzVaZPfzs=";
};
cargoHash = "sha256-wpR9wZA5SGyLI1ScfZwSENuUMI/iX3YS0P/o9drIwoo=";
nativeBuildInputs = [ installShellFiles ];
checkFlags = [
# both assume `/usr/bin/sh` exists
"--skip=buffer::tests::try_expand_known_works::file_that_exists_abs_path"
"--skip=buffer::tests::try_expand_known_works::file_that_exists_abs_path_with_addr"
];
postInstall = ''
installManPage doc/man/ad.1
'';
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
meta = {
description = "Adaptable text editor";
longDescription = ''
ad (pronounced A.D.) is an attempt at combining a modal
editing interface of likes of vi and kakoune with the
approach to extensibility of Plan9's Acme. Inside
of ad text is something you can execute as well as edit.
It is primarily intended as playground for experimenting
with implementing various text editor features and
currently is not at all optimised or feature complete
enough for use as your main text editor.
'';
homepage = "https://github.com/sminez/ad";
license = lib.licenses.mit;
mainProgram = "ad";
maintainers = with lib.maintainers; [ aleksana ];
# rely on unix domain socket
# https://github.com/sminez/ad/issues/28
platforms = lib.platforms.unix;
};
}