motrix: init at 1.6.11 (#185804)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Co-authored-by: zendo <linzway@qq.com> Resolves https://github.com/NixOS/nixpkgs/issues/157984
This commit is contained in:
parent
569f0760a5
commit
8b89e2b819
2 changed files with 38 additions and 0 deletions
36
pkgs/tools/networking/motrix/default.nix
Normal file
36
pkgs/tools/networking/motrix/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{ lib
|
||||||
|
, appimageTools
|
||||||
|
, fetchurl
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
pname = "motrix";
|
||||||
|
version = "1.6.11";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/agalwood/Motrix/releases/download/v${version}/Motrix-${version}.AppImage";
|
||||||
|
sha256 = "sha256-tE2Q7NM+cQOg+vyqyfRwg05EOMQWhhggTA6S+VT+SkM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
appimageContents = appimageTools.extractType2 {
|
||||||
|
inherit pname version src;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
appimageTools.wrapType2 rec {
|
||||||
|
inherit pname version src;
|
||||||
|
|
||||||
|
extraInstallCommands = ''
|
||||||
|
mv $out/bin/${pname}-${version} $out/bin/${pname}
|
||||||
|
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
||||||
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
||||||
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
||||||
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A full-featured download manager";
|
||||||
|
homepage = "https://motrix.app";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
maintainers = with maintainers; [ dit7ya ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -9412,6 +9412,8 @@ with pkgs;
|
||||||
|
|
||||||
mosh = callPackage ../tools/networking/mosh { };
|
mosh = callPackage ../tools/networking/mosh { };
|
||||||
|
|
||||||
|
motrix = callPackage ../tools/networking/motrix { };
|
||||||
|
|
||||||
mpage = callPackage ../tools/text/mpage { };
|
mpage = callPackage ../tools/text/mpage { };
|
||||||
|
|
||||||
mprime = callPackage ../tools/misc/mprime { };
|
mprime = callPackage ../tools/misc/mprime { };
|
||||||
|
|
Loading…
Reference in a new issue