Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "kakoune-unwrapped";
|
|
version = "2025.06.03";
|
|
src = fetchFromGitHub {
|
|
repo = "kakoune";
|
|
owner = "mawww";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-AJvh6NVFpbPsyzfeii/5muE+i4TwfxhwhDVgMLYOJCM=";
|
|
};
|
|
|
|
makeFlags = [
|
|
"debug=no"
|
|
"PREFIX=${placeholder "out"}"
|
|
];
|
|
|
|
postPatch = ''
|
|
echo "v${finalAttrs.version}" >.version
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
preBuild = ''
|
|
appendToVar makeFlags "CXX=$CXX"
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
$out/bin/kak -ui json -e "kill 0"
|
|
'';
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://kakoune.org/";
|
|
description = "Vim inspired text editor";
|
|
license = licenses.publicDomain;
|
|
mainProgram = "kak";
|
|
maintainers = with maintainers; [ philiptaron ];
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|