comet-gog: add dummy-service passthru

authored by TomaSajt and committed by Aidan Gauland f3e899c8 bdf36222

+27
+27
pkgs/by-name/co/comet-gog/package.nix
··· 6 6 rustPlatform, 7 7 fetchFromGitHub, 8 8 buildPackages, 9 + 10 + meson, 11 + ninja, 12 + pkgsCross, 9 13 }: 10 14 11 15 let ··· 44 48 45 49 # TECHNICALLY, we could remove this, but then we'd be using the vendored precompiled protoc binary... 46 50 env.PROTOC = lib.getExe' buildPackages.protobuf "protoc"; 51 + 52 + passthru.dummy-service = stdenv.mkDerivation { 53 + pname = "galaxy-dummy-service"; 54 + inherit (finalAttrs) version src; 55 + 56 + sourceRoot = "${finalAttrs.src.name}/dummy-service"; 57 + 58 + nativeBuildInputs = [ 59 + meson 60 + ninja 61 + pkgsCross.mingwW64.buildPackages.gcc 62 + ]; 63 + 64 + mesonFlags = [ 65 + "--cross-file meson/x86_64-w64-mingw32.ini" 66 + ]; 67 + 68 + installPhase = '' 69 + runHook preInstall 70 + install -D GalaxyCommunication.exe -t "$out"/ 71 + runHook postInstall 72 + ''; 73 + }; 47 74 48 75 meta = { 49 76 changelog = "https://github.com/imLinguin/comet/releases/tag/${finalAttrs.src.tag}";