mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
saleae-logic-2: add desktop item
This commit is contained in:
parent
a4d96cd808
commit
c4035d7234
|
@ -1,4 +1,4 @@
|
||||||
{ lib, fetchurl, appimageTools, gtk3 }:
|
{ lib, fetchurl, makeDesktopItem, appimageTools, gtk3 }:
|
||||||
let
|
let
|
||||||
name = "saleae-logic-2";
|
name = "saleae-logic-2";
|
||||||
version = "2.3.37";
|
version = "2.3.37";
|
||||||
|
@ -6,6 +6,15 @@ let
|
||||||
url = "https://downloads.saleae.com/logic2/Logic-${version}-master.AppImage";
|
url = "https://downloads.saleae.com/logic2/Logic-${version}-master.AppImage";
|
||||||
sha256 = "0jclzd4s1r6h2p1r0vhmzz3jnwpp7d41g70lcamrsxidxrmm8d45";
|
sha256 = "0jclzd4s1r6h2p1r0vhmzz3jnwpp7d41g70lcamrsxidxrmm8d45";
|
||||||
};
|
};
|
||||||
|
desktopItem = makeDesktopItem {
|
||||||
|
inherit name;
|
||||||
|
exec = name;
|
||||||
|
icon = "Logic";
|
||||||
|
comment = "Software for Saleae logic analyzers";
|
||||||
|
desktopName = "Saleae Logic";
|
||||||
|
genericName = "Logic analyzer";
|
||||||
|
categories = "Development";
|
||||||
|
};
|
||||||
in
|
in
|
||||||
appimageTools.wrapType2 {
|
appimageTools.wrapType2 {
|
||||||
inherit name src;
|
inherit name src;
|
||||||
|
@ -17,6 +26,9 @@ appimageTools.wrapType2 {
|
||||||
''
|
''
|
||||||
mkdir -p $out/etc/udev/rules.d
|
mkdir -p $out/etc/udev/rules.d
|
||||||
cp ${appimageContents}/resources/linux/99-SaleaeLogic.rules $out/etc/udev/rules.d/
|
cp ${appimageContents}/resources/linux/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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
profile = ''
|
profile = ''
|
||||||
|
|
Loading…
Reference in a new issue