Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 appimageTools, 5}: 6 7let 8 pname = "fluent-reader"; 9 version = "1.1.4"; 10 11 src = fetchurl { 12 url = "https://github.com/yang991178/fluent-reader/releases/download/v${version}/Fluent.Reader.${version}.AppImage"; 13 hash = "sha256-2oLV9SWBNt0j1WAS6j4dobsUEpptjTubpr8pdOcIOY4="; 14 }; 15 16 appimageContents = appimageTools.extractType2 { inherit pname version src; }; 17in 18appimageTools.wrapType2 { 19 inherit pname version src; 20 21 extraInstallCommands = '' 22 mkdir -p $out/share/${pname} 23 cp -a ${appimageContents}/{locales,resources} $out/share/${pname} 24 install -Dm 444 ${appimageContents}/${pname}.desktop -t $out/share/applications 25 cp -a ${appimageContents}/usr/share/icons $out/share/ 26 27 substituteInPlace $out/share/applications/${pname}.desktop \ 28 --replace 'Exec=AppRun' 'Exec=${pname}' 29 ''; 30 31 meta = with lib; { 32 description = "Modern desktop RSS reader built with Electron, React, and Fluent UI"; 33 mainProgram = "fluent-reader"; 34 homepage = "https://hyliu.me/fluent-reader"; 35 license = licenses.bsd3; 36 platforms = [ "x86_64-linux" ]; 37 maintainers = with maintainers; [ zendo ]; 38 }; 39}