2023-10-11 19:35:55 +02:00
|
|
|
{
|
|
|
|
description = "kakoune (patch)";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (sys:
|
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${sys};
|
|
|
|
kak = pkgs.stdenv.mkDerivation rec {
|
2023-10-11 19:47:51 +02:00
|
|
|
pname = "kak";
|
2023-10-11 19:35:55 +02:00
|
|
|
version = "2022.10.31";
|
|
|
|
src = ./. ;
|
|
|
|
makeFlags = [ "debug=no" "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export version="v${version}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
in rec {
|
|
|
|
packages.kak = kak;
|
2023-10-11 19:47:51 +02:00
|
|
|
packages.default = kak;
|
2023-10-11 19:35:55 +02:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|