diff options
author | Kamil Chmielewski <kamil.chm@gmail.com> | 2016-06-03 13:50:07 +0200 |
---|---|---|
committer | Kamil Chmielewski <kamil.chm@gmail.com> | 2016-06-09 11:21:30 +0200 |
commit | ce81a8a65dcc7209159fcd35bf1fc703e2ec56aa (patch) | |
tree | b1f23b00f01575f21cf4f01b8588bfaeb853acf6 /pkgs/tools/filesystems/go-mtpfs | |
parent | ece0626593674e4962a432ee685df54917adaa0b (diff) |
go-mtpfs: extracted from goPackages
Diffstat (limited to 'pkgs/tools/filesystems/go-mtpfs')
-rw-r--r-- | pkgs/tools/filesystems/go-mtpfs/default.nix | 23 | ||||
-rw-r--r-- | pkgs/tools/filesystems/go-mtpfs/deps.json | 17 |
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/go-mtpfs/default.nix b/pkgs/tools/filesystems/go-mtpfs/default.nix new file mode 100644 index 000000000000..55be2dd9e73b --- /dev/null +++ b/pkgs/tools/filesystems/go-mtpfs/default.nix @@ -0,0 +1,23 @@ +# This file was generated by go2nix. +{ stdenv, lib, pkgconfig, libusb1, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }: + +with goPackages; + +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.json; +} diff --git a/pkgs/tools/filesystems/go-mtpfs/deps.json b/pkgs/tools/filesystems/go-mtpfs/deps.json new file mode 100644 index 000000000000..cc2ce33ac301 --- /dev/null +++ b/pkgs/tools/filesystems/go-mtpfs/deps.json @@ -0,0 +1,17 @@ +[ + { + "include": "../../../go-modules/libs.json", + "packages": [ + "github.com/hanwen/go-fuse" + ] + }, + { + "goPackagePath": "github.com/hanwen/usb", + "fetch": { + "type": "git", + "url": "https://github.com/hanwen/usb", + "rev": "69aee4530ac705cec7c5344418d982aaf15cf0b1", + "sha256": "01k0c2g395j65vm1w37mmrfkg6nm900khjrrizzpmx8f8yf20dky" + } + } +] |