forked from mirrors_public/oddlama_nix-config
feat: add zsh-skim-histdb package
This commit is contained in:
parent
365736b42a
commit
485e1448fc
4 changed files with 33 additions and 6 deletions
|
@ -31,5 +31,7 @@
|
||||||
hash = "sha256-iZUszwVcbVn6Xsqou6crSp9gJBRmm5vEqxS87h/s3PQ=";
|
hash = "sha256-iZUszwVcbVn6Xsqou6crSp9gJBRmm5vEqxS87h/s3PQ=";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
zsh-histdb-skim = super.callPackage ./zsh-skim-histdb.nix {};
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|
28
pkgs/zsh-skim-histdb.nix
Normal file
28
pkgs/zsh-skim-histdb.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
fetchFromGitHub,
|
||||||
|
rustPlatform,
|
||||||
|
sqlite,
|
||||||
|
}:
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "zsh-histdb-skim";
|
||||||
|
version = "0.8.6";
|
||||||
|
|
||||||
|
buildInputs = [sqlite];
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "m42e";
|
||||||
|
repo = "zsh-histdb-skim";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-lJ2kpIXPHE8qP0EBnLuyvatWMtepBobNAC09e7itGas=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-yvgyqm8WM7Oddxsbl/lfHQOmsEEiMTK6itbqea5+Ibg=";
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
substituteInPlace zsh-histdb-skim-vendored.zsh \
|
||||||
|
--replace zsh-histdb-skim "$out/bin/zsh-histdb-skim"
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
cp zsh-histdb-skim-vendored.zsh $out/zsh-histdb-skim.plugin.zsh
|
||||||
|
'';
|
||||||
|
}
|
|
@ -19,6 +19,8 @@
|
||||||
chmod = "chmod -c --preserve-root";
|
chmod = "chmod -c --preserve-root";
|
||||||
chown = "chown -c --preserve-root";
|
chown = "chown -c --preserve-root";
|
||||||
|
|
||||||
|
nb = "nix build --no-link --print-out-paths";
|
||||||
|
|
||||||
ip = "ip --color";
|
ip = "ip --color";
|
||||||
tmux = "tmux -2";
|
tmux = "tmux -2";
|
||||||
rg = "rg -S";
|
rg = "rg -S";
|
||||||
|
|
|
@ -46,12 +46,7 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "zsh-histdb-skim";
|
name = "zsh-histdb-skim";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.zsh-histdb-skim;
|
||||||
owner = "m42e";
|
|
||||||
repo = "zsh-histdb-skim";
|
|
||||||
rev = "3af19b6ec38b93c85bb82a80a69bec8b0e050cc5";
|
|
||||||
hash = "sha256-lJ2kpIXPHE8qP0EBnLuyvatWMtepBobNAC09e7itGas=";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue