about summary refs log tree commit diff
path: root/pkgs/applications/misc/q4wine
diff options
context:
space:
mode:
authorRafael Kitover <rkitover@gmail.com>2021-10-19 01:51:46 +0000
committerRafael Kitover <rkitover@gmail.com>2021-10-19 02:12:59 +0000
commit096c956ef7325a2f86207bae9ddf0d190fecbcf5 (patch)
treeb61ed5d65d73689e78131f9809c1f9f0ff3c7efa /pkgs/applications/misc/q4wine
parent77c929982cf56e15652e89ad125ee5af5b391324 (diff)
q4wine: init at 1.3.13
Qt GUI application for Wine for managing prefixes and applications.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
Diffstat (limited to 'pkgs/applications/misc/q4wine')
-rw-r--r--pkgs/applications/misc/q4wine/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/misc/q4wine/default.nix b/pkgs/applications/misc/q4wine/default.nix
new file mode 100644
index 0000000000000..cb4014684fd2a
--- /dev/null
+++ b/pkgs/applications/misc/q4wine/default.nix
@@ -0,0 +1,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 = "A Qt GUI for Wine to manage prefixes and applications";
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ rkitover ];
+    platforms = platforms.unix;
+  };
+}