summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/q4/q4wine/package.nix
blob: 223429dc40228b5f16d699f9fdb450494bf4e267 (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
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
56
57
58
{
  lib,
  fetchFromGitHub,
  stdenv,
  cmake,
  sqlite,
  qt6,
  icoutils, # build and runtime deps.
  wget,
  wine,
  which, # runtime deps.
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "q4wine";
  version = "1.4.2";

  src = fetchFromGitHub {
    owner = "brezerk";
    repo = "q4wine";
    tag = "v${finalAttrs.version}";
    hash = "sha256-5rj+EDsOZib78gWT003a4IN23cZQftnhVggIdLN6f7I=";
  };

  buildInputs = [
    sqlite
    icoutils
    qt6.qtbase
    qt6.qtsvg
    qt6.qttools
  ];

  nativeBuildInputs = [
    cmake
    qt6.wrapQtAppsHook
  ];

  # Add runtime deps.
  postInstall = ''
    wrapProgram $out/bin/q4wine \
      --prefix PATH : ${
        lib.makeBinPath [
          icoutils
          wget
          wine
          which
        ]
      }
  '';

  meta = {
    homepage = "https://q4wine.brezblock.org.ua/";
    description = "Qt GUI for Wine to manage prefixes and applications";
    license = lib.licenses.gpl3;
    maintainers = with lib.maintainers; [ rkitover ];
    platforms = lib.platforms.unix;
  };
})