Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. { stdenv, fetchFromGitHub, makeWrapper, installShellFiles, runCommand, ... }:
  2.  
  3. runCommand "asdf-vm" rec {
  4. name = "asdf-vm-${version}";
  5. version = "0.7.8";
  6.  
  7. src = fetchFromGitHub {
  8. owner = "asdf-vm";
  9. repo = "asdf";
  10. rev = "v${version}";
  11. sha256 = "0cr9mnj9fy5riwn6wf4qmdqnjm8n3yxya5a4s4v5qq2wsmpclqc1";
  12. };
  13.  
  14. meta = with stdenv.lib; {
  15. homepage = "https://asdf-vm.com";
  16. license = licenses.mit;
  17. description = "Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more";
  18. };
  19.  
  20. nativeBuildInputs = [ installShellFiles ];
  21.  
  22. buildInputs = [ makeWrapper ];
  23.  
  24. dontBuild = true;
  25. } ''
  26. makeWrapper $src/bin/asdf $out/bin/asdf
  27.  
  28. installShellCompletion --bash $src/completions/asdf.bash
  29. installShellCompletion --fish $src/completions/asdf.fish
  30. installShellCompletion --zsh $src/completions/_asdf
  31. ''
  32.  
  33. #stdenv.mkDerivation rec {
  34. #name = "asdf-vm-${version}";
  35. #version = "0.7.8";
  36.  
  37. #src = fetchFromGitHub {
  38. #owner = "asdf-vm";
  39. #repo = "asdf";
  40. #rev = "v${version}";
  41. #sha256 = "0cr9mnj9fy5riwn6wf4qmdqnjm8n3yxya5a4s4v5qq2wsmpclqc1";
  42. #};
  43.  
  44. #meta = with stdenv.lib; {
  45. #homepage = "https://asdf-vm.com";
  46. #license = licenses.mit;
  47. #description = "Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more";
  48. #};
  49.  
  50. #nativeBuildInputs = [ installShellFiles ];
  51.  
  52. #buildInputs = [ makeWrapper ];
  53.  
  54. #dontBuild = true;
  55.  
  56. #postInstall = ''
  57. #makeWrapper bin/asdf $out/bin/asdf
  58.  
  59. #installShellCompletion --bash completions/asdf.bash
  60. #installShellCompletion --fish completions/asdf.fish
  61. #installShellCompletion --zsh completions/_asdf
  62. #'';
  63. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement