Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PySolFC is a solitaire game written in Python, supporting thousands of solitaire variants.
- Loading branch information
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ fetchurl, python2, stdenv }: | ||
|
||
with python2.pkgs; | ||
|
||
buildPythonApplication rec { | ||
pname = "PySolFC"; | ||
version = "2.0"; | ||
|
||
src = fetchurl { | ||
url = "mirror://sourceforge/pysolfc/${pname}-${version}.tar.bz2"; | ||
sha256 = "0v0v8iflw55f5mghglkw80j8b7lv1hffjassfhqc4y84dmz8xjyv"; | ||
}; | ||
|
||
patches = [ | ||
./pysolfc-datadir.patch | ||
]; | ||
|
||
propagatedBuildInputs = [ | ||
tkinter | ||
]; | ||
|
||
# No tests in archive | ||
doCheck = false; | ||
|
||
postInstall = '' | ||
# executables should not have an extension | ||
pushd $out/bin | ||
mv pysol.py pysol | ||
rm pysol.pyc | ||
popd | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A collection of more than 1000 solitaire card games"; | ||
homepage = http://pysolfc.sourceforge.net/; | ||
license = licenses.gpl3; | ||
maintainers = with maintainers; [ kierdavis ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/pysollib/util.py b/pysollib/util.py | ||
index 8de3f00..26f4bc7 100644 | ||
--- a/pysollib/util.py | ||
+++ b/pysollib/util.py | ||
@@ -110,13 +110,7 @@ class DataLoader: | ||
head, tail = os.path.split(argv0) | ||
if not head: | ||
head = os.curdir | ||
- # dir where placed startup script | ||
- path.append(head) | ||
- path.append(os.path.join(head, "data")) | ||
- path.append(os.path.join(head, os.pardir, "data")) | ||
- # dir where placed pysol package | ||
- path.append(os.path.join(sys.path[0], "data")) | ||
- path.append(os.path.join(sys.path[0], "pysollib", "data")) | ||
+ path.append(os.path.join(head, "..", "share", "PySolFC")) | ||
# from settings.py | ||
path.extend(DATA_DIRS) | ||
# check path for valid directories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters