9 _experimental-update-script-combinators,
13 python311Packages.buildPythonApplication rec {
18 url = "mirror://sourceforge/pysolfc/PySolFC-${version}.tar.xz";
19 hash = "sha256-LPOm83K4bdzmmQskmAnSyYpz+5y9ktQAhYCkXpODYKI=";
22 cardsets = stdenv.mkDerivation rec {
23 pname = "pysol-cardsets";
27 url = "mirror://sourceforge/pysolfc/PySolFC-Cardsets-${version}.tar.bz2";
28 hash = "sha256-UP0dQjoZJg+iSKVOrWbkLj1KCzMWws8ZBVSBLly1a/Y=";
38 music = stdenv.mkDerivation rec {
39 pname = "pysol-music";
43 url = "mirror://sourceforge/pysolfc/pysol-music-${version}.tar.xz";
44 hash = "sha256-sOl5U98aIorrQHJRy34s0HHaSW8hMUE7q84FMQAj5Yg=";
54 propagatedBuildInputs = with python311Packages; [
69 patches = [ ./pysolfc-datadir.patch ];
71 nativeBuildInputs = [ desktop-file-utils ];
73 desktop-file-edit --set-key Icon --set-value ${placeholder "out"}/share/icons/pysol01.png data/pysol.desktop
74 desktop-file-edit --set-key Comment --set-value "${meta.description}" data/pysol.desktop
78 mkdir $out/share/PySolFC/cardsets
79 cp -r $cardsets/* $out/share/PySolFC/cardsets
80 cp -r $music/data/music $out/share/PySolFC
86 passthru.updateScript = _experimental-update-script-combinators.sequence (
87 # Needed in order to work around requirement that only one updater with features enabled is in sequence
88 map (updater: updater.command) [
90 url = "https://github.com/shlomif/PySolFC.git";
91 rev-prefix = "pysolfc-";
94 url = "https://github.com/shlomif/PySolFC-CardSets.git";
95 attrPath = "pysolfc.cardsets";
98 url = "https://github.com/shlomif/pysol-music.git";
99 attrPath = "pysolfc.music";
105 description = "A collection of more than 1000 solitaire card games";
106 mainProgram = "pysol.py";
107 homepage = "https://pysolfc.sourceforge.io";
108 license = licenses.gpl3;
109 maintainers = with maintainers; [ ];