Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { stdenv, fetchFromGitHub, makeWrapper, installShellFiles, runCommand, ... }:
- runCommand "asdf-vm" rec {
- name = "asdf-vm-${version}";
- version = "0.7.8";
- src = fetchFromGitHub {
- owner = "asdf-vm";
- repo = "asdf";
- rev = "v${version}";
- sha256 = "0cr9mnj9fy5riwn6wf4qmdqnjm8n3yxya5a4s4v5qq2wsmpclqc1";
- };
- meta = with stdenv.lib; {
- homepage = "https://asdf-vm.com";
- license = licenses.mit;
- description = "Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more";
- };
- nativeBuildInputs = [ installShellFiles ];
- buildInputs = [ makeWrapper ];
- dontBuild = true;
- } ''
- makeWrapper $src/bin/asdf $out/bin/asdf
- installShellCompletion --bash $src/completions/asdf.bash
- installShellCompletion --fish $src/completions/asdf.fish
- installShellCompletion --zsh $src/completions/_asdf
- ''
- #stdenv.mkDerivation rec {
- #name = "asdf-vm-${version}";
- #version = "0.7.8";
- #src = fetchFromGitHub {
- #owner = "asdf-vm";
- #repo = "asdf";
- #rev = "v${version}";
- #sha256 = "0cr9mnj9fy5riwn6wf4qmdqnjm8n3yxya5a4s4v5qq2wsmpclqc1";
- #};
- #meta = with stdenv.lib; {
- #homepage = "https://asdf-vm.com";
- #license = licenses.mit;
- #description = "Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more";
- #};
- #nativeBuildInputs = [ installShellFiles ];
- #buildInputs = [ makeWrapper ];
- #dontBuild = true;
- #postInstall = ''
- #makeWrapper bin/asdf $out/bin/asdf
- #installShellCompletion --bash completions/asdf.bash
- #installShellCompletion --fish completions/asdf.fish
- #installShellCompletion --zsh completions/_asdf
- #'';
- #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement