audiobookshelf: 2.18.1 -> 2.19.0 (#378967)
[NixPkgs.git] / pkgs / by-name / se / segger-ozone / package.nix
blobb8a177e09e6e84d721aedb202c57f9b25be37294
2   lib,
3   stdenv,
4   fetchurl,
5   autoPatchelfHook,
6   fontconfig,
7   freetype,
8   libICE,
9   libSM,
10   libX11,
11   libXcursor,
12   libXfixes,
13   libXrandr,
14   libXrender,
17 stdenv.mkDerivation rec {
18   pname = "segger-ozone";
19   version = "3.30b";
21   src =
22     {
23       x86_64-linux = fetchurl {
24         url = "https://www.segger.com/downloads/jlink/Ozone_Linux_V${
25           builtins.replaceStrings [ "." ] [ "" ] version
26         }_x86_64.tgz";
27         hash = "sha256-W8Fo0q58pAn1aB92CjYARcN3vMLEguvsyozsS7VRArQ=";
28       };
29       i686-linux = fetchurl {
30         url = "https://www.segger.com/downloads/jlink/Ozone_Linux_V${
31           builtins.replaceStrings [ "." ] [ "" ] version
32         }_i386.tgz";
33         hash = "sha256-Xq/69lwF2Ll5VdkYMDNRtc0YUUvWc+XR0FHJXxOLNQ4=";
34       };
35     }
36     .${stdenv.hostPlatform.system} or (throw "unsupported system: ${stdenv.hostPlatform.system}");
38   nativeBuildInputs = [
39     autoPatchelfHook
40   ];
42   buildInputs = [
43     fontconfig
44     freetype
45     libICE
46     libSM
47     libX11
48     libXcursor
49     libXfixes
50     libXrandr
51     libXrender
52     (lib.getLib stdenv.cc.cc)
53   ];
55   installPhase = ''
56     runHook preInstall
58     mkdir -p $out/bin
59     mv Lib lib
60     mv * $out
61     ln -s $out/Ozone $out/bin
63     runHook postInstall
64   '';
66   meta = with lib; {
67     description = "J-Link Debugger and Performance Analyzer";
68     longDescription = ''
69       Ozone is a cross-platform debugger and performance analyzer for J-Link
70       and J-Trace.
72         - Stand-alone graphical debugger
73         - Debug output of any tool chain and IDE 1
74         - C/C++ source level debugging and assembly instruction debugging
75         - Debug information windows for any purpose: disassembly, memory,
76           globals and locals, (live) watches, CPU and peripheral registers
77         - Source editor to fix bugs immediately
78         - High-speed programming of the application into the target
79         - Direct use of J-Link built-in features (Unlimited Flash
80           Breakpoints, Flash Download, Real Time Terminal, Instruction Trace)
81         - Scriptable project files to set up everything automatically
82           - New project wizard to ease the basic configuration of new projects
84       1 Ozone has been tested with the output of the following compilers:
85       GCC, Clang, ARM, IAR. Output of other compilers may be supported but is
86       not guaranteed to be.
87     '';
88     homepage = "https://www.segger.com/products/development-tools/ozone-j-link-debugger";
89     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
90     license = licenses.unfree;
91     maintainers = [ maintainers.bmilanov ];
92     platforms = [
93       "x86_64-linux"
94       "i686-linux"
95     ];
96   };