anydesk: cleanup, move to finalAttrs use lib explicitly only when needed

+9 -9
+9 -9
pkgs/applications/networking/remote/anydesk/default.nix
··· 5 6 let 7 description = "Desktop sharing application, providing remote support and online meetings"; 8 - in stdenv.mkDerivation rec { 9 pname = "anydesk"; 10 version = "6.3.2"; 11 12 src = fetchurl { 13 urls = [ 14 - "https://download.anydesk.com/linux/anydesk-${version}-amd64.tar.gz" 15 - "https://download.anydesk.com/linux/generic-linux/anydesk-${version}-amd64.tar.gz" 16 ]; 17 hash = "sha256-nSY4qHRsEvQk4M3JDHalAk3C6Y21WlfDQ2Gpp6/jjMs="; 18 }; ··· 54 postFixup = '' 55 patchelf \ 56 --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ 57 - --set-rpath "${lib.makeLibraryPath buildInputs}" \ 58 $out/bin/anydesk 59 60 # pangox is not actually necessary (it was only added as a part of gtkglext) ··· 77 }; 78 }; 79 80 - meta = with lib; { 81 inherit description; 82 homepage = "https://www.anydesk.com"; 83 - sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 84 - license = licenses.unfree; 85 platforms = [ "x86_64-linux" ]; 86 - maintainers = with maintainers; [ shyim cheriimoya ]; 87 }; 88 - }
··· 5 6 let 7 description = "Desktop sharing application, providing remote support and online meetings"; 8 + in stdenv.mkDerivation (finalAttrs: { 9 pname = "anydesk"; 10 version = "6.3.2"; 11 12 src = fetchurl { 13 urls = [ 14 + "https://download.anydesk.com/linux/anydesk-${finalAttrs.version}-amd64.tar.gz" 15 + "https://download.anydesk.com/linux/generic-linux/anydesk-${finalAttrs.version}-amd64.tar.gz" 16 ]; 17 hash = "sha256-nSY4qHRsEvQk4M3JDHalAk3C6Y21WlfDQ2Gpp6/jjMs="; 18 }; ··· 54 postFixup = '' 55 patchelf \ 56 --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ 57 + --set-rpath "${lib.makeLibraryPath finalAttrs.buildInputs}" \ 58 $out/bin/anydesk 59 60 # pangox is not actually necessary (it was only added as a part of gtkglext) ··· 77 }; 78 }; 79 80 + meta = { 81 inherit description; 82 homepage = "https://www.anydesk.com"; 83 + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 84 + license = lib.licenses.unfree; 85 platforms = [ "x86_64-linux" ]; 86 + maintainers = with lib.maintainers; [ shyim cheriimoya ]; 87 }; 88 + })