nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 63 lines 1.1 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 mkDerivation, 5 cmake, 6 sqlite, 7 qtbase, 8 qtsvg, 9 qttools, 10 wrapQtAppsHook, 11 icoutils, # build and runtime deps. 12 wget, 13 fuseiso, 14 wine, 15 which, # runtime deps. 16}: 17 18mkDerivation rec { 19 pname = "q4wine"; 20 version = "1.3.13"; 21 22 src = fetchFromGitHub { 23 owner = "brezerk"; 24 repo = "q4wine"; 25 rev = "v${version}"; 26 sha256 = "04gw5y3dxdpivm2xqacqq85fdzx7xkl0c3h3hdazljb0c3cxxs6h"; 27 }; 28 29 buildInputs = [ 30 sqlite 31 icoutils 32 qtbase 33 qtsvg 34 qttools 35 ]; 36 37 nativeBuildInputs = [ 38 cmake 39 wrapQtAppsHook 40 ]; 41 42 # Add runtime deps. 43 postInstall = '' 44 wrapProgram $out/bin/q4wine \ 45 --prefix PATH : ${ 46 lib.makeBinPath [ 47 icoutils 48 wget 49 fuseiso 50 wine 51 which 52 ] 53 } 54 ''; 55 56 meta = with lib; { 57 homepage = "https://q4wine.brezblock.org.ua/"; 58 description = "Qt GUI for Wine to manage prefixes and applications"; 59 license = licenses.gpl3; 60 maintainers = with maintainers; [ rkitover ]; 61 platforms = platforms.unix; 62 }; 63}