1 { lib, fetchurl, makeDesktopItem, appimageTools }:
3 name = "saleae-logic-2";
6 url = "https://downloads.saleae.com/logic2/Logic-${version}-linux-x64.AppImage";
7 hash = "sha256-0GIZQKQDY3arDUlxjQKWOHDB3j76xVwkx5H+8q+d0Rc=";
9 desktopItem = makeDesktopItem {
13 comment = "Software for Saleae logic analyzers";
14 desktopName = "Saleae Logic";
15 genericName = "Logic analyzer";
16 categories = [ "Development" ];
19 appimageTools.wrapType2 {
22 extraInstallCommands =
24 appimageContents = appimageTools.extractType2 { inherit name src; };
27 mkdir -p $out/etc/udev/rules.d
28 cp ${appimageContents}/resources/linux-x64/99-SaleaeLogic.rules $out/etc/udev/rules.d/
29 mkdir -p $out/share/pixmaps
30 ln -s ${desktopItem}/share/applications $out/share/
31 cp ${appimageContents}/usr/share/icons/hicolor/256x256/apps/Logic.png $out/share/pixmaps/Logic.png
34 extraPkgs = pkgs: with pkgs; [
66 homepage = "https://www.saleae.com/";
67 description = "Software for Saleae logic analyzers";
68 license = licenses.unfree;
69 platforms = [ "x86_64-linux" ];
70 maintainers = with maintainers; [ j-hui newam ];