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