wxhexeditor: python2 -> python3

This commit is contained in:
Weijia Wang 2022-12-03 18:15:52 +01:00
parent cee75d23a9
commit 68c880d26d

View file

@ -1,4 +1,16 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, wxGTK, autoconf, automake, libtool, python2, gettext, openmp, Cocoa }:
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, autoconf
, automake
, gettext
, libtool
, python3
, wxGTK
, openmp
, Cocoa
}:
stdenv.mkDerivation rec {
pname = "wxHexEditor";
@ -11,10 +23,22 @@ stdenv.mkDerivation rec {
sha256 = "08xnhaif8syv1fa0k6lc3jm7yg2k50b02lyds8w0jyzh4xi5crqj";
};
nativeBuildInputs = [ autoconf automake ];
buildInputs = [ wxGTK libtool python2 gettext ]
++ lib.optionals stdenv.cc.isClang [ openmp ]
++ lib.optionals stdenv.isDarwin [ Cocoa ];
strictDeps = true;
nativeBuildInputs = [
autoconf
automake
gettext
libtool
python3
wxGTK
];
buildInputs = lib.optionals stdenv.cc.isClang [
openmp
] ++ lib.optionals stdenv.isDarwin [
Cocoa
];
preConfigure = "patchShebangs .";
@ -49,7 +73,7 @@ stdenv.mkDerivation rec {
wxHexEditor could edit HDD/SDD disk devices or partitions in raw up to exabyte sizes.
'';
homepage = "http://www.wxhexeditor.org/";
license = lib.licenses.gpl2;
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ wegank ];
};