aboutsummaryrefslogtreecommitdiff
path: root/devShells/qt.nix
blob: b6450eb6569d109ea603e90cec501fc83610e335 (plain)
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
{
  system,
  nixpkgs,
  default,
  c,
}: let
  pkgs = nixpkgs.legacyPackages.${system};
in
  pkgs.mkShell {
    packages = with pkgs;
    with libsForQt5; [
      qtbase
      qtserialport
      qtwebsockets
      doctest

      (qcoro.overrideAttrs (oldAttrs: {
        version = "0.6.1";
        src = fetchFromGitHub {
          owner = "danvratil";
          repo = "qcoro";
          rev = "261663560f59a162c0c82158a6cde41089668871";
          sha256 = "OAYJpoW3b0boSYBfuzLrFvlYSmP3SON8O6HsDQoi+I8=";
        };
        buildInputs = oldAttrs.buildInputs ++ [qt5.qtbase];
      }))
    ];
    inputsFrom = with pkgs; [default c];
    meta.platforms = ["x86_64-linux"];
  }