nix-config/pkgs/zsh-histdb-skim.nix

23 lines
609 B
Nix
Raw Normal View History

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 \
--replace "zsh-histdb-skim" "$out/bin/zsh-histdb-skim"
cp zsh-histdb-skim-vendored.zsh $out/zsh-histdb-skim.plugin.zsh
'';
}