m-cli: 0.3.0 -> 2.0.5 (#446927)
This commit is contained in:
@@ -6,13 +6,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "m-cli";
|
||||
version = "0.3.0";
|
||||
version = "2.0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rgcr";
|
||||
repo = "m-cli";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-KzlE1DdVMLnGmcOS1a2HK4pASofD1EHpdqbzVVIxeb4=";
|
||||
sha256 = "sha256-41o7RoRlHwAmzSREDhQpq2Lchkz8QPxJRqN42ShUJb8=";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
@@ -24,16 +24,17 @@ stdenv.mkDerivation rec {
|
||||
gsub(/^\[ -L.*|^\s+\|\| pushd.*|^popd.*/, "");
|
||||
gsub(/MPATH=.*/, "MPATH='$MPATH'");
|
||||
gsub(/(update|uninstall)_mcli \&\&.*/, "echo NOOP \\&\\& exit 0");
|
||||
gsub(/get_version \&\&.*/, "echo m-cli version: ${version} \\&\\& exit 0");
|
||||
print
|
||||
}' m
|
||||
|
||||
install -Dt "$MPATH/plugins" -m755 plugins/*
|
||||
install -Dt "$out/bin/plugins" -m755 plugins/*
|
||||
|
||||
install -Dm755 m $out/bin/m
|
||||
|
||||
install -Dt "$out/share/bash-completion/completions/" -m444 completion/bash/m
|
||||
install -Dt "$out/share/fish/vendor_completions.d/" -m444 completion/fish/m.fish
|
||||
install -Dt "$out/share/zsh/site-functions/" -m444 completion/zsh/_m
|
||||
install -Dt "$out/share/bash-completion/completions/" -m444 completions/bash/m
|
||||
install -Dt "$out/share/fish/vendor_completions.d/" -m444 completions/fish/m.fish
|
||||
install -Dt "$out/share/zsh/site-functions/" -m444 completions/zsh/_m
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
Reference in New Issue
Block a user