Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ mkDerivation 2, lib 3, pkg-config 4, zlib 5, qtbase 6, qtsvg 7, qttools 8, qtmultimedia 9, qmake 10, fetchurl 11}: 12 13mkDerivation rec { 14 pname = "chessx"; 15 version = "1.5.8"; 16 17 src = fetchurl { 18 url = "mirror://sourceforge/chessx/chessx-${version}.tgz"; 19 sha256 = "sha256-ev+tK1CHLFt/RvmzyPVZ2c0nxfRwwb9ke7uTmm7REaM="; 20 }; 21 22 nativeBuildInputs = [ 23 pkg-config 24 qmake 25 ]; 26 27 buildInputs = [ 28 qtbase 29 qtmultimedia 30 qtsvg 31 qttools 32 zlib 33 ]; 34 35 # RCC: Error in 'resources.qrc': Cannot find file 'i18n/chessx_da.qm' 36 enableParallelBuilding = false; 37 38 installPhase = '' 39 runHook preInstall 40 41 mkdir -p "$out/bin" 42 mkdir -p "$out/share/applications" 43 cp -pr release/chessx "$out/bin" 44 cp -pr unix/chessx.desktop "$out/share/applications" 45 46 runHook postInstall 47 ''; 48 49 meta = with lib; { 50 homepage = "http://chessx.sourceforge.net/"; 51 description = "Browse and analyse chess games"; 52 license = licenses.gpl2; 53 maintainers = [ maintainers.luispedro ]; 54 platforms = platforms.linux; 55 }; 56}