13 rustPlatform.buildRustPackage rec {
14 pname = "desktop-postflop";
17 src = fetchFromGitHub {
19 repo = "desktop-postflop";
21 hash = "sha256-pOPxNHM4mseIuyyWNoU0l+dGvfURH0+9+rmzRIF0I5s=";
24 npmDist = buildNpmPackage {
25 name = "${pname}-${version}-dist";
28 npmDepsHash = "sha256-HWZLicyKL2FHDjZQj9/CRwVi+uc/jHmVNxtlDuclf7s=";
36 sourceRoot = "${src.name}/src-tauri";
39 lockFile = ./Cargo.lock;
41 "postflop-solver-0.1.0" = "sha256-coEl09eMbQqSos1sqWLnfXfhujSTsnVnOlOQ+JbdFWY=";
46 substituteInPlace tauri.conf.json \
47 --replace "../dist" "${npmDist}"
50 # postflop-solver requires unstable rust features
51 env.RUSTC_BOOTSTRAP = 1;
65 install -Dm644 ${src}/public/favicon.png $out/share/icons/hicolor/128x128/apps/desktop-postflop.png
70 name = "desktop-postflop";
71 exec = "desktop-postflop";
72 icon = "desktop-postflop";
73 desktopName = "Desktop Postflop";
74 comment = meta.description;
75 categories = [ "Utility" ];
81 changelog = "https://github.com/b-inary/desktop-postflop/releases/tag/${src.rev}";
82 description = "Free, open-source GTO solver for Texas hold'em poker";
83 homepage = "https://github.com/b-inary/desktop-postflop";
84 license = lib.licenses.agpl3Plus;
85 mainProgram = "desktop-postflop";
86 maintainers = with lib.maintainers; [ tomasajt ];