diff --git a/pkgs/by-name/sk/skim/package.nix b/pkgs/by-name/sk/skim/package.nix index 4e09f021cc5f..ff5ab7bcb3da 100644 --- a/pkgs/by-name/sk/skim/package.nix +++ b/pkgs/by-name/sk/skim/package.nix @@ -1,55 +1,76 @@ -{ lib -, stdenv -, fetchCrate -, rustPlatform -, installShellFiles +{ + lib, + stdenv, + fetchFromGitHub, + installShellFiles, + nix-update-script, + runtimeShell, + rustPlatform, + skim, + testers, }: rustPlatform.buildRustPackage rec { pname = "skim"; - version = "0.10.4"; + version = "0.15.0"; - src = fetchCrate { - inherit pname version; - hash = "sha256-C2yK+SO8Tpw3BxXXu1jeDzYJ2548RZa7NFWaE0SdNJ0="; + outputs = [ + "out" + "man" + "vim" + ]; + + src = fetchFromGitHub { + owner = "skim-rs"; + repo = "skim"; + rev = "refs/tags/v${version}"; + hash = "sha256-Y/MVjwpNyYXjQWB3s8WRblCukBr0z81k3gf3bf58KGE="; }; - nativeBuildInputs = [ installShellFiles ]; - - outputs = [ "out" "vim" ]; - - cargoHash = "sha256-jBcgoWbmBOgU7M71lr4OXOe2S6NAXl+I8D+ZtT45Vos="; - postPatch = '' sed -i -e "s|expand(':h:h')|'$out'|" plugin/skim.vim ''; - postInstall = '' - install -D -m 555 bin/sk-tmux -t $out/bin + cargoHash = "sha256-llpNnZdIFHCmyyVla+tZOgpMTavu/m3ZGFZaS5EbiVo="; - install -D -m 444 plugin/skim.vim -t $vim/plugin + nativeBuildInputs = [ installShellFiles ]; - install -D -m 444 shell/* -t $out/share/skim - - installManPage man/man1/* - - cat <