go-mtpfs: fix darwin build

This commit is contained in:
Daiderd Jordan 2017-09-11 22:49:01 +02:00
parent c3887f0253
commit 77294205ac
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -16,5 +16,9 @@ buildGoPackage rec {
sha256 = "1jcqp9n8fd9psfsnhfj6w97yp0zmyxplsig8pyp2gqzh4lnb5fqm";
};
preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -delete_rpath "$out/lib" $bin/bin/go-mtpfs
'';
goDeps = ./deps.nix;
}