nixpkgs/pkgs/tools/filesystems/go-mtpfs/default.nix

30 lines
798 B
Nix
Raw Normal View History

2015-02-04 17:53:59 +03:00
{ lib, goPackages, pkgconfig, libmtp, fetchFromGitHub }:
2015-01-07 22:13:40 +03:00
2015-02-04 17:53:59 +03:00
with goPackages;
2015-01-07 22:13:40 +03:00
2015-02-04 17:53:59 +03:00
buildGoPackage rec {
rev = "9c2b46050e8ea8574eaec2124867ac7b11e6471d";
name = "go-mtpfs-${lib.strings.substring 0 7 rev}";
goPackagePath = "github.com/hanwen/go-mtpfs";
src = fetchFromGitHub {
inherit rev;
owner = "hanwen";
repo = "go-mtpfs";
sha256 = "0kxi18cb078q4wikfajp3yvp802wzfsfdp431j0dg2jdw8y7gfii";
2015-01-07 22:13:40 +03:00
};
2015-02-04 17:53:59 +03:00
buildInputs = [ go-fuse libmtp usb ];
2015-01-07 22:13:40 +03:00
2015-02-04 17:53:59 +03:00
subPackages = [ "./" ];
2015-01-07 22:13:40 +03:00
dontInstallSrc = true;
2015-01-07 22:13:40 +03:00
meta = with lib; {
description = "A simple FUSE filesystem for mounting Android devices as a MTP device";
homepage = https://github.com/hanwen/go-mtpfs;
maintainers = with maintainers; [ bennofs ];
platforms = platforms.linux;
license = licenses.bsd3;
};
}