skim: update to 3.4.0 (#492261)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
tmux,
|
||||
hexdump,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
nix-update-script,
|
||||
@@ -11,7 +12,7 @@
|
||||
}:
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "skim";
|
||||
version = "2.0.2";
|
||||
version = "3.4.0";
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
@@ -23,20 +24,20 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
owner = "skim-rs";
|
||||
repo = "skim";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-V6ZIGPeGWTeNzOA9FDhARx63L3CVpUUpCILwIGg8NOY=";
|
||||
hash = "sha256-s0aC+gHqxX/SEiWsqB4mgl27eZ65RtVmgXX/veus1IQ=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e "s|expand('<sfile>:h:h')|'$out'|" plugin/skim.vim
|
||||
'';
|
||||
|
||||
cargoHash = "sha256-xtrqY8jBB43Dpj4nOr2b0FziRvPjtRpWevAM8FeHqwc=";
|
||||
cargoHash = "sha256-Y3WQlzzciYVqVjq0UtAb+4wZwKXLOUpYozriG/w5lJI=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
nativeCheckInputs = [ tmux ];
|
||||
|
||||
# frizbee requires nightly features
|
||||
env.RUSTC_BOOTSTRAP = 1;
|
||||
nativeCheckInputs = [
|
||||
tmux
|
||||
hexdump
|
||||
];
|
||||
|
||||
postBuild = ''
|
||||
cat <<SCRIPT > sk-share
|
||||
@@ -63,34 +64,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
|
||||
useNextest = true;
|
||||
|
||||
checkPhase =
|
||||
let
|
||||
skippedTests = [
|
||||
# Assertion Error: Insta: Code output doesn't match the expected snapshot
|
||||
"opt_replstr"
|
||||
"opt_with_nth_preview"
|
||||
"preview_offset_expr"
|
||||
"preview_navigation"
|
||||
"preview_offset_fixed"
|
||||
"preview_nul_char"
|
||||
"preview_nowrap"
|
||||
"preview_offset_fixed_and_expr"
|
||||
"preview_plus"
|
||||
"preview_preserve_quotes"
|
||||
"preview_pty_linux"
|
||||
"preview_wrap"
|
||||
"preview_window_down"
|
||||
"preview_window_left"
|
||||
"preview_window_up"
|
||||
];
|
||||
filterExpr =
|
||||
"not ("
|
||||
+ (builtins.concatStringsSep " or " (map (testName: "test(${testName})") skippedTests))
|
||||
+ ")";
|
||||
in
|
||||
''
|
||||
cargo nextest run --features test-utils --release --offline -E '${filterExpr}'
|
||||
'';
|
||||
checkPhase = ''
|
||||
cargo nextest run --features test-utils --release --offline --lib --bins --examples --tests
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
tests.version = testers.testVersion { package = skim; };
|
||||
|
||||
Reference in New Issue
Block a user