lol

skim: 0.10.4 -> 0.15.0 (#360665)

authored by

Vlad M. and committed by
GitHub
46ee895a bd548065

+50 -29
+50 -29
pkgs/by-name/sk/skim/package.nix
··· 1 - { lib 2 - , stdenv 3 - , fetchCrate 4 - , rustPlatform 5 - , installShellFiles 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + installShellFiles, 6 + nix-update-script, 7 + runtimeShell, 8 + rustPlatform, 9 + skim, 10 + testers, 6 11 }: 7 12 8 13 rustPlatform.buildRustPackage rec { 9 14 pname = "skim"; 10 - version = "0.10.4"; 11 - 12 - src = fetchCrate { 13 - inherit pname version; 14 - hash = "sha256-C2yK+SO8Tpw3BxXXu1jeDzYJ2548RZa7NFWaE0SdNJ0="; 15 - }; 15 + version = "0.15.0"; 16 16 17 - nativeBuildInputs = [ installShellFiles ]; 18 - 19 - outputs = [ "out" "vim" ]; 17 + outputs = [ 18 + "out" 19 + "man" 20 + "vim" 21 + ]; 20 22 21 - cargoHash = "sha256-jBcgoWbmBOgU7M71lr4OXOe2S6NAXl+I8D+ZtT45Vos="; 23 + src = fetchFromGitHub { 24 + owner = "skim-rs"; 25 + repo = "skim"; 26 + rev = "refs/tags/v${version}"; 27 + hash = "sha256-Y/MVjwpNyYXjQWB3s8WRblCukBr0z81k3gf3bf58KGE="; 28 + }; 22 29 23 30 postPatch = '' 24 31 sed -i -e "s|expand('<sfile>:h:h')|'$out'|" plugin/skim.vim 25 32 ''; 26 33 27 - postInstall = '' 28 - install -D -m 555 bin/sk-tmux -t $out/bin 34 + cargoHash = "sha256-llpNnZdIFHCmyyVla+tZOgpMTavu/m3ZGFZaS5EbiVo="; 29 35 30 - install -D -m 444 plugin/skim.vim -t $vim/plugin 31 - 32 - install -D -m 444 shell/* -t $out/share/skim 33 - 34 - installManPage man/man1/* 36 + nativeBuildInputs = [ installShellFiles ]; 35 37 36 - cat <<SCRIPT > $out/bin/sk-share 37 - #! ${stdenv.shell} 38 + postBuild = '' 39 + cat <<SCRIPT > sk-share 40 + #! ${runtimeShell} 38 41 # Run this script to find the skim shared folder where all the shell 39 42 # integration scripts are living. 40 43 echo $out/share/skim 41 44 SCRIPT 42 - chmod +x $out/bin/sk-share 45 + ''; 46 + 47 + postInstall = '' 48 + installBin bin/sk-tmux 49 + install -D -m 444 plugin/skim.vim -t $vim/plugin 50 + install -D -m 444 shell/* -t $out/share/skim 51 + 52 + installBin sk-share 53 + installManPage $(find man -type f) 43 54 ''; 44 55 56 + # Doc tests are broken on aarch64 45 57 # https://github.com/lotabout/skim/issues/440 46 - doCheck = !stdenv.hostPlatform.isAarch64; 58 + cargoTestFlags = lib.optional stdenv.hostPlatform.isAarch64 "--all-targets"; 47 59 48 - meta = with lib; { 60 + passthru = { 61 + tests.version = testers.testVersion { package = skim; }; 62 + updateScript = nix-update-script { }; 63 + }; 64 + 65 + meta = { 49 66 description = "Command-line fuzzy finder written in Rust"; 50 67 homepage = "https://github.com/lotabout/skim"; 51 - license = licenses.mit; 68 + changelog = "https://github.com/skim-rs/skim/releases/tag/v${version}"; 69 + license = lib.licenses.mit; 70 + maintainers = with lib.maintainers; [ 71 + dywedir 72 + getchoo 73 + ]; 52 74 mainProgram = "sk"; 53 - maintainers = with maintainers; [ dywedir ]; 54 75 }; 55 76 }