21 rustPlatform.buildRustPackage rec {
22 pname = "en-croissant";
25 src = fetchFromGitHub {
26 owner = "franciscoBSalgueiro";
27 repo = "en-croissant";
28 rev = "refs/tags/v${version}";
29 hash = "sha256-EiGML3oFCJR4TZkd+FekUrJwCYe/nGdWD9mAtKKtITQ=";
32 pnpmDeps = pnpm_9.fetchDeps {
33 inherit pname version src;
34 hash = "sha256-hvWXSegUWJvwCU5NLb2vqnl+FIWpCLxw96s9NUIgJTI=";
38 lockFile = ./Cargo.lock;
40 "tauri-plugin-log-0.0.0" = "sha256-t+zmMMSnD9ASZZvqlhu1ah2OjCUtRXdk/xaI37uI49c=";
41 "vampirc-uci-0.11.1" = "sha256-g2JjHZoAmmZ7xsw4YnkUPRXJxsYmBqflWxCFkFEvMXQ=";
45 cargoRoot = "src-tauri";
47 buildAndTestSubdir = cargoRoot;
56 ++ lib.optionals stdenv.hostPlatform.isLinux [ wrapGAppsHook3 ]
57 ++ lib.optionals stdenv.hostPlatform.isDarwin [ makeBinaryWrapper ];
60 lib.optionals stdenv.hostPlatform.isLinux [
65 gst_all_1.gst-plugins-base
66 gst_all_1.gst-plugins-bad
67 gst_all_1.gst-plugins-good
69 ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ];
71 doCheck = false; # many scoring tests fail
73 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
74 makeWrapper "$out"/Applications/en-croissant.app/Contents/MacOS/en-croissant $out/bin/en-croissant
78 description = "Ultimate Chess Toolkit";
79 homepage = "https://github.com/franciscoBSalgueiro/en-croissant/";
80 license = lib.licenses.gpl3Only;
81 mainProgram = "en-croissant";
82 maintainers = with lib.maintainers; [ tomasajt ];
83 platforms = lib.platforms.linux ++ lib.platforms.darwin;