Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
988 B
Nix
50 lines
988 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
fuse3,
|
|
readline,
|
|
pkg-config,
|
|
qt6,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "android-file-transfer";
|
|
version = "4.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "whoozle";
|
|
repo = "android-file-transfer-linux";
|
|
tag = "v${version}";
|
|
sha256 = "sha256-G+ErwZ/F8Cl8WLSzC+5LrEWWqNZL3xDMBvx/gjkgAXk=";
|
|
};
|
|
|
|
patches = [ ./darwin-dont-vendor-dependencies.patch ];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
readline
|
|
pkg-config
|
|
qt6.wrapQtAppsHook
|
|
];
|
|
buildInputs = [
|
|
fuse3
|
|
qt6.qtbase
|
|
qt6.qttools
|
|
];
|
|
|
|
postInstall = lib.optionalString stdenv.hostPlatform.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;
|
|
};
|
|
}
|