504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
41 lines
957 B
Nix
41 lines
957 B
Nix
{ lib
|
|
, stdenv
|
|
, mkDerivation
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, fuse
|
|
, readline
|
|
, pkg-config
|
|
, qtbase
|
|
, qttools
|
|
, wrapQtAppsHook }:
|
|
|
|
mkDerivation rec {
|
|
pname = "android-file-transfer";
|
|
version = "4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "whoozle";
|
|
repo = "android-file-transfer-linux";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-UOARMtOnG6tekmOsIWRZbl2y32mR0kPD6w7IHRG8VsU=";
|
|
};
|
|
|
|
patches = [ ./darwin-dont-vendor-dependencies.patch ];
|
|
|
|
nativeBuildInputs = [ cmake readline pkg-config wrapQtAppsHook ];
|
|
buildInputs = [ fuse qtbase qttools ];
|
|
|
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
|
mkdir $out/Applications
|
|
mv $out/*.app $out/Applications
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Reliable MTP client with minimalistic UI";
|
|
homepage = "https://whoozle.github.io/android-file-transfer-linux/";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = [ maintainers.xaverdh ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|