2023-09-18 14:36:41 +02:00
|
|
|
{
|
|
|
|
rustPlatform,
|
|
|
|
sqlite,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "zsh-histd-skim";
|
|
|
|
version = "0.8.6";
|
|
|
|
buildInputs = [sqlite];
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "m42e";
|
|
|
|
repo = "zsh-histdb-skim";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-lJ2kpIXPHE8qP0EBnLuyvatWMtepBobNAC09e7itGas=";
|
|
|
|
};
|
|
|
|
cargoHash = "sha256-BMy9Shy9KAx5+VbvH2WaA0wMFUNM5dqU/dssUNE1NWY=";
|
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace zsh-histdb-skim-vendored.zsh \
|
2024-04-13 14:27:54 +02:00
|
|
|
--replace-fail "zsh-histdb-skim" "$out/bin/zsh-histdb-skim"
|
2023-09-18 14:36:41 +02:00
|
|
|
cp zsh-histdb-skim-vendored.zsh $out/zsh-histdb-skim.plugin.zsh
|
|
|
|
'';
|
|
|
|
}
|