20kly: use python2

This commit is contained in:
Frederik Rietdijk 2021-03-25 10:17:50 +01:00
parent 6eea374b40
commit 52dc628b43

View File

@ -1,12 +1,12 @@
{ lib { lib
, fetchurl , fetchurl
, python }: , python2 }:
python.pkgs.buildPythonApplication rec { python2.pkgs.buildPythonApplication rec {
pname = "20kly"; pname = "20kly";
version = "1.4"; version = "1.4";
format = "other"; format = "other";
disabled = !(python.isPy2 or false); disabled = !(python2.isPy2 or false);
src = fetchurl { src = fetchurl {
url = "http://jwhitham.org.uk/20kly/lightyears-${version}.tar.bz2"; url = "http://jwhitham.org.uk/20kly/lightyears-${version}.tar.bz2";
@ -20,7 +20,7 @@ python.pkgs.buildPythonApplication rec {
"LIGHTYEARS_DIR = \"$out/share\"" "LIGHTYEARS_DIR = \"$out/share\""
''; '';
propagatedBuildInputs = with python.pkgs; [ pygame ]; propagatedBuildInputs = with python2.pkgs; [ pygame ];
buildPhase = "python -O -m compileall ."; buildPhase = "python -O -m compileall .";