nix-config/pkgs/zsh-histdb.nix
Patrick 6ecd282976
fix: deprecated calls in pkgs
fix: remove unused enable
2024-04-13 14:28:12 +02:00

23 lines
505 B
Nix

{
stdenv,
fetchFromGitHub,
sqlite,
}:
stdenv.mkDerivation {
name = "zsh-histdb";
src = fetchFromGitHub {
owner = "larkery";
repo = "zsh-histdb";
rev = "30797f0c50c31c8d8de32386970c5d480e5ab35d";
hash = "sha256-PQIFF8kz+baqmZWiSr+wc4EleZ/KD8Y+lxW2NT35/bg=";
};
patchPhase = ''
substituteInPlace "sqlite-history.zsh" "histdb-migrate" "histdb-merge" \
--replace-fail "sqlite3" "${sqlite}/bin/sqlite3"
'';
installPhase = ''
mkdir -p $out
cp -r * $out
'';
}