opencc: switch to python3

This commit is contained in:
Armeen Mahdian 2022-04-26 09:13:47 -05:00
parent 6e4f70e880
commit f5032db47e

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, python2 }: { lib, stdenv, fetchFromGitHub, cmake, python3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "opencc"; pname = "opencc";
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-q/y4tRov/BYCAiE4i7fT6ysTerxxOHMZUWT2Jlo/0rI="; sha256 = "sha256-q/y4tRov/BYCAiE4i7fT6ysTerxxOHMZUWT2Jlo/0rI=";
}; };
nativeBuildInputs = [ cmake python2 ]; nativeBuildInputs = [ cmake python3 ];
# let intermediate tools find intermediate library # let intermediate tools find intermediate library
preBuild = lib.optionalString stdenv.isLinux '' preBuild = lib.optionalString stdenv.isLinux ''