about summary refs log tree commit diff
path: root/pkgs/applications/misc/q4wine/default.nix
blob: f56e4455becda9d5bd3530142c767e85ae5e7e8d (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
{ lib, fetchFromGitHub, mkDerivation, cmake, sqlite
, qtbase, qtsvg, qttools, wrapQtAppsHook
, icoutils # build and runtime deps.
, wget, fuseiso, wine, sudo, which # runtime deps.
}:

mkDerivation rec {
  pname = "q4wine";
  version = "1.3.13";

  src = fetchFromGitHub {
    owner = "brezerk";
    repo = "q4wine";
    rev = "v${version}";
    sha256 = "04gw5y3dxdpivm2xqacqq85fdzx7xkl0c3h3hdazljb0c3cxxs6h";
  };

  buildInputs = [
     sqlite icoutils qtbase qtsvg qttools
  ];

  nativeBuildInputs = [ cmake wrapQtAppsHook ];

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

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