nixpkgs/pkgs/development/tools/misc/saleae-logic-2/default.nix
Mark Kohler 18c3e729ba saleae-logic-2: 2.4.12 -> 2.4.13
- Fixes the crash on Linux when opening the software with a device
  already attached
- Fixes crash when changing IO voltage level on the original Logic 16
- Fixes the Linux 4GB memory limit

For full changelog, see https://ideas.saleae.com/f/changelog/2413/
2023-12-16 22:59:17 -08:00

73 lines
1.7 KiB
Nix

{ lib, fetchurl, makeDesktopItem, appimageTools }:
let
name = "saleae-logic-2";
version = "2.4.13";
src = fetchurl {
url = "https://downloads.saleae.com/logic2/Logic-${version}-linux-x64.AppImage";
hash = "sha256-0GIZQKQDY3arDUlxjQKWOHDB3j76xVwkx5H+8q+d0Rc=";
};
desktopItem = makeDesktopItem {
inherit name;
exec = name;
icon = "Logic";
comment = "Software for Saleae logic analyzers";
desktopName = "Saleae Logic";
genericName = "Logic analyzer";
categories = [ "Development" ];
};
in
appimageTools.wrapType2 {
inherit name src;
extraInstallCommands =
let
appimageContents = appimageTools.extractType2 { inherit name src; };
in
''
mkdir -p $out/etc/udev/rules.d
cp ${appimageContents}/resources/linux-x64/99-SaleaeLogic.rules $out/etc/udev/rules.d/
mkdir -p $out/share/pixmaps
ln -s ${desktopItem}/share/applications $out/share/
cp ${appimageContents}/usr/share/icons/hicolor/256x256/apps/Logic.png $out/share/pixmaps/Logic.png
'';
extraPkgs = pkgs: with pkgs; [
wget
unzip
glib
xorg.libX11
xorg.libxcb
xorg.libXcomposite
xorg.libXcursor
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXrender
xorg.libXtst
nss
nspr
dbus
gdk-pixbuf
gtk3
pango
atk
cairo
expat
xorg.libXrandr
xorg.libXScrnSaver
alsa-lib
at-spi2-core
cups
libxcrypt-legacy
];
meta = with lib; {
homepage = "https://www.saleae.com/";
description = "Software for Saleae logic analyzers";
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ j-hui newam ];
};
}