vagrant: make patches a list (#18364)

This has more correct semantics, allows for multiple patches, and makes
using overrideDerivation to add/remove patches work as expected.
This commit is contained in:
Aneesh Agrawal 2016-09-06 10:52:01 -04:00 committed by Robin Gloster
parent f2ddf2a9be
commit b1c83e8928

View File

@ -33,11 +33,13 @@ in stdenv.mkDerivation rec {
"-p1" "-p1"
"-d ./opt/vagrant/embedded/gems/gems/vagrant-${version}" "-d ./opt/vagrant/embedded/gems/gems/vagrant-${version}"
]; ];
patches = (fetchpatch { patches = [
url = "https://patch-diff.githubusercontent.com/raw/mitchellh/vagrant/pull/7611.diff"; (fetchpatch {
name = "fix_incorrect_ssh_keys_permissions.patch"; url = "https://patch-diff.githubusercontent.com/raw/mitchellh/vagrant/pull/7611.diff";
sha256 = "0lqa9xpg79ggp9fc8gzb5lv675ydj2p8l55bx4hs1hf8zz2c1hjf"; name = "fix_incorrect_ssh_keys_permissions.patch";
}); sha256 = "0lqa9xpg79ggp9fc8gzb5lv675ydj2p8l55bx4hs1hf8zz2c1hjf";
})
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A tool for building complete development environments"; description = "A tool for building complete development environments";