mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
87 lines
2.2 KiB
Nix
87 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
autoconf,
|
|
automake,
|
|
gettext,
|
|
libtool,
|
|
python3,
|
|
wxGTK,
|
|
openmp,
|
|
Cocoa,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wxHexEditor";
|
|
version = "0.24";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "wxHexEditor";
|
|
owner = "EUA";
|
|
rev = "v${version}";
|
|
sha256 = "08xnhaif8syv1fa0k6lc3jm7yg2k50b02lyds8w0jyzh4xi5crqj";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
autoconf
|
|
automake
|
|
gettext
|
|
libtool
|
|
python3
|
|
wxGTK
|
|
];
|
|
|
|
buildInputs =
|
|
lib.optionals stdenv.cc.isClang [
|
|
openmp
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
Cocoa
|
|
];
|
|
|
|
preConfigure = "patchShebangs .";
|
|
|
|
prePatch =
|
|
''
|
|
substituteInPlace Makefile --replace "/usr" "$out"
|
|
substituteInPlace Makefile --replace "mhash; ./configure" "mhash; ./configure --prefix=$out"
|
|
''
|
|
+ lib.optionalString stdenv.cc.isClang ''
|
|
substituteInPlace Makefile --replace "-lgomp" "-lomp"
|
|
'';
|
|
|
|
patches = [
|
|
# https://github.com/EUA/wxHexEditor/issues/90
|
|
(fetchpatch {
|
|
url = "https://github.com/EUA/wxHexEditor/commit/d0fa3ddc3e9dc9b05f90b650991ef134f74eed01.patch";
|
|
sha256 = "1wcb70hrnhq72frj89prcqylpqs74xrfz3kdfdkq84p5qfz9svyj";
|
|
})
|
|
./missing-semicolon.patch
|
|
];
|
|
|
|
makeFlags = lib.optionals stdenv.cc.isGNU [ "OPTFLAGS=-fopenmp" ];
|
|
|
|
meta = {
|
|
description = "Hex Editor / Disk Editor for Huge Files or Devices";
|
|
longDescription = ''
|
|
This is not an ordinary hex editor, but could work as low level disk editor too.
|
|
If you have problems with your HDD or partition, you can recover your data from HDD or
|
|
from partition via editing sectors in raw hex.
|
|
You can edit your partition tables or you could recover files from File System by hand
|
|
with help of wxHexEditor.
|
|
Or you might want to analyze your big binary files, partitions, devices... If you need
|
|
a good reverse engineer tool like a good hex editor, you welcome.
|
|
wxHexEditor could edit HDD/SDD disk devices or partitions in raw up to exabyte sizes.
|
|
'';
|
|
homepage = "http://www.wxhexeditor.org/";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ wegank ];
|
|
mainProgram = "wxHexEditor";
|
|
};
|
|
}
|