Merge pull request #204321 from wegank/wxhexeditor-python

wxhexeditor: python2 -> python3
This commit is contained in:
Mario Rodas 2022-12-03 12:37:55 -05:00 committed by GitHub
commit a2ba660783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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