nixpkgs/pkgs/tools/filesystems/go-mtpfs/default.nix
Dan Peebles b426c85ce2 Get rid of most @rpath nonsense on Darwin
This requires some small changes in the stdenv, then working around the
weird choice LLVM made to hardcode @rpath in its install name, and then
lets us remove a ton of annoying workaround hacks in many of our Go
packages. With any luck this will mean less hackery going forward.
2017-10-08 16:13:46 -04:00

21 lines
563 B
Nix

{ stdenv, lib, pkgconfig, libusb1, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
buildGoPackage rec {
name = "go-mtpfs-${version}";
version = "20150917-${stdenv.lib.strings.substring 0 7 rev}";
rev = "bc7c0f716e3b4ed5610069a55fc00828ebba890b";
goPackagePath = "github.com/hanwen/go-mtpfs";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libusb1 ];
src = fetchgit {
inherit rev;
url = "https://github.com/hanwen/go-mtpfs";
sha256 = "1jcqp9n8fd9psfsnhfj6w97yp0zmyxplsig8pyp2gqzh4lnb5fqm";
};
goDeps = ./deps.nix;
}