2022-06-16 17:23:12 +00:00
|
|
|
{ lib, fetchurl, makeDesktopItem, appimageTools }:
|
2021-08-18 13:19:15 +00:00
|
|
|
let
|
|
|
|
name = "saleae-logic-2";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.4.12";
|
2021-08-18 13:19:15 +00:00
|
|
|
src = fetchurl {
|
2023-08-10 07:59:29 +00:00
|
|
|
url = "https://downloads.saleae.com/logic2/Logic-${version}-linux-x64.AppImage";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-QqGtozLZtrS5UgnLmsKWxqbcTykLhlossVxuN4WNYzo=";
|
2021-08-18 13:19:15 +00:00
|
|
|
};
|
2021-10-01 09:20:50 +00:00
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
inherit name;
|
|
|
|
exec = name;
|
|
|
|
icon = "Logic";
|
|
|
|
comment = "Software for Saleae logic analyzers";
|
|
|
|
desktopName = "Saleae Logic";
|
|
|
|
genericName = "Logic analyzer";
|
2022-03-05 16:20:37 +00:00
|
|
|
categories = [ "Development" ];
|
2021-10-01 09:20:50 +00:00
|
|
|
};
|
2021-08-18 13:19:15 +00:00
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit name src;
|
|
|
|
|
|
|
|
extraInstallCommands =
|
2021-09-22 15:38:15 +00:00
|
|
|
let
|
|
|
|
appimageContents = appimageTools.extractType2 { inherit name src; };
|
|
|
|
in
|
|
|
|
''
|
|
|
|
mkdir -p $out/etc/udev/rules.d
|
2023-08-10 07:59:29 +00:00
|
|
|
cp ${appimageContents}/resources/linux-x64/99-SaleaeLogic.rules $out/etc/udev/rules.d/
|
2021-10-01 09:20:50 +00:00
|
|
|
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
|
2021-09-22 15:38:15 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
2023-04-29 16:46:19 +00:00
|
|
|
libxcrypt-legacy
|
2021-09-22 15:38:15 +00:00
|
|
|
];
|
2021-08-18 13:19:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.saleae.com/";
|
|
|
|
description = "Software for Saleae logic analyzers";
|
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2022-04-15 01:41:22 +00:00
|
|
|
maintainers = with maintainers; [ j-hui newam ];
|
2021-08-18 13:19:15 +00:00
|
|
|
};
|
|
|
|
}
|