diff options
Diffstat (limited to 'pkgs/tools/networking/motrix/default.nix')
-rw-r--r-- | pkgs/tools/networking/motrix/default.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/tools/networking/motrix/default.nix b/pkgs/tools/networking/motrix/default.nix index 2c6450b675540..3de4a13a4e992 100644 --- a/pkgs/tools/networking/motrix/default.nix +++ b/pkgs/tools/networking/motrix/default.nix @@ -4,26 +4,28 @@ }: let pname = "motrix"; - version = "1.6.11"; + version = "1.8.14"; src = fetchurl { url = "https://github.com/agalwood/Motrix/releases/download/v${version}/Motrix-${version}.AppImage"; - sha256 = "sha256-tE2Q7NM+cQOg+vyqyfRwg05EOMQWhhggTA6S+VT+SkM="; + hash = "sha256-h4TZzExl1zThwzlKBtL0u3V1jFjjNM2Cscy4hGir9Ts="; }; appimageContents = appimageTools.extractType2 { inherit pname version src; }; in -appimageTools.wrapType2 rec { +appimageTools.wrapType2 { inherit pname version src; extraInstallCommands = '' mv $out/bin/${pname}-${version} $out/bin/${pname} - install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications + + install -Dm 444 ${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}' + + substituteInPlace $out/share/applications/${pname}.desktop \ + --replace 'Exec=AppRun' 'Exec=${pname}' ''; meta = with lib; { @@ -31,6 +33,7 @@ appimageTools.wrapType2 rec { homepage = "https://motrix.app"; license = licenses.mit; platforms = [ "x86_64-linux" ]; + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; maintainers = with maintainers; [ dit7ya ]; }; } |