about summary refs log tree commit diff
path: root/pkgs/simple-mtpfs/default.nix
blob: 06c685a54633fc9cc2f614d9781ec555eebc49ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ stdenv, fetchgit, pkgconfig, autoconf, autoconf-archive, automake, libmtp, fuse }:
with stdenv.lib;
let
  pname = "simple-mtpfs";
  version = "0.4.0";
in
  stdenv.mkDerivation {
    inherit pname version;

    nativeBuildInputs = [
      autoconf
      autoconf-archive
      automake
      pkgconfig
    ];

    buildInputs = [
      libmtp
      fuse
    ];


    src = fetchgit {
      url = "https://github.com/phatina/simple-mtpfs";
      rev = "v${version}";
      sha256 = "00nj2c1hf37d9r0rdbc77k3q62iw4hyfvlifxx5b5q0sikda42mw";
    };

    buildPhase = ''
      ./autogen.sh
      mkdir build
      ./configure
      make
    '';

    installPhase = ''
      make install prefix=$out
    '';

    meta = {
      homepage =  "https://github.com/phatina/simple-mtpfs";
      description = "Simple MTP fuse filesystem driver.";
    };
  }