mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
914e0e594c
https://github.com/NixOS/nixpkgs/pull/17254#issuecomment-245295541 * update docs to describe `deps.nix` * include goDeps in nix-shell GOPATH * NixOS 16.09 rel notes about replacing goPackages
21 lines
563 B
Nix
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;
|
|
}
|