2015-02-08 05:12:16 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
2016-06-27 02:57:45 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "objconv-${version}";
|
|
|
|
version = "2.16";
|
2015-02-08 05:12:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vertis";
|
|
|
|
repo = "objconv";
|
2016-06-27 02:57:45 +01:00
|
|
|
rev = "${version}";
|
2015-02-08 05:12:16 +00:00
|
|
|
sha256 = "1by2bbrampwv0qy8vn4hhs49rykczyj7q8g373ym38da3c95bym2";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = "c++ -o objconv -O2 src/*.cpp";
|
|
|
|
|
|
|
|
installPhase = "mkdir -p $out/bin && mv objconv $out/bin";
|
2016-06-27 02:57:45 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Used for converting object files between COFF/PE, OMF, ELF and Mach-O formats for all 32-bit and 64-bit x86 platforms.";
|
|
|
|
homepage = http://www.agner.org/optimize/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ vrthra ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; unix;
|
2016-06-27 02:57:45 +01:00
|
|
|
};
|
|
|
|
|
2015-02-08 05:12:16 +00:00
|
|
|
}
|