From 7c193be7f389474514be260fe7b2f8077cc22df5 Mon Sep 17 00:00:00 2001 From: laalsaas Date: Mon, 6 Feb 2023 14:05:59 +0100 Subject: [PATCH] simple-mtpfs: init at 0.4.0 --- .../filesystems/simple-mtpfs/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/filesystems/simple-mtpfs/default.nix diff --git a/pkgs/tools/filesystems/simple-mtpfs/default.nix b/pkgs/tools/filesystems/simple-mtpfs/default.nix new file mode 100644 index 000000000000..3cb2aa97007b --- /dev/null +++ b/pkgs/tools/filesystems/simple-mtpfs/default.nix @@ -0,0 +1,31 @@ +{ stdenv +, lib +, fetchFromGitHub +, autoreconfHook +, autoconf-archive +, pkg-config +, fuse +, libmtp +}: +stdenv.mkDerivation rec { + pname = "simple-mtpfs"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "phatina"; + repo = pname; + rev = "v${version}"; + hash = "sha256-vAqi2owa4LJK7y7S7TwkPAqDxzyHrZZBTu0MBwMT0gI="; + }; + + nativeBuildInputs = [ autoreconfHook autoconf-archive pkg-config ]; + buildInputs = [ fuse libmtp ]; + + meta = with lib; { + description = "Simple MTP fuse filesystem driver"; + homepage = "https://github.com/phatina/simple-mtpfs"; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ laalsaas ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c56245676b56..a8c50b8dc949 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11868,6 +11868,8 @@ with pkgs; silver-searcher = callPackage ../tools/text/silver-searcher { }; + simple-mtpfs = callPackage ../tools/filesystems/simple-mtpfs { }; + simpleproxy = callPackage ../tools/networking/simpleproxy { }; simplescreenrecorder = libsForQt5.callPackage ../applications/video/simplescreenrecorder { };