diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/filesystems/go-mtpfs/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/filesystems/go-mtpfs/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/filesystems/go-mtpfs/default.nix b/nixpkgs/pkgs/tools/filesystems/go-mtpfs/default.nix new file mode 100644 index 000000000000..c1d41ff1622c --- /dev/null +++ b/nixpkgs/pkgs/tools/filesystems/go-mtpfs/default.nix @@ -0,0 +1,20 @@ +{ stdenv, pkgconfig, libusb1, buildGoPackage, fetchgit }: + +buildGoPackage rec { + name = "go-mtpfs-${version}"; + version = "2018-02-09"; + rev = "d6f8f3c05ce0ed31435057ec342268a0735863bb"; + + goPackagePath = "github.com/hanwen/go-mtpfs"; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ libusb1 ]; + + src = fetchgit { + inherit rev; + url = "https://github.com/hanwen/go-mtpfs"; + sha256 = "0a0d5dy92nzp1czh87hx3xfdcpa4jh14j0b64c025ha62s9a4gxk"; + }; + + goDeps = ./deps.nix; +} |