uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
71
pkgs/development/tools/misc/saleae-logic-2/default.nix
Normal file
71
pkgs/development/tools/misc/saleae-logic-2/default.nix
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{ lib, fetchurl, makeDesktopItem, appimageTools }:
|
||||
let
|
||||
name = "saleae-logic-2";
|
||||
version = "2.3.53";
|
||||
src = fetchurl {
|
||||
url = "https://downloads.saleae.com/logic2/Logic-${version}-master.AppImage";
|
||||
sha256 = "sha256-RZrOyL0tb1nH5SX7P6d4TFkxSwDZiJUpu1eZaXqX3ew=";
|
||||
};
|
||||
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/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
|
||||
];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue