2024-05-15 15:35:15 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "kakoune-unwrapped";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2024.05.18";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "kakoune";
|
|
|
|
owner = "mawww";
|
2024-05-15 15:35:15 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-1nYSVbvQ4tz1r8p7zCD6w/79haqpelb15qva9r3Fwew=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-09-18 10:52:07 +00:00
|
|
|
makeFlags = [ "debug=no" "PREFIX=${placeholder "out"}" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
postPatch = ''
|
|
|
|
echo "v${finalAttrs.version}" >.version
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
doInstallCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
installCheckPhase = ''
|
2020-12-25 13:55:36 +00:00
|
|
|
$out/bin/kak -ui json -e "kill 0"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
postInstall = ''
|
|
|
|
# make share/kak/autoload a directory, so we can use symlinkJoin with plugins
|
|
|
|
cd "$out/share/kak"
|
|
|
|
autoload_target=$(readlink autoload)
|
|
|
|
rm autoload
|
|
|
|
mkdir autoload
|
|
|
|
ln -s --relative "$autoload_target" autoload
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://kakoune.org/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Vim inspired text editor";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.publicDomain;
|
2021-12-19 01:06:50 +00:00
|
|
|
mainProgram = "kak";
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
})
|