1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/games/pysolfc/default.nix
Kier Davis cb9bf1c854 PySolFC: init at 2.0
PySolFC is a solitaire game written in Python, supporting thousands of
solitaire variants.
2017-11-25 09:43:42 +01:00

40 lines
800 B
Nix

{ 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 ];
};
}