mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
vagrant: 1.7.4 -> 1.8.0
This commit is contained in:
parent
3087ef37bb
commit
53a5a44190
@ -4,11 +4,11 @@
|
||||
assert stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux";
|
||||
|
||||
let
|
||||
version = "1.7.4";
|
||||
version = "1.8.0";
|
||||
rake = buildRubyGem {
|
||||
inherit ruby;
|
||||
name = "rake-10.3.2";
|
||||
sha256 = "0nvpkjrpsk8xxnij2wd1cdn6arja9q11sxx4aq4fz18bc6fss15m";
|
||||
name = "rake-10.4.2";
|
||||
sha256 = "1rn03rqlf1iv6n87a78hkda2yqparhhaivfjpizblmxvlw2hk5r8";
|
||||
};
|
||||
|
||||
in
|
||||
@ -18,13 +18,13 @@ stdenv.mkDerivation rec {
|
||||
src =
|
||||
if stdenv.system == "x86_64-linux" then
|
||||
fetchurl {
|
||||
url = "https://dl.bintray.com/mitchellh/vagrant/vagrant_${version}_x86_64.deb";
|
||||
sha256 = "0dl3cskpz7d8mmv0ah86426vlx0lj1wkjdlb5gc868dfsysw5lnw";
|
||||
url = "https://releases.hashicorp.com/vagrant/${version}/vagrant_${version}_x86_64.deb";
|
||||
sha256 = "0hvi6db5lphgzsykm1wn76jj4wwmm6lshvvd0qz7ipyyyhnd7sjp";
|
||||
}
|
||||
else
|
||||
fetchurl {
|
||||
url = "https://dl.bintray.com/mitchellh/vagrant/vagrant_${version}_i686.deb";
|
||||
sha256 = "0sns9q48c6b2sabp6bwkppx8ffp774jhv69jrv225qrnifx12105";
|
||||
url = "https://releases.hashicorp.com/vagrant/${version}/vagrant_${version}_i686.deb";
|
||||
sha256 = "1jvscbxqbhavw4q81y5718qbyj74b9lwfw3gb4c1f4jmgm08wxxk";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
@ -46,9 +46,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# overwrite embedded binaries
|
||||
|
||||
# curl: curl
|
||||
rm opt/vagrant/embedded/bin/curl
|
||||
# curl: curl, curl-config
|
||||
rm opt/vagrant/embedded/bin/{curl,curl-config}
|
||||
ln -s ${curl}/bin/curl opt/vagrant/embedded/bin
|
||||
ln -s ${curl}/bin/curl-config opt/vagrant/embedded/bin
|
||||
|
||||
# libarchive: bsdtar, bsdcpio
|
||||
rm opt/vagrant/embedded/bin/{bsdtar,bsdcpio}
|
||||
@ -60,8 +61,8 @@ stdenv.mkDerivation rec {
|
||||
ln -s ${openssl}/bin/c_rehash opt/vagrant/embedded/bin
|
||||
ln -s ${openssl}/bin/openssl opt/vagrant/embedded/bin
|
||||
|
||||
# ruby: erb, gem, irb, rake, rdoc, ri, ruby, testrb
|
||||
rm opt/vagrant/embedded/bin/{erb,gem,irb,rake,rdoc,ri,ruby,testrb}
|
||||
# ruby: erb, gem, irb, rake, rdoc, ri, ruby
|
||||
rm opt/vagrant/embedded/bin/{erb,gem,irb,rake,rdoc,ri,ruby}
|
||||
ln -s ${ruby}/bin/erb opt/vagrant/embedded/bin
|
||||
ln -s ${ruby}/bin/gem opt/vagrant/embedded/bin
|
||||
ln -s ${ruby}/bin/irb opt/vagrant/embedded/bin
|
||||
@ -69,7 +70,6 @@ stdenv.mkDerivation rec {
|
||||
ln -s ${ruby}/bin/rdoc opt/vagrant/embedded/bin
|
||||
ln -s ${ruby}/bin/ri opt/vagrant/embedded/bin
|
||||
ln -s ${ruby}/bin/ruby opt/vagrant/embedded/bin
|
||||
ln -s ${ruby}/bin/testrb opt/vagrant/embedded/bin
|
||||
|
||||
# libiconv: iconv
|
||||
rm opt/vagrant/embedded/bin/iconv
|
||||
@ -93,12 +93,12 @@ stdenv.mkDerivation rec {
|
||||
|
||||
preFixup = ''
|
||||
# 'hide' the template file from shebang-patching
|
||||
chmod -x $out/opt/vagrant/embedded/gems/gems/bundler-1.10.5/lib/bundler/templates/Executable
|
||||
chmod -x $out/opt/vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler/templates/Executable
|
||||
chmod -x $out/opt/vagrant/embedded/gems/gems/vagrant-${version}/plugins/provisioners/salt/bootstrap-salt.sh
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
chmod +x $out/opt/vagrant/embedded/gems/gems/bundler-1.10.5/lib/bundler/templates/Executable
|
||||
chmod +x $out/opt/vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler/templates/Executable
|
||||
chmod +x $out/opt/vagrant/embedded/gems/gems/vagrant-${version}/plugins/provisioners/salt/bootstrap-salt.sh
|
||||
'';
|
||||
}
|
||||
|
@ -5899,7 +5899,7 @@ let
|
||||
uncrustify = callPackage ../development/tools/misc/uncrustify { };
|
||||
|
||||
vagrant = callPackage ../development/tools/vagrant {
|
||||
ruby = ruby_2_0_0;
|
||||
ruby = ruby_2_2_2;
|
||||
};
|
||||
|
||||
gdb = callPackage ../development/tools/misc/gdb {
|
||||
|
Loading…
Reference in New Issue
Block a user