about summary refs log tree commit diff
path: root/pkgs/development/tools/bloom/default.nix
blob: 1b977e33027b2fc87122cf1c362eaf5997d68369 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{ lib
, stdenv
, fetchFromGitHub
, cmake
, yaml-cpp
, qtbase
, qtsvg
, wrapQtAppsHook
, qttools
, libusb1
, php
, hidapi
, procps
}:

stdenv.mkDerivation rec {
  pname = "bloom";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "bloombloombloom";
    repo = "Bloom";
    rev = "v${version}";
    hash = "sha256-ZZfclZwxsCgApUII79bJVyT5V/dF9jm7l8ynRWCh0UU=";
  };

  nativeBuildInputs = [
    cmake
    php
    wrapQtAppsHook
  ];

  buildInputs = [
    hidapi
    libusb1
    procps
    qtbase
    qtsvg
    qttools
    yaml-cpp
  ];

  postPatch = ''
    sed -i 's|/usr|${placeholder "out"}|' cmake/Installing.cmake
  '';

  meta = {
    description = "Debug interface for AVR-based embedded systems development on GNU/Linux";
    homepage = "https://bloom.oscillate.io/";
    license = lib.licenses.lgpl3Only;
    maintainers = with lib.maintainers; [ ];
    mainProgram = "bloom";
    platforms = lib.platforms.linux;
  };
}